aboutsummaryrefslogtreecommitdiffstats
path: root/android/variable.go
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-05-18 15:44:02 -0700
committerSteven Moreland <smoreland@google.com>2017-05-19 15:54:33 -0700
commit6bf8df248aefec7465b67e4b88397e91d4779da7 (patch)
tree5f28c94c126c02e16064aef782e19ca35b9c7787 /android/variable.go
parent97dc725a22fb775a26355ec2935888709d83610b (diff)
downloadandroid_build_soong-6bf8df248aefec7465b67e4b88397e91d4779da7.tar.gz
android_build_soong-6bf8df248aefec7465b67e4b88397e91d4779da7.tar.bz2
android_build_soong-6bf8df248aefec7465b67e4b88397e91d4779da7.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 Merged-In: Ia3ea4aeee799b998380a1600026075dab66286a3 Change-Id: Ia3ea4aeee799b998380a1600026075dab66286a3
Diffstat (limited to 'android/variable.go')
-rw-r--r--android/variable.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/variable.go b/android/variable.go
index 163113e1..08b3bda5 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -58,6 +58,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
@@ -116,6 +123,7 @@ type productVariables struct {
Debuggable *bool `json:",omitempty"`
Eng *bool `json:",omitempty"`
EnableCFI *bool `json:",omitempty"`
+ Treble *bool `json:",omitempty"`
VendorPath *string `json:",omitempty"`