blob: 60910e42597114fc6de2d40eaa944b8cf4e34a55 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_SUBTREE=".gn camera/build camera/common camera/hal/usb camera/include camera/mojo common-mk metrics"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="camera"
PLATFORM_GYP_FILE="hal/usb/libcamera_hal.gyp"
CROS_CAMERA_TESTS=(
"image_processor_unittest"
)
inherit cros-camera cros-workon platform
DESCRIPTION="Chrome OS USB camera HAL v3."
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
RDEPEND="
chromeos-base/libbrillo
dev-libs/re2
!media-libs/arc-camera3-hal-usb
media-libs/cros-camera-libcamera_client
media-libs/cros-camera-libcamera_common
media-libs/cros-camera-libcamera_exif
media-libs/cros-camera-libcamera_metadata
media-libs/cros-camera-libcamera_timezone
media-libs/cros-camera-libcbm
media-libs/cros-camera-libjda
media-libs/libsync"
DEPEND="${RDEPEND}
chromeos-base/metrics
media-libs/cros-camera-android-headers
media-libs/libyuv
virtual/pkgconfig"
src_install() {
cros-camera_dohal "${OUT}/lib/libcamera_hal.so" usb.so
}