Merge "Export build flags to soong." into main am: 2ab031f467
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2803674 Change-Id: I45035f8c9fb8a57c62cf7d3ef9e141c7bdb0ca37 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
d238b06572
2 changed files with 7 additions and 0 deletions
|
@ -2124,3 +2124,8 @@ func (c *deviceConfig) ReleaseExposeFlaggedApi() bool {
|
|||
func (c *deviceConfig) HideFlaggedApis() bool {
|
||||
return c.NextReleaseHideFlaggedApi() && !c.ReleaseExposeFlaggedApi()
|
||||
}
|
||||
|
||||
func (c *config) GetBuildFlag(name string) (string, bool) {
|
||||
val, ok := c.productVariables.BuildFlags[name]
|
||||
return val, ok
|
||||
}
|
||||
|
|
|
@ -492,6 +492,8 @@ type ProductVariables struct {
|
|||
NextReleaseHideFlaggedApi *bool `json:",omitempty"`
|
||||
|
||||
Release_expose_flagged_api *bool `json:",omitempty"`
|
||||
|
||||
BuildFlags map[string]string `json:",omitempty"`
|
||||
}
|
||||
|
||||
type PartitionQualifiedVariablesType struct {
|
||||
|
|
Loading…
Reference in a new issue