diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-11-18 14:54:24 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-11-28 13:45:24 -0800 |
commit | d2ede879b5027413b288be92bdc4f320124c5d3c (patch) | |
tree | fad2da22ce685b05ff4042ab86941b260e69b801 /android | |
parent | 112fd2b9b1ad51d5a7c17a4859fda75592d6ef93 (diff) | |
download | build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.tar.gz build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.tar.bz2 build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.zip |
Add basic VNDK support in Soong
Export a list of libraries in the VNDK, which is currently empty.
Take in Make's global BOARD_VNDK_VERSION, and use that as the SDK
version for modules that specify use_vndk: true.
Modules that use the vndk have some configuration as if they were
building against the NDK (the absence of globally defined headers), but
in other cases look like platform modules (using the platform libc++,
for now).
This change does not attempt to enforce any linking constraints, that
will come in a later patch.
Test: out/soong/build.ninja doesn't change
Change-Id: I3be206b67015ac5177b7eef4a451c579e3dc903f
Diffstat (limited to 'android')
-rw-r--r-- | android/config.go | 7 | ||||
-rw-r--r-- | android/variable.go | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index 725f43de..fdc7375e 100644 --- a/android/config.go +++ b/android/config.go @@ -424,3 +424,10 @@ func (c *deviceConfig) Arches() []Arch { } return arches } + +func (c *deviceConfig) VndkVersion() string { + if c.config.ProductVariables.DeviceVndkVersion == nil { + return "" + } + return *c.config.ProductVariables.DeviceVndkVersion +} diff --git a/android/variable.go b/android/variable.go index c1948b0b..3436a75e 100644 --- a/android/variable.go +++ b/android/variable.go @@ -87,6 +87,7 @@ type productVariables struct { DeviceCpuVariant *string `json:",omitempty"` DeviceAbi *[]string `json:",omitempty"` DeviceUsesClang *bool `json:",omitempty"` + DeviceVndkVersion *string `json:",omitempty"` DeviceSecondaryArch *string `json:",omitempty"` DeviceSecondaryArchVariant *string `json:",omitempty"` |