diff options
author | Steven Moreland <smoreland@google.com> | 2017-05-18 15:44:02 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-05-19 15:19:57 -0700 |
commit | e24bc204c95c539401cb2fecd0509841fe2fe154 (patch) | |
tree | 06f9d09eed2760e5f92434e3d78bc91d98cdc60c /android | |
parent | 2c13abc95e3e2c6c12fff6aa42262ef3296c2a1b (diff) | |
download | build_soong-e24bc204c95c539401cb2fecd0509841fe2fe154.tar.gz build_soong-e24bc204c95c539401cb2fecd0509841fe2fe154.tar.bz2 build_soong-e24bc204c95c539401cb2fecd0509841fe2fe154.zip |
Add Treble as soong variable.
This exposes PRODUCT_FULL_TREBLE.
This is required so that we can add sane defaults to Treble code.
Test: manual
Bug: 38415912
Change-Id: Ia3ea4aeee799b998380a1600026075dab66286a3
Diffstat (limited to 'android')
-rw-r--r-- | android/variable.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/variable.go b/android/variable.go index ef5b13c0..666d7294 100644 --- a/android/variable.go +++ b/android/variable.go @@ -67,6 +67,13 @@ type variableProperties struct { Cflags []string } + // treble is true when a build is a Treble compliant device. This is automatically set when + // a build is shipped with Android O, but can be overriden. This controls such things as + // the sepolicy split and enabling the Treble linker namespaces. + Treble struct { + Cflags []string + } + // debuggable is true for eng and userdebug builds, and can be used to turn on additional // debugging features that don't significantly impact runtime behavior. userdebug builds // are used for dogfooding and performance testing, and should be as similar to user builds @@ -130,6 +137,7 @@ type productVariables struct { Eng *bool `json:",omitempty"` EnableCFI *bool `json:",omitempty"` Device_uses_hwc2 *bool `json:",omitempty"` + Treble *bool `json:",omitempty"` VendorPath *string `json:",omitempty"` |