soong: Add libcameraservice extension config
Change-Id: I4210f5e4845bed58b608fb798597c9a9cbccc832
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 511bf8e..67e9fce 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -587,6 +587,26 @@
},
}
+soong_config_module_type {
+ name: "libcameraservice_ext_lib",
+ module_type: "cc_defaults",
+ config_namespace: "blissGlobalVars",
+ 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"],
+ },
+ },
+}
+
// NVIDIA specific config modules
soong_config_module_type {
name: "nvidia_enhancements",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 93eab06..d4e373f 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -60,6 +60,7 @@
uses_nothing_camera \
uses_oplus_camera \
uses_oppo_camera \
+ target_libcameraservice_ext_lib \
target_power_libperfmgr_mode_extension_lib \
spoof_first_api_level_32 \
target_powershare_path \
@@ -119,6 +120,7 @@
BOOTLOADER_MESSAGE_OFFSET ?= 0
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false
+TARGET_CAMERA_SERVICE_EXT_LIB ?= libcameraservice_ext_lib
TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false
TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false
TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT ?= false
@@ -155,6 +157,7 @@
SOONG_CONFIG_blissGlobalVars_target_health_charging_control_supports_toggle := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE)
SOONG_CONFIG_blissGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
SOONG_CONFIG_blissGlobalVars_target_ld_shim_libs := $(subst $(space),:,$(TARGET_LD_SHIM_LIBS))
+SOONG_CONFIG_blissGlobalVars_target_libcameraservice_ext_lib := $(TARGET_CAMERA_SERVICE_EXT_LIB)
SOONG_CONFIG_blissGlobalVars_target_power_libperfmgr_mode_extension_lib := $(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB)
SOONG_CONFIG_blissGlobalVars_target_powershare_path := $(TARGET_POWERSHARE_PATH)
SOONG_CONFIG_blissGlobalVars_target_powershare_enabled := $(TARGET_POWERSHARE_ENABLED)