Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 1 | PRODUCT_SOONG_NAMESPACES += \ |
Krzysztof Kosiński | 1316da7 | 2023-06-02 05:11:57 +0000 | [diff] [blame^] | 2 | hardware/google/camera |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 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. |
| 10 | ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),) |
| 11 | $(call soong_config_set,gch,hwl_library,lyric) |
| 12 | endif |
| 13 | |
| 14 | # Check if we're in PDK build |
| 15 | ifeq ($(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) |
| 18 | else |
| 19 | # Otherwise, it's an internal Google build. |
| 20 | $(call soong_config_set,lyric,pdk_build,false) |
| 21 | |
| 22 | PRODUCT_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. |
| 30 | PRODUCT_SOONG_NAMESPACES += \ |
| 31 | vendor/google/camera/google_3a/libs_v4/g3ABase \ |
| 32 | vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \ |
| 33 | vendor/google/camera/google_3a/libs_v4/gAF \ |
| 34 | vendor/google/camera/google_3a/libs_v4/gafd \ |
| 35 | vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage |
| 36 | |
| 37 | # Calibration tool for debug builds |
| 38 | PRODUCT_PACKAGES_DEBUG += tarasque_test |
| 39 | |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 40 | endif # vendor/google/camera check |
| 41 | |
| 42 | # Init-time log settings for Google 3A |
| 43 | PRODUCT_PACKAGES += libg3a_standalone_gabc_rc |
| 44 | PRODUCT_PACKAGES += libg3a_standalone_gaf_rc |
| 45 | PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc |
| 46 | |
| 47 | # Vendor APEX which contains the camera HAL |
| 48 | PRODUCT_PACKAGES += com.google.pixel.camera.hal |
| 49 | PRODUCT_PACKAGES += init.camera.set-interrupts-ownership |
Krzysztof Kosiński | b105faa | 2023-05-04 05:29:28 +0000 | [diff] [blame] | 50 | PRODUCT_PACKAGES += lyric_preview_dis_xml |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 51 | |
| 52 | # sepolicy dir is added in dump.mk. |
| 53 | # Make doesn't deduplicate sepolicy dirs, so including it here causes build errors. |