| # Copyright 2018 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/include camera/mojo common-mk" |
| CROS_WORKON_OUTOFTREE_BUILD="1" |
| CROS_WORKON_INCREMENTAL_BUILD="1" |
| |
| PLATFORM_SUBDIR="camera/common/libcamera_ipc" |
| |
| inherit cros-camera cros-workon platform |
| |
| DESCRIPTION="Chrome OS HAL IPC util." |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="~*" |
| |
| RDEPEND="media-libs/cros-camera-libcamera_metadata" |
| |
| DEPEND="${RDEPEND} |
| media-libs/cros-camera-libcamera_common |
| virtual/pkgconfig" |
| |
| src_configure() { |
| cros_optimize_package_for_speed |
| platform_src_configure |
| } |
| |
| src_install() { |
| platform_src_install |
| dolib.so "${OUT}/lib/libcamera_ipc.so" |
| dolib.a "${OUT}/libcamera_ipc_mojom.a" |
| |
| cros-camera_doheader \ |
| ../../include/cros-camera/camera_mojo_channel_manager.h \ |
| ../../include/cros-camera/ipc_util.h |
| |
| cros-camera_dopc ../libcamera_ipc.pc.template |
| } |