Add accessor function for bool product variables.
Test: treehugger Change-Id: If6a59ba140d28696d1411ee5b5fcfc4fc0e97926
This commit is contained in:
parent
bee01f7d62
commit
3fefc23391
1 changed files with 8 additions and 0 deletions
|
@ -618,6 +618,14 @@ func (v *ProductVariables) SetDefaultConfig() {
|
|||
}
|
||||
}
|
||||
|
||||
func (this *ProductVariables) GetBuildFlagBool(flag string) bool {
|
||||
val, ok := this.BuildFlags[flag]
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
return val == "true"
|
||||
}
|
||||
|
||||
// ProductConfigContext requires the access to the Module to get product config properties.
|
||||
type ProductConfigContext interface {
|
||||
Module() Module
|
||||
|
|
Loading…
Reference in a new issue