blob: d225d3b4ae40844cd7bd97144683e9691d335065 [file] [log] [blame]
Krzysztof KosiƄskieea841f2023-04-29 09:26:55 +00001PRODUCT_SOONG_NAMESPACES += \
2 hardware/google/camera \
3 vendor/google/services/LyricCameraHAL/src \
4 vendor/google/services/LyricCameraHAL/src/apex
5
6$(call soong_config_set,lyric,use_lyric_camera_hal,true)
7$(call soong_config_set,google3a_config,gcam_awb,true)
8$(call soong_config_set,google3a_config,ghawb_truetone,true)
9
10# Select GCH backend.
11# TODO(b/192681010): This dependency inversion should be removed.
12ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),)
13$(call soong_config_set,gch,hwl_library,lyric)
14endif
15
16# Check if we're in PDK build
17ifeq ($(wildcard vendor/google/camera),)
18# If vendor/google/camera doesn't exist, it's a PDK build.
19$(call soong_config_set,lyric,pdk_build,true)
20else
21# Otherwise, it's an internal Google build.
22$(call soong_config_set,lyric,pdk_build,false)
23
24PRODUCT_SOONG_NAMESPACES += \
25 vendor/google/camera \
26 vendor/google/camera/google_3a/libs_v4 \
27 vendor/google/camera/rlsservice
28
29# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
30# code coverage support, temporary require separate namespace for folders that
31# can be built successfully.
32PRODUCT_SOONG_NAMESPACES += \
33 vendor/google/camera/google_3a/libs_v4/g3ABase \
34 vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \
35 vendor/google/camera/google_3a/libs_v4/gAF \
36 vendor/google/camera/google_3a/libs_v4/gafd \
37 vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
38
39# Calibration tool for debug builds
40PRODUCT_PACKAGES_DEBUG += tarasque_test
41
42# dualcamcapture only works for GMS build. Only enable this apk for GMS userdebug/eng builds
43ifeq (,$(filter aosp_% factory_%,$(TARGET_PRODUCT)))
44PRODUCT_PACKAGES_DEBUG += dualcamcapture
45PRODUCT_COPY_FILES += vendor/google/camera/devices/whi/preinstalled-packages-product-camera-device-vendor-debug.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/preinstalled-packages-product-camera-device-vendor-debug.xml
46endif
47
48endif # vendor/google/camera check
49
50# Init-time log settings for Google 3A
51PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
52PRODUCT_PACKAGES += libg3a_standalone_gaf_rc
53PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
54
55# Vendor APEX which contains the camera HAL
56PRODUCT_PACKAGES += com.google.pixel.camera.hal
57PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
58
59# sepolicy dir is added in dump.mk.
60# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.
61
62PRODUCT_COPY_FILES += vendor/google/services/LyricCameraHAL/src/vendor.android.hardware.camera.preview-dis.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor.android.hardware.camera.preview-dis.xml