diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go index 27f1e2ef..693f981f 100644 --- a/build/soong/android/variable.go +++ b/build/soong/android/variable.go @@ -9,6 +9,9 @@ type Product_variables struct { Needs_text_relocations struct { Cppflags []string } + Target_process_sdk_version_override struct { + Cppflags []string + } Target_shim_libs struct { Cppflags []string } @@ -33,6 +36,7 @@ type ProductVariables struct { Java_Source_Overlays *string `json:",omitempty"` Needs_text_relocations *bool `json:",omitempty"` Specific_camera_parameter_library *string `json:",omitempty"` + Target_process_sdk_version_override *string `json:",omitempty"` Target_shim_libs *string `json:",omitempty"` Uses_generic_camera_parameter_library *bool `json:",omitempty"` Uses_nvidia_enhancements *bool `json:",omitempty"` diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk index 852ee844..9ac6b9a8 100644 --- a/build/soong/soong_config.mk +++ b/build/soong/soong_config.mk @@ -8,6 +8,7 @@ $(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_ $(call add_json_str, Java_Source_Overlays, $(JAVA_SOURCE_OVERLAYS)) $(call add_json_bool, Needs_text_relocations, $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS))) $(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)) +$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE)) $(call add_json_str, Target_shim_libs, $(TARGET_LD_SHIM_LIBS)) $(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true)) $(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))