Merge "Add accessor function for bool product variables." into main am: 9390fb85f6

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2857545

Change-Id: Iebb94241b9f127458b28f7fed4e9a2c8e912a9f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Joe Onorato
2023-12-05 01:21:50 +00:00
committed by Automerger Merge Worker

View File

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