Merge "Simplify vendor conditionals"

This commit is contained in:
Colin Cross
2020-01-27 19:03:23 +00:00
committed by Gerrit Code Review
12 changed files with 1479 additions and 57 deletions

View File

@@ -62,6 +62,7 @@ type EarlyModuleContext interface {
ModuleName() string
ModuleDir() string
ModuleType() string
BlueprintsFile() string
ContainsProperty(name string) bool
Errorf(pos scanner.Position, fmt string, args ...interface{})
@@ -524,9 +525,13 @@ func (k moduleKind) String() string {
}
}
func initAndroidModuleBase(m Module) {
m.base().module = m
}
func InitAndroidModule(m Module) {
initAndroidModuleBase(m)
base := m.base()
base.module = m
m.AddProperties(
&base.nameProperties,