blob: 1cbeb5577000070c670af295f29a00f3b7b23079 [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
CROS_WORKON_COMMIT="3707efc7b46699a0cc3dda6cba6fa690b53fc5a2"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "d58be6324ba2a1d0452d23bafb39c869c5ed2cd6" "f76f85cfde5b6e7eae8482e02ac6d106817612bc" "9a1d74f381a0598323466c6f0202ae30a6e49f85" "33f5c85605bbd9799200a560b8c3c77aec28a377" "2e487464bf8f7df9d7bea110f9c514bd1e56bf4f")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="../platform2"
# TODO(crbug.com/914263): camera/hal/usb is unnecessary for this build but is
# workaround for unexpected sandbox behavior.
CROS_WORKON_SUBTREE=".gn camera/build camera/hal/usb camera/hal/usb_v1 camera/include common-mk"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="camera/hal/usb_v1"
inherit cros-workon platform user
DESCRIPTION="ARC camera service. The service is in charge of accessing camera
device. It uses linux domain socket (/run/camera/camera.sock) to build a
synchronous channel."
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="-asan"
RDEPEND="
!chromeos-base/arc-camera-service
media-libs/cros-camera-libcamera_timezone"
DEPEND="${RDEPEND}
chromeos-base/libbrillo
virtual/pkgconfig"
src_install() {
dobin "${OUT}/arc_camera_service"
insinto /etc/dbus-1/system.d
doins org.chromium.ArcCamera.conf
insinto /etc/init
doins init/arc-camera.conf
}
pkg_preinst() {
enewuser "arc-camera"
enewgroup "arc-camera"
}