| # Copyright 2022 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_LOCALNAME="../platform2" |
| # iioservice/ is included just to make sandbox happy when running `gn gen`. |
| CROS_WORKON_SUBTREE=".gn camera/build camera/common camera/features camera/gpu camera/include camera/mojo chromeos-config common-mk iioservice/libiioservice_ipc iioservice/mojo metrics ml_core mojo_service_manager" |
| CROS_WORKON_OUTOFTREE_BUILD="1" |
| CROS_WORKON_INCREMENTAL_BUILD="1" |
| |
| PLATFORM_SUBDIR="camera/common/sw_privacy_switch_test" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="ChromeOS Camera SW privacy switch test" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="~*" |
| |
| IUSE="" |
| |
| BDEPEND="virtual/pkgconfig" |
| |
| RDEPEND=" |
| chromeos-base/chromeos-config-tools:= |
| chromeos-base/cros-camera-android-deps:= |
| chromeos-base/cros-camera-libs:= |
| chromeos-base/metrics:= |
| chromeos-base/mojo_service_manager:= |
| dev-cpp/gtest:= |
| media-libs/libyuv:= |
| " |
| |
| DEPEND=" |
| chromeos-base/system_api:= |
| x11-drivers/opengles-headers:= |
| ${RDEPEND} |
| " |
| |
| src_configure() { |
| # This is necessary for CameraBufferManagerImpl::AllocateScopedBuffer to |
| # succeed. Without this, gbm_bo_create will fail. |
| cros_optimize_package_for_speed |
| platform_src_configure |
| } |