Merge "Export build flags to soong." into main

This commit is contained in:
Treehugger Robot
2023-11-08 04:15:17 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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 {