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
diff --git a/android/variable.go b/android/variable.go
index 1ee6c9b..f006370 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -66,10 +66,21 @@
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 @@
Binder32bit *bool `json:",omitempty"`
UseGoma *bool `json:",omitempty"`
Debuggable *bool `json:",omitempty"`
+ Eng *bool `json:",omitempty"`
VendorPath *string `json:",omitempty"`