diff options
author | Colin Cross <ccross@android.com> | 2016-12-08 09:46:35 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-12-08 09:46:35 -0800 |
commit | 6bc59ef731d60d43b249c3ff5e4ba85a5d21c78d (patch) | |
tree | b9711c1059b384a576e92143113451a00f6fd33b /android | |
parent | be360ae4c1781b323b4fa66d5392765a15284694 (diff) | |
download | build_soong-6bc59ef731d60d43b249c3ff5e4ba85a5d21c78d.tar.gz build_soong-6bc59ef731d60d43b249c3ff5e4ba85a5d21c78d.tar.bz2 build_soong-6bc59ef731d60d43b249c3ff5e4ba85a5d21c78d.zip |
Support eng product variable
The eng product variable will be true for builds where
TARGET_BUILD_VARIANT==eng.
Test: mmma -j frameworks/compile/libbcc
Change-Id: I808129740643495370bea64df3fe5bcf01eb9915
Diffstat (limited to 'android')
-rw-r--r-- | android/variable.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/variable.go b/android/variable.go index 1ee6c9bb..f0063702 100644 --- a/android/variable.go +++ b/android/variable.go @@ -66,10 +66,21 @@ type variableProperties 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 + // as possible. Debuggable struct { Cflags []string Cppflags []string } + + // eng is true for -eng builds, and can be used to turn on additionaly heavyweight debugging + // features. + Eng struct { + Cflags []string + Cppflags []string + } } `android:"arch_variant"` } @@ -112,6 +123,7 @@ type productVariables struct { Binder32bit *bool `json:",omitempty"` UseGoma *bool `json:",omitempty"` Debuggable *bool `json:",omitempty"` + Eng *bool `json:",omitempty"` VendorPath *string `json:",omitempty"` |