1PRODUCT_SOONG_NAMESPACES += \
2    hardware/google/camera
3
4$(call soong_config_set,lyric,use_lyric_camera_hal,true)
5$(call soong_config_set,google3a_config,gcam_awb,true)
6$(call soong_config_set,google3a_config,ghawb_truetone,true)
7
8# Select GCH backend.
9# TODO(b/192681010): This dependency inversion should be removed.
10ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),)
11$(call soong_config_set,gch,hwl_library,lyric)
12endif
13
14# Check if we're in the internal build
15ifneq ($(wildcard vendor/google/camera),)
16
17PRODUCT_SOONG_NAMESPACES += \
18    vendor/google/camera \
19    vendor/google/camera/google_3a/libs_v4 \
20    vendor/google/camera/rlsservice
21
22# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
23# code coverage support, temporary require separate namespace for folders that
24# can be built successfully.
25PRODUCT_SOONG_NAMESPACES += \
26    vendor/google/camera/common/g3_shared \
27    vendor/google/camera/google_3a/libs_v4/g3ABase \
28    vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \
29    vendor/google/camera/google_3a/libs_v4/gAF \
30    vendor/google/camera/google_3a/libs_v4/gafd \
31    vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
32
33# Calibration tool for debug builds
34PRODUCT_PACKAGES_DEBUG += tarasque_test
35PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator
36
37endif  # vendor/google/camera check
38
39# Init-time log settings for Google 3A
40PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
41PRODUCT_PACKAGES += libg3a_standalone_gaf_rc
42PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
43
44# Vendor APEX which contains the camera HAL
45PRODUCT_PACKAGES += com.google.pixel.camera.hal
46PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
47PRODUCT_PACKAGES += lyric_preview_dis_xml
48
49DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
50    device/google/gs-common/camera/device_framework_matrix_product.xml
51
52DEVICE_MATRIX_FILE += \
53    device/google/gs-common/camera/compatibility_matrix.xml
54
55# sepolicy dir is added in dump.mk.
56# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.
57