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 | |
Baligh Uddin | 941dc90 | 2024-07-09 23:19:23 +0000 | [diff] [blame] | 8 | # 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ński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 11 | # Select GCH backend. |
| 12 | # TODO(b/192681010): This dependency inversion should be removed. |
| 13 | ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),) |
| 14 | $(call soong_config_set,gch,hwl_library,lyric) |
| 15 | endif |
| 16 | |
Baligh Uddin | 29b454d | 2024-08-13 14:47:50 +0000 | [diff] [blame] | 17 | # 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 | |
Aleks Rozman | 83e7cc5 | 2024-11-20 22:48:19 +0000 | [diff] [blame] | 23 | # Fallback if the prebuilts directory does not exist, then we must |
| 24 | # build from source no matter what, so we log a warning |
| 25 | ifeq ($(RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT),true) |
| 26 | ifeq ($(wildcard vendor/google/services/LyricCameraHAL/prebuilt),) |
| 27 | $(warning Lyric prebuilt directory is missing, it will be built from source) |
| 28 | BUILD_LYRIC_FROM_SOURCE := true |
| 29 | else |
| 30 | BUILD_LYRIC_FROM_SOURCE := false |
| 31 | endif |
| 32 | else |
| 33 | BUILD_LYRIC_FROM_SOURCE := true |
| 34 | endif # RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 35 | |
Aleks Rozman | 83e7cc5 | 2024-11-20 22:48:19 +0000 | [diff] [blame] | 36 | ifeq ($(BUILD_LYRIC_FROM_SOURCE),true) |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 37 | PRODUCT_SOONG_NAMESPACES += \ |
| 38 | vendor/google/camera \ |
| 39 | vendor/google/camera/google_3a/libs_v4 \ |
| 40 | vendor/google/camera/rlsservice |
| 41 | |
| 42 | # TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native |
| 43 | # code coverage support, temporary require separate namespace for folders that |
| 44 | # can be built successfully. |
| 45 | PRODUCT_SOONG_NAMESPACES += \ |
Cherry Ng | 6ff7ca0 | 2023-06-30 23:42:49 +0800 | [diff] [blame] | 46 | vendor/google/camera/common/g3_shared \ |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 47 | vendor/google/camera/google_3a/libs_v4/g3ABase \ |
| 48 | vendor/google/camera/google_3a/libs_v4/gABC/native_coverage \ |
| 49 | vendor/google/camera/google_3a/libs_v4/gAF \ |
| 50 | vendor/google/camera/google_3a/libs_v4/gafd \ |
| 51 | vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage |
Aleks Rozman | 83e7cc5 | 2024-11-20 22:48:19 +0000 | [diff] [blame] | 52 | endif # BUILD_LYRIC_FROM_SOURCE |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 53 | |
| 54 | # Init-time log settings for Google 3A |
| 55 | PRODUCT_PACKAGES += libg3a_standalone_gabc_rc |
| 56 | PRODUCT_PACKAGES += libg3a_standalone_gaf_rc |
| 57 | PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc |
| 58 | |
| 59 | # Vendor APEX which contains the camera HAL |
| 60 | PRODUCT_PACKAGES += com.google.pixel.camera.hal |
| 61 | PRODUCT_PACKAGES += init.camera.set-interrupts-ownership |
Krzysztof Kosiński | b105faa | 2023-05-04 05:29:28 +0000 | [diff] [blame] | 62 | PRODUCT_PACKAGES += lyric_preview_dis_xml |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 63 | |
Utku Utkan | 12a1666 | 2023-06-14 16:03:27 -0700 | [diff] [blame] | 64 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \ |
| 65 | device/google/gs-common/camera/device_framework_matrix_product.xml |
| 66 | |
Utku Utkan | 7b4794f | 2023-06-21 08:56:46 -0700 | [diff] [blame] | 67 | DEVICE_MATRIX_FILE += \ |
| 68 | device/google/gs-common/camera/compatibility_matrix.xml |
| 69 | |
Krzysztof Kosiński | eea841f | 2023-04-29 09:26:55 +0000 | [diff] [blame] | 70 | # sepolicy dir is added in dump.mk. |
| 71 | # Make doesn't deduplicate sepolicy dirs, so including it here causes build errors. |
Krzysztof Kosiński | f7eae2a | 2024-12-05 20:11:21 +0000 | [diff] [blame] | 72 | |
| 73 | # Calibration tools for debug builds |
| 74 | PRODUCT_PACKAGES_DEBUG += tarasque_test |
| 75 | PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator |