vendor: soong: Add camera_needs_client_info_lib
Change-Id: Iee325eb37c470178feb03674dc29e27c09a59faa
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index f4d70f0..e3bd424 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -194,6 +194,27 @@
}
soong_config_module_type {
+ name: "camera_needs_client_info_lib",
+ module_type: "cc_defaults",
+ config_namespace: "blissGlobalVars",
+ bool_variables: ["camera_needs_client_info_lib"],
+ properties: [
+ "cppflags",
+ "shared_libs",
+ ],
+}
+
+camera_needs_client_info_lib {
+ name: "camera_needs_client_info_lib_defaults",
+ soong_config_variables: {
+ camera_needs_client_info_lib: {
+ cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB"],
+ shared_libs: ["//hardware/oneplus:vendor.oneplus.hardware.camera@1.0"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "egl_display_array",
module_type: "cc_defaults",
config_namespace: "blissGlobalVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 08b454b..844cc78 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -37,6 +37,7 @@
target_surfaceflinger_udfps_lib \
uses_egl_display_array \
gralloc_handle_has_reserved_size \
+ camera_needs_client_info_lib \
needs_camera_boottime \
uses_oplus_camera \
uses_nothing_camera
@@ -69,6 +70,7 @@
SOONG_CONFIG_blissQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_PRE_UPLINK_FEATURES_NETMGRD)
SOONG_CONFIG_blissQcomVars_uses_qti_camera_device := $(TARGET_USES_QTI_CAMERA_DEVICE)
SOONG_CONFIG_blissGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE)
+SOONG_CONFIG_blissGlobalVars_camera_needs_client_info_lib := $(TARGET_CAMERA_NEEDS_CLIENT_INFO_LIB)
SOONG_CONFIG_blissGlobalVars_needs_camera_boottime := $(TARGET_CAMERA_BOOTTIME_TIMESTAMP)
SOONG_CONFIG_blissGlobalVars_uses_oplus_camera := $(TARGET_USES_OPLUS_CAMERA)
SOONG_CONFIG_blissGlobalVars_uses_nothing_camera := $(TARGET_USES_NOTHING_CAMERA)