Make the prefer property configurable
To replace soong config modules with selects. Bug: 342006386 Test: m nothing --no-skip-soong-tests Change-Id: I56080c9a1647a072836d4e4e50d6a5d2c1a69d28
This commit is contained in:
@@ -26,3 +26,9 @@ func CreateSelectOsToBool(cases map[string]*bool) proptools.Configurable[bool] {
|
||||
resultCases,
|
||||
)
|
||||
}
|
||||
|
||||
func NewSimpleConfigurable[T proptools.ConfigurableElements](value T) proptools.Configurable[T] {
|
||||
return proptools.NewConfigurable(nil, []proptools.ConfigurableCase[T]{
|
||||
proptools.NewConfigurableCase(nil, &value),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user