Refactor standard and rewrite properties to reduce duplication
Refactor calls to standardProperties and rewriteProperties into
translateSingleProperty that can be used for normal, suffix, and
target properties.
Change-Id: I04e060588d4feeba1da7802d68622fe9b20e2c8b
diff --git a/androidbp/cmd/soong.go b/androidbp/cmd/soong.go
index 1841381..f3023d5 100644
--- a/androidbp/cmd/soong.go
+++ b/androidbp/cmd/soong.go
@@ -64,7 +64,7 @@
var rewriteProperties = map[string]struct {
string
- f func(name string, prop *bpparser.Property, suffix *string) ([]string, error)
+ f func(name string, prop *bpparser.Property, val string) (propAssignment, error)
}{
"include_dirs": {"LOCAL_C_INCLUDES", appendAssign},
"local_include_dirs": {"LOCAL_C_INCLUDES", prependLocalPath},