diff --git a/build/soong/Android.bp b/build/soong/Android.bp index bf2ff6b4275b854ad62fa037cc0e6c537ca84dc0..3fbec9aa4e54fee5fd78e20d382a295af1561640 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -81,6 +81,23 @@ aapt_version_code { }, } +soong_config_module_type { + name: "camera_expose_clientpkgname", + module_type: "cc_defaults", + config_namespace: "lineageGlobalVars", + bool_variables: ["camera_expose_clientpkgname"], + properties: ["cppflags"], +} + +camera_expose_clientpkgname { + name: "camera_expose_clientpkgname_defaults", + soong_config_variables: { + camera_expose_clientpkgname: { + cppflags: ["-DTARGET_CAMERA_EXPOSE_CLIENTPKGNAME"], + }, + }, +} + soong_config_module_type { name: "camera_override_format_from_reserved", module_type: "cc_defaults", diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 1f8885897d40d3707b69467ae804ab64d554a2a0..0246357a9385664ea6ac1df01aabf2c7a20d1b8e 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -31,6 +31,7 @@ SOONG_CONFIG_lineageGlobalVars += \ aapt_version_code \ additional_gralloc_10_usage_bits \ bootloader_message_offset \ + camera_expose_clientpkgname \ camera_override_format_from_reserved \ camera_custom_scaler_configuration \ force_render_engine_gen_textures \ @@ -75,6 +76,7 @@ SOONG_CONFIG_lineageQcomVars += \ endif # Soong bool variables +SOONG_CONFIG_lineageGlobalVars_camera_expose_clientpkgname := $(TARGET_CAMERA_EXPOSE_CLIENTPKGNAME) SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED) SOONG_CONFIG_lineageGlobalVars_camera_custom_scaler_configuration := $(TARGET_CAMERA_CUSTOM_SCALER_CONFIGURATION) SOONG_CONFIG_lineageGlobalVars_force_render_engine_gen_textures := $(TARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES) @@ -91,6 +93,7 @@ SOONG_CONFIG_lineageQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_P # Set default values BOOTLOADER_MESSAGE_OFFSET ?= 0 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 +TARGET_CAMERA_EXPOSE_CLIENTPKGNAME ?= false TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false TARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES ?= false TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false