blob: dff439daeee98316d3c8128869e3a3001ee6c1a1 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_PROJECT="chromiumos/platform/arc-camera"
CROS_WORKON_LOCALNAME='../platform/arc-camera'
inherit cros-debug cros-workon libchrome toolchain-funcs
DESCRIPTION="ARC camera HALv3 native test."
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
IUSE="-asan"
RDEPEND="
dev-cpp/gtest
media-libs/libexif
media-libs/libyuv
media-libs/minigbm
virtual/jpeg:0"
DEPEND="${RDEPEND}
media-libs/arc-camera3-android-headers
media-libs/arc-camera3-libcamera_client
media-libs/arc-camera3-libcamera_metadata
media-libs/arc-camera3-libcbm
media-libs/arc-camera3-libsync
virtual/pkgconfig"
src_compile() {
asan-setup-env
tc-export CC CXX PKG_CONFIG
cros-debug-add-NDEBUG
emake BASE_VER=${LIBCHROME_VERS} camera3_test
}
src_install() {
dobin camera3_test/arc_camera3_test
}