Remove LOCAL_CPP_EXTENSION during Android.mk translation

LOCAL_CPP_EXTENSION is unnecesary in soong, it can accept files
with .cc or .cpp extension.

Change-Id: I64cb37f199e25f1fed7e53144f85e52ba616529a
This commit is contained in:
Colin Cross 2015-03-18 12:08:31 -07:00
parent af19a29bb7
commit 70a255f3c9
2 changed files with 6 additions and 0 deletions

View file

@ -56,6 +56,10 @@ var boolProperties = map[string]string{
"LOCAL_RTTI_FLAG": "rtti",
}
var deleteProperties = map[string]struct{}{
"LOCAL_CPP_EXTENSION": struct{}{},
}
var propertySuffixes = []struct {
suffix string
class string

View file

@ -241,6 +241,8 @@ func handleAssignment(file *bpFile, assignment mkparser.Assignment, c *condition
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)
} else if _, ok := deleteProperties[name]; ok {
return
} else {
if name == "LOCAL_PATH" {
// Nothing to do, except maybe avoid the "./" in paths?