Add support for LOCAL_ARM_MODE in androidmk
Uses a hack to nest it inside of an arch-arm block. Change-Id: Id36c7398e4a91fc8dd69fa7d1f78c9d30258281a
This commit is contained in:
parent
6b29069d42
commit
3f0c9ede6d
|
@ -17,12 +17,13 @@ const (
|
|||
)
|
||||
|
||||
var stringProperties = map[string]string{
|
||||
"LOCAL_MODULE": "name",
|
||||
"LOCAL_MODULE_STEM": "stem",
|
||||
"LOCAL_MODULE_CLASS": "class",
|
||||
"LOCAL_CXX_STL": "stl",
|
||||
"LOCAL_STRIP_MODULE": "strip",
|
||||
"LOCAL_MULTILIB": "compile_multilib",
|
||||
"LOCAL_MODULE": "name",
|
||||
"LOCAL_MODULE_STEM": "stem",
|
||||
"LOCAL_MODULE_CLASS": "class",
|
||||
"LOCAL_CXX_STL": "stl",
|
||||
"LOCAL_STRIP_MODULE": "strip",
|
||||
"LOCAL_MULTILIB": "compile_multilib",
|
||||
"LOCAL_ARM_MODE_HACK": "instruction_set",
|
||||
}
|
||||
|
||||
var listProperties = map[string]string{
|
||||
|
|
|
@ -246,6 +246,12 @@ func handleAssignment(file *bpFile, assignment mkparser.Assignment, c *condition
|
|||
} else {
|
||||
if name == "LOCAL_PATH" {
|
||||
// Nothing to do, except maybe avoid the "./" in paths?
|
||||
} else if name == "LOCAL_ARM_MODE" {
|
||||
// This is a hack to get the LOCAL_ARM_MODE value inside
|
||||
// of an arch: { arm: {} } block.
|
||||
armModeAssign := assignment
|
||||
armModeAssign.Name = mkparser.SimpleMakeString("LOCAL_ARM_MODE_HACK_arm", assignment.Name.Pos)
|
||||
handleAssignment(file, armModeAssign, c)
|
||||
} else if strings.HasPrefix(name, "LOCAL_") {
|
||||
//setVariable(file, assignment, name, bpparser.String, true)
|
||||
switch name {
|
||||
|
|
Loading…
Reference in New Issue