blob: 1010edfff9d92c26f21918400101e98e44534e44 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="8d996397d3d660327d2123dca8efdeeeadd01711"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "c920da127f686c434165b6056b1cd740f228df6b" "741f8452f96fa388f2ddca6b4c937979b52e9ae5" "25b898600df49f492605ef9c977f7948684c01bb" "a661abd7c4e459764c10f7e466ee615f8c8f0cee" "f86b3dad942180ce041d9034a4f5f9cceb8afe6b")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_SUBTREE=".gn camera/build camera/common camera/include camera/mojo common-mk"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="camera/common/libcab"
inherit cros-camera cros-workon platform
DESCRIPTION="Camera algorithm bridge library for proprietary camera algorithm
isolation"
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE="camera_feature_portrait_mode ipu6se"
RDEPEND="
!media-libs/arc-camera3-libcab
camera_feature_portrait_mode? ( media-libs/cros-camera-libcam_gpu_algo )
media-libs/cros-camera-libcamera_common
media-libs/cros-camera-libcamera_ipc"
DEPEND="${RDEPEND}"
src_install() {
platform_src_install
dobin "${OUT}/cros_camera_algo"
dolib.a "${OUT}/libcab.pic.a"
cros-camera_doheader ../../include/cros-camera/camera_algorithm.h \
../../include/cros-camera/camera_algorithm_bridge.h
cros-camera_dopc ../libcab.pc.template
insinto /etc/init
doins ../init/cros-camera-algo.conf
insinto /etc/dbus-1/system.d
doins ../dbus/CrosCameraAlgo.conf
insinto "/usr/share/policy"
newins "../cros-camera-algo-${ARCH}.policy" cros-camera-algo.policy
# The sandboxed GPU service is used by Portrait Mode feature and IPU6SE
# camera HAL.
if use camera_feature_portrait_mode || use ipu6se ; then
insinto /etc/init
doins ../init/cros-camera-gpu-algo.conf
insinto "/usr/share/policy"
newins "../cros-camera-gpu-algo-${ARCH}.policy" cros-camera-gpu-algo.policy
fi
}