blob: c886138c57002098b7f5cba1bf1705ee6fdaf3b5 [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
Baligh Uddin941dc902024-07-09 23:19:23 +00008# Flag controls whether Lyric apex can be located in the dist-directory.
9$(call soong_config_set, lyric, dist_lyric_apex, $(RELEASE_PIXEL_DIST_LYRIC_APEX))
10
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000011# Select GCH backend.
12# TODO(b/192681010): This dependency inversion should be removed.
13ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),)
14$(call soong_config_set,gch,hwl_library,lyric)
15endif
16
Baligh Uddin29b454d2024-08-13 14:47:50 +000017# Use build-time flag to select whether to build from source
18# or ingest prebuilt-apex. We would want the development teams
19# using release configuration: (trunk-staging) to build from source.
20# All shipping releases will switch to prebuilts (trunk+)
21# if this condition is not true, then build from source.
22
23ifneq ($(RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT),true)
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000024
25PRODUCT_SOONG_NAMESPACES += \
26 vendor/google/camera \
27 vendor/google/camera/google_3a/libs_v4 \
28 vendor/google/camera/rlsservice
29
30# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
31# code coverage support, temporary require separate namespace for folders that
32# can be built successfully.
33PRODUCT_SOONG_NAMESPACES += \
Cherry Ng6ff7ca02023-06-30 23:42:49 +080034 vendor/google/camera/common/g3_shared \
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000035 vendor/google/camera/google_3a/libs_v4/g3ABase \
36 vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \
37 vendor/google/camera/google_3a/libs_v4/gAF \
38 vendor/google/camera/google_3a/libs_v4/gafd \
39 vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
40
41# Calibration tool for debug builds
42PRODUCT_PACKAGES_DEBUG += tarasque_test
Raja Ramachandrancf1faab2023-12-06 11:18:50 +080043PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator
Baligh Uddin29b454d2024-08-13 14:47:50 +000044endif # RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT check
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000045
46# Init-time log settings for Google 3A
47PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
48PRODUCT_PACKAGES += libg3a_standalone_gaf_rc
49PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
50
51# Vendor APEX which contains the camera HAL
52PRODUCT_PACKAGES += com.google.pixel.camera.hal
53PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
Krzysztof Kosińskib105faa2023-05-04 05:29:28 +000054PRODUCT_PACKAGES += lyric_preview_dis_xml
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000055
Utku Utkan12a16662023-06-14 16:03:27 -070056DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
57 device/google/gs-common/camera/device_framework_matrix_product.xml
58
Utku Utkan7b4794f2023-06-21 08:56:46 -070059DEVICE_MATRIX_FILE += \
60 device/google/gs-common/camera/compatibility_matrix.xml
61
Krzysztof Kosińskieea841f2023-04-29 09:26:55 +000062# sepolicy dir is added in dump.mk.
63# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.