1#
2# Copyright (C) 2022 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Enable Camera Extension sample
18ifeq ($(TARGET_USE_CAMERA_ADVANCED_EXTENSION_SAMPLE),true)
19PRODUCT_PACKAGES += \
20    androidx.camera.extensions.impl.advanced advancedSample_camera_extensions.xml \
21    libencoderjpeg_jni
22
23PRODUCT_PACKAGES += EyesFreeVidService
24
25else
26PRODUCT_PACKAGES += androidx.camera.extensions.impl sample_camera_extensions.xml
27endif
28
29PRODUCT_SOONG_NAMESPACES += hardware/google/camera
30PRODUCT_SOONG_NAMESPACES += hardware/google/camera/devices/EmulatedCamera
31
32# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
33# code coverage support, temporary require separate namespace for folders that
34# can be built successfully.
35PRODUCT_SOONG_NAMESPACES += vendor/google/camera/common/g3_shared
36PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/g3ABase
37PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gABC/native_coverage
38PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gAF
39PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gafd
40PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
41
42# go/lyric-soong-variables
43$(call soong_config_set,lyric,camera_hardware,cuttlefish)
44$(call soong_config_set,lyric,tuning_product,cuttlefish)
45$(call soong_config_set,google3a_config,target_device,cuttlefish)
46
47ifeq ($(TARGET_USE_VSOCK_CAMERA_HAL_IMPL),true)
48PRODUCT_PACKAGES += \
49    android.hardware.camera.provider@2.7-external-vsock-service \
50    android.hardware.camera.provider@2.7-impl-cuttlefish
51DEVICE_MANIFEST_FILE += \
52    device/google/cuttlefish/guest/hals/camera/manifest.xml
53else
54PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal
55PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal.fastscenecycle
56endif
57