blob: c77a3f435e2f9c6b1dbcad986c48b99cf73fe167 [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_COMMIT="7198886aa352d29ae07eea8ca3e25094e14c8189"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "d58be6324ba2a1d0452d23bafb39c869c5ed2cd6" "b99d8a0b7d7f0e2f844af457f29d449cdd953d43" "584f7cc8998d8fa6c9b041054ce4a352016f477a" "84441b28a7584715021e2faf292e0cf5864ea8bf" "eec5ce9cfadd268344b02efdbec7465fbc391a9e")
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"
SLOT="0"
KEYWORDS="*"
RDEPEND="
!media-libs/arc-camera3-libcab
media-libs/cros-camera-libcamera_common
media-libs/cros-camera-libcamera_ipc"
DEPEND="${RDEPEND}"
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
}