soong: Add support to set vendor tag with client package name

* OEMs like OnePlus and Nothing detect camera package name to unlock features like 48mp.
* Use TARGET_CAMERA_PACKAGE_NAME to specify the package name.

Change-Id: I207d8547f420d757da1e842316bfaef065a74e3d
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index ff46a54..8227a5e 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -448,6 +448,23 @@
 }
 
 soong_config_module_type {
+    name: "target_camera_package_name",
+    module_type: "cc_defaults",
+    config_namespace: "blissGlobalVars",
+    value_variables: ["target_camera_package_name"],
+    properties: ["cppflags"],
+}
+
+target_camera_package_name {
+    name: "camera_package_name_defaults",
+    soong_config_variables: {
+        target_camera_package_name: {
+            cppflags: ["-DCAMERA_PACKAGE_NAME=\"%s\""],
+        },
+    },
+}
+
+soong_config_module_type {
     name: "health_charging_control",
     module_type: "cc_defaults",
     config_namespace: "blissGlobalVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 8a5b38f..462d726 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -44,6 +44,7 @@
     gralloc_handle_has_custom_content_md_reserved_size \
     gralloc_handle_has_reserved_size \
     sdmcore_has_is_display_hw_available_func \
+    target_camera_package_name \
     target_health_charging_control_charging_path \
     target_health_charging_control_charging_enabled \
     target_health_charging_control_charging_disabled \
@@ -128,6 +129,7 @@
 SOONG_CONFIG_blissGlobalVars_aapt_version_code := $(shell date -u +%Y%m%d)
 SOONG_CONFIG_blissGlobalVars_bootloader_message_offset := $(BOOTLOADER_MESSAGE_OFFSET)
 SOONG_CONFIG_blissGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)
+SOONG_CONFIG_blissGlobalVars_target_camera_package_name := $(TARGET_CAMERA_PACKAGE_NAME)
 SOONG_CONFIG_blissGlobalVars_target_health_charging_control_charging_path := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH)
 SOONG_CONFIG_blissGlobalVars_target_health_charging_control_charging_enabled := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED)
 SOONG_CONFIG_blissGlobalVars_target_health_charging_control_charging_disabled := $(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED)