androidmk: use a single map for property list

Change-Id: I08019443f5fcb012190486e9144a1bfec26761b4
This commit is contained in:
Colin Cross
2015-05-08 13:53:10 -07:00
committed by Colin Cross
parent d3ba039f74
commit f5f5dec662
2 changed files with 74 additions and 74 deletions

View File

@@ -231,12 +231,8 @@ func handleAssignment(file *bpFile, assignment mkparser.Assignment, c *condition
}
var err error
if prop, ok := stringProperties[name]; ok {
err = setVariable(file, assignment.Value, assignment.Type == "+=", prop, bpparser.String, true, class, suffix)
} else if prop, ok := listProperties[name]; ok {
err = setVariable(file, assignment.Value, assignment.Type == "+=", prop, bpparser.List, true, class, suffix)
} else if prop, ok := boolProperties[name]; ok {
err = setVariable(file, assignment.Value, assignment.Type == "+=", prop, bpparser.Bool, true, class, suffix)
if prop, ok := standardProperties[name]; ok {
err = setVariable(file, assignment.Value, assignment.Type == "+=", prop.string, prop.ValueType, true, class, suffix)
} else if _, ok := deleteProperties[name]; ok {
return
} else {