Use += for both assignments to LOCAL_C_INCLUDES
include_dirs and local_include_dirs properties both translate to LOCAL_C_INCLUDES. Use += for both assignments so they don't clobber eachother. Change-Id: Ie9e5e28ecd5a7ca76ab2a981e7d50d2c9b93ad92
This commit is contained in:
@@ -218,6 +218,19 @@ func translateSuffixProperties(suffixProps []*bpparser.Property,
|
||||
return
|
||||
}
|
||||
|
||||
func appendAssign(name string, prop *bpparser.Property, suffix *string) ([]string, error) {
|
||||
if suffix != nil {
|
||||
name += "_" + *suffix
|
||||
}
|
||||
val, err := valueToString(prop.Value)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return []string{
|
||||
fmt.Sprintf("%s += %s", name, val),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func prependLocalPath(name string, prop *bpparser.Property, suffix *string) ([]string, error) {
|
||||
if suffix != nil {
|
||||
name += "_" + *suffix
|
||||
@@ -227,7 +240,7 @@ func prependLocalPath(name string, prop *bpparser.Property, suffix *string) ([]s
|
||||
return nil, err
|
||||
}
|
||||
return []string{
|
||||
fmt.Sprintf("%s := $(addprefix $(LOCAL_PATH)/,%s)\n", name, val),
|
||||
fmt.Sprintf("%s += $(addprefix $(LOCAL_PATH)/,%s)", name, val),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user