vendor: soong: add target_needs_client_info
Change-Id: I3b6378ab56ac81b568b09bc341ee875ec4c402f9
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 521624c..ba7718f 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -208,6 +208,23 @@
}
soong_config_module_type {
+ name: "target_camera_needs_client_info",
+ module_type: "cc_defaults",
+ config_namespace: "evolutionGlobalVars",
+ bool_variables: ["target_camera_needs_client_info"],
+ properties: ["cppflags"],
+}
+
+target_camera_needs_client_info {
+ name: "target_camera_needs_client_info_defaults",
+ soong_config_variables: {
+ target_camera_needs_client_info: {
+ cppflags: ["-DTARGET_NEEDS_CLIENT_INFO"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "no_cameraserver",
module_type: "cc_defaults",
config_namespace: "blissGlobalVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 2f3c1a1..bc371e9 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -35,6 +35,7 @@
has_memfd_backport \
ignores_ftp_pptp_conntrack_failure \
needs_netd_direct_connect_rule \
+ target_camera_needs_client_info \
target_init_vendor_lib \
target_ld_shim_libs \
target_process_sdk_version_override \
@@ -70,6 +71,7 @@
SOONG_CONFIG_blissGlobalVars_has_memfd_backport := $(TARGET_HAS_MEMFD_BACKPORT)
SOONG_CONFIG_blissGlobalVars_ignores_ftp_pptp_conntrack_failure := $(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE)
SOONG_CONFIG_blissGlobalVars_needs_netd_direct_connect_rule := $(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE)
+SOONG_CONFIG_blissGlobalVars_target_camera_needs_client_info := $(TARGET_CAMERA_NEEDS_CLIENT_INFO)
SOONG_CONFIG_blissNvidiaVars_uses_nv_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)
SOONG_CONFIG_blissQcomVars_legacy_hw_disk_encryption := $(TARGET_LEGACY_HW_DISK_ENCRYPTION)
SOONG_CONFIG_blissQcomVars_should_wait_for_qsee := $(TARGET_KEYMASTER_WAIT_FOR_QSEE)