blob: e3feab3ac256859f7aa7a488a8fdd8600d50688e [file] [log] [blame]
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +00001PRODUCT_SOONG_NAMESPACES += \
Krzysztof Kosiński1316da72023-06-02 05:11:57 +00002 hardware/google/camera
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +00003
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 PDK build
15ifeq ($(wildcard vendor/google/camera),)
16# If vendor/google/camera doesn't exist, it's a PDK build.
17$(call soong_config_set,lyric,pdk_build,true)
18else
19# Otherwise, it's an internal Google build.
20$(call soong_config_set,lyric,pdk_build,false)
21
22PRODUCT_SOONG_NAMESPACES += \
23 vendor/google/camera \
24 vendor/google/camera/google_3a/libs_v4 \
25 vendor/google/camera/rlsservice
26
27# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
28# code coverage support, temporary require separate namespace for folders that
29# can be built successfully.
30PRODUCT_SOONG_NAMESPACES += \
Cherry Ng6ff7ca02023-06-30 23:42:49 +080031 vendor/google/camera/common/g3_shared \
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000032 vendor/google/camera/google_3a/libs_v4/g3ABase \
33 vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \
34 vendor/google/camera/google_3a/libs_v4/gAF \
35 vendor/google/camera/google_3a/libs_v4/gafd \
36 vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
37
38# Calibration tool for debug builds
39PRODUCT_PACKAGES_DEBUG += tarasque_test
Raja Ramachandrancf1faab2023-12-06 11:18:50 +080040PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000041
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000042endif # vendor/google/camera check
43
44# Init-time log settings for Google 3A
45PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
46PRODUCT_PACKAGES += libg3a_standalone_gaf_rc
47PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
48
49# Vendor APEX which contains the camera HAL
50PRODUCT_PACKAGES += com.google.pixel.camera.hal
51PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
Krzysztof Kosińskib105faa2023-05-04 05:29:28 +000052PRODUCT_PACKAGES += lyric_preview_dis_xml
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000053
Utku Utkan12a16662023-06-14 16:03:27 -070054DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
55 device/google/gs-common/camera/device_framework_matrix_product.xml
56
Utku Utkan7b4794f2023-06-21 08:56:46 -070057DEVICE_MATRIX_FILE += \
58 device/google/gs-common/camera/compatibility_matrix.xml
59
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000060# sepolicy dir is added in dump.mk.
61# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.