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 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 += \ 31 vendor/google/camera/common/g3_shared \ 32 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 40 41endif # vendor/google/camera check 42 43# Init-time log settings for Google 3A 44PRODUCT_PACKAGES += libg3a_standalone_gabc_rc 45PRODUCT_PACKAGES += libg3a_standalone_gaf_rc 46PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc 47 48# Vendor APEX which contains the camera HAL 49PRODUCT_PACKAGES += com.google.pixel.camera.hal 50PRODUCT_PACKAGES += init.camera.set-interrupts-ownership 51PRODUCT_PACKAGES += lyric_preview_dis_xml 52 53DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \ 54 device/google/gs-common/camera/device_framework_matrix_product.xml 55 56DEVICE_MATRIX_FILE += \ 57 device/google/gs-common/camera/compatibility_matrix.xml 58 59# sepolicy dir is added in dump.mk. 60# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors. 61