Bug: 287069860 Test: lunch <device-type>-userdebug && m Change-Id: Ibf230adbb2a35f7ef49ed0a0620ef59f121729f7
61 lines
2.1 KiB
Makefile
61 lines
2.1 KiB
Makefile
PRODUCT_SOONG_NAMESPACES += \
|
|
hardware/google/camera
|
|
|
|
$(call soong_config_set,lyric,use_lyric_camera_hal,true)
|
|
$(call soong_config_set,google3a_config,gcam_awb,true)
|
|
$(call soong_config_set,google3a_config,ghawb_truetone,true)
|
|
|
|
# Select GCH backend.
|
|
# TODO(b/192681010): This dependency inversion should be removed.
|
|
ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),)
|
|
$(call soong_config_set,gch,hwl_library,lyric)
|
|
endif
|
|
|
|
# Check if we're in PDK build
|
|
ifeq ($(wildcard vendor/google/camera),)
|
|
# If vendor/google/camera doesn't exist, it's a PDK build.
|
|
$(call soong_config_set,lyric,pdk_build,true)
|
|
else
|
|
# Otherwise, it's an internal Google build.
|
|
$(call soong_config_set,lyric,pdk_build,false)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
vendor/google/camera \
|
|
vendor/google/camera/google_3a/libs_v4 \
|
|
vendor/google/camera/rlsservice
|
|
|
|
# TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native
|
|
# code coverage support, temporary require separate namespace for folders that
|
|
# can be built successfully.
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
vendor/google/camera/common/g3_shared \
|
|
vendor/google/camera/google_3a/libs_v4/g3ABase \
|
|
vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \
|
|
vendor/google/camera/google_3a/libs_v4/gAF \
|
|
vendor/google/camera/google_3a/libs_v4/gafd \
|
|
vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage
|
|
|
|
# Calibration tool for debug builds
|
|
PRODUCT_PACKAGES_DEBUG += tarasque_test
|
|
|
|
endif # vendor/google/camera check
|
|
|
|
# Init-time log settings for Google 3A
|
|
PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
|
|
PRODUCT_PACKAGES += libg3a_standalone_gaf_rc
|
|
PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
|
|
|
|
# Vendor APEX which contains the camera HAL
|
|
PRODUCT_PACKAGES += com.google.pixel.camera.hal
|
|
PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
|
|
PRODUCT_PACKAGES += lyric_preview_dis_xml
|
|
|
|
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
|
|
device/google/gs-common/camera/device_framework_matrix_product.xml
|
|
|
|
DEVICE_MATRIX_FILE += \
|
|
device/google/gs-common/camera/compatibility_matrix.xml
|
|
|
|
# sepolicy dir is added in dump.mk.
|
|
# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.
|