soong: Add libcameraservice extension config

Change-Id: Id20f782c1008fed1f15250129618326091f61bf8
This commit is contained in:
Dhina17 2024-05-26 15:27:50 +05:30 committed by Fazil Sheik
parent d18b6f1d48
commit a6bef78c42
2 changed files with 24 additions and 0 deletions

View File

@ -207,3 +207,24 @@ aapt_version_code {
}, },
}, },
} }
soong_config_module_type {
name: "libcameraservice_ext_lib",
module_type: "cc_defaults",
config_namespace: "aospaGlobalVars",
value_variables: ["target_libcameraservice_ext_lib"],
properties: [
"cppflags",
"whole_static_libs",
],
}
libcameraservice_ext_lib {
name: "libcameraservice_ext_lib_defaults",
soong_config_variables: {
target_libcameraservice_ext_lib: {
cppflags: ["-DTARGET_PROVIDES_CAMERA_PROVIDER_EXT_LIB"],
whole_static_libs: ["%s"],
},
},
}

View File

@ -29,6 +29,7 @@ SOONG_CONFIG_aospaGlobalVars += \
target_health_charging_control_supports_toggle \ target_health_charging_control_supports_toggle \
target_init_vendor_lib \ target_init_vendor_lib \
target_ld_shim_libs \ target_ld_shim_libs \
target_libcameraservice_ext_lib \
target_process_sdk_version_override \ target_process_sdk_version_override \
target_surfaceflinger_udfps_lib target_surfaceflinger_udfps_lib
@ -45,6 +46,7 @@ TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE ?= false
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE ?= true TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE ?= true
TARGET_INIT_VENDOR_LIB ?= vendor_init TARGET_INIT_VENDOR_LIB ?= vendor_init
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
TARGET_CAMERA_SERVICE_EXT_LIB ?= libcameraservice_ext_lib
# Soong value variables # Soong value variables
SOONG_CONFIG_aospaGlobalVars_aapt_version_code := $(shell date -u +%Y%m%d) SOONG_CONFIG_aospaGlobalVars_aapt_version_code := $(shell date -u +%Y%m%d)
@ -64,6 +66,7 @@ SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_deadline_path := $(T
SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_bypass := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS) SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_bypass := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS)
SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_deadline := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE) SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_deadline := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE)
SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_toggle := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE) SOONG_CONFIG_aospaGlobalVars_target_health_charging_control_supports_toggle := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE)
SOONG_CONFIG_aospaGlobalVars_target_libcameraservice_ext_lib := $(TARGET_CAMERA_SERVICE_EXT_LIB)
# Gestures # Gestures
define add-gesturevar-if-exist define add-gesturevar-if-exist