Merge "Add accessor function for bool product variables." into main am: 9390fb85f6
am: 26ce228d59
am: 596ce76267
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2857545 Change-Id: Ic4ea01b0ab4d53ce3b1f2e01ebb58bda49d8276a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.
|
||||
type ProductConfigContext interface {
|
||||
Module() Module
|
||||
|
Reference in New Issue
Block a user