androidbp: Add static_executable, fix suffix

Add a conversion for static_executable -> LOCAL_FORCE_STATIC_EXECUTABLE

In androidmk, LOCAL_MODULE_STEM values are converted to 'suffix' values
if it is in the form $(LOCAL_MODULE)<suffix>. Do the opposite in
androidbp.

Change-Id: Ia645cf21c0def3d055188ab5b021344bb50aa58e
This commit is contained in:
Dan Willemsen
2015-06-22 15:40:14 -07:00
parent ff3b795eff
commit 1d9f279a80
2 changed files with 11 additions and 1 deletions

View File

@@ -178,6 +178,15 @@ func prependLocalPath(name string, prop *bpparser.Property, suffix *string) (com
}
}
func prependLocalModule(name string, prop *bpparser.Property, suffix *string) (computedProps []string) {
if suffix != nil {
name += "_" + *suffix
}
return []string {
fmt.Sprintf("%s := $(LOCAL_MODULE)%s\n", name, valueToString(prop)),
}
}
func (w *androidMkWriter) lookupMap(parent bpparser.Value) (mapValue []*bpparser.Property) {
if parent.Variable != "" {
mapValue = w.mapScope[parent.Variable]