lineage: Add TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY variable handling
Change-Id: I6f1cbcd883e91c8c3724dbe53732c7e777e21657
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index c56c36b..8ed22f7 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -3,8 +3,13 @@
Needs_text_relocations struct {
Cppflags []string
}
+ Uses_generic_camera_parameter_library struct {
+ Srcs []string
+ }
}
type ProductVariables struct {
+ Uses_generic_camera_parameter_library *bool `json:",omitempty"`
+ Specific_camera_parameter_library *string `json:",omitempty"`
Needs_text_relocations *bool `json:",omitempty"`
}
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 331f123..be59277 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -4,6 +4,8 @@
$(hide) (\
echo '{'; \
echo '"Lineage": {'; \
+ echo ' "Uses_generic_camera_parameter_library": $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),false,true),'; \
+ echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \
echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false)'; \
echo '},'; \
echo '') > $(SOONG_VARIABLES_TMP)