blob: dba48680cf517626319ee3b311fe84094152f343 [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="3fcdd2789452dc40c6f6869b6ded54c721db38dd"
CROS_WORKON_TREE="45a5b79c4ce9f0d38b3b16b0186ae3f5ca4f1ec4"
CROS_WORKON_PROJECT="chromiumos/platform/arc-camera"
CROS_WORKON_LOCALNAME="../platform/arc-camera"
inherit cros-debug cros-workon libchrome toolchain-funcs 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"
DEPEND="${RDEPEND}
chromeos-base/libbrillo
chromeos-base/libmojo
virtual/pkgconfig"
src_configure() {
asan-setup-env
cros-workon_src_configure
}
src_compile() {
cw_emake -C hal/usb_v1 arc_camera_service
}
src_install() {
dobin arc_camera_service
insinto /etc/init
doins hal/usb_v1/init/arc-camera.conf
}
pkg_preinst() {
enewuser "arc-camera"
enewgroup "arc-camera"
}