blob: 00d3900f7229e1e148c52dc194db7a942b451622 [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="16d4205245810951d7db1f4f584bd99f4206438e"
CROS_WORKON_TREE=("b1c6245dddc7b5e10da108b13f7c3883aa0b6c2c" "5950112fb1851412c652c91e90ea517086deba43" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
CROS_WORKON_INCREMENTAL_BUILD="1"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk arc/vm/libvda .gn"
PLATFORM_SUBDIR="arc/vm/libvda"
inherit cros-workon platform
DESCRIPTION="libvda CrOS video decoding library"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/arc/vm/libvda"
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE="libvda_test"
COMMON_DEPEND="
media-libs/minigbm:=
"
RDEPEND="${COMMON_DEPEND}"
DEPEND="
${COMMON_DEPEND}
chromeos-base/system_api:=
"
src_install() {
dolib.so "${OUT}"/lib/libvda.so
insinto "/usr/$(get_libdir)/pkgconfig"
doins "${OUT}"/obj/arc/vm/libvda/libvda.pc
platform_fuzzer_install "${S}"/OWNERS "${OUT}"/libvda_fuzzer
}
platform_pkg_test() {
platform_test "run" "${OUT}/libvda_fake_unittest"
platform_fuzzer_test "${OUT}"/libvda_fuzzer
}