Add debuggable product variable with cflags

Allows changing cflags based on the build variant being `eng` or
`userdebug`. This is used by some modules to turn on asserts for these
builds, and used by adb to allow root on non-user builds.

Test: Use this flag in an Android.bp, check the ninja file.
Change-Id: I27a5081378e94920482b4a742d65c46065047573
This commit is contained in:
Dan Willemsen
2016-09-22 14:49:10 -07:00
parent b912349c03
commit fcebcd5c37

View File

@@ -62,6 +62,10 @@ type variableProperties struct {
Binder32bit struct {
Cflags []string
}
Debuggable struct {
Cflags []string
}
} `android:"arch_variant"`
}
@@ -102,6 +106,7 @@ type productVariables struct {
Schedboost *bool `json:",omitempty"`
Binder32bit *bool `json:",omitempty"`
UseGoma *bool `json:",omitempty"`
Debuggable *bool `json:",omitempty"`
DevicePrefer32BitExecutables *bool `json:",omitempty"`
HostPrefer32BitExecutables *bool `json:",omitempty"`