soong_config: Add TARGET_HAS_LEGACY_CAMERA_HAL1 variable

* Soong product variable 'has_legacy_camera_hal1'

Change-Id: I10800cba0c431297b5d7aad6e97d57a01232d73e
Signed-off-by: Adrian DC <radian.dc@gmail.com>
This commit is contained in:
Adrian DC 2017-07-24 14:04:34 +02:00 committed by Arne Coucheron
parent a9e0134376
commit 41927e4838
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,8 @@
package android
type Product_variables struct {
Has_legacy_camera_hal1 struct {
Cflags []string
}
Needs_text_relocations struct {
Cppflags []string
}
@ -19,6 +22,7 @@ type Product_variables struct {
}
type ProductVariables struct {
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Needs_text_relocations *bool `json:",omitempty"`
Specific_camera_parameter_library *string `json:",omitempty"`
Target_shim_libs *string `json:",omitempty"`

View file

@ -4,6 +4,7 @@ lineage_soong:
$(hide) (\
echo '{'; \
echo '"Lineage": {'; \
echo ' "Has_legacy_camera_hal1": $(if $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)),true,false),'; \
echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \
echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \
echo ' "Target_shim_libs": "$(subst $(space),:,$(TARGET_LD_SHIM_LIBS))",'; \