Merge "Add accessor function for bool product variables." into main
This commit is contained in:
@@ -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.
|
// ProductConfigContext requires the access to the Module to get product config properties.
|
||||||
type ProductConfigContext interface {
|
type ProductConfigContext interface {
|
||||||
Module() Module
|
Module() Module
|
||||||
|
Reference in New Issue
Block a user