Support LOCAL_CHECK_ELF_FILES in androidmk tool
Added the support of LOCAL_CHECK_ELF_FILES in the androidmk tool. Bug: 206162779 Test: m androidmk Test: TreeHugger Change-Id: I0864f54259044de2d53686a47094635d4125c071
This commit is contained in:
@@ -229,6 +229,8 @@ func init() {
|
||||
"LOCAL_IS_UNIT_TEST": "unit_test",
|
||||
|
||||
"LOCAL_ENFORCE_USES_LIBRARIES": "enforce_uses_libs",
|
||||
|
||||
"LOCAL_CHECK_ELF_FILES": "check_elf_files",
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -1564,6 +1564,25 @@ android_app {
|
||||
// LOCAL_NOTICE_FILE := license_notice
|
||||
|
||||
}
|
||||
`,
|
||||
},
|
||||
{
|
||||
desc: "LOCAL_CHECK_ELF_FILES",
|
||||
in: `
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := foo
|
||||
LOCAL_SRC_FILES := test.c
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_CHECK_ELF_FILES := false
|
||||
include $(BUILD_PREBUILT)
|
||||
`,
|
||||
expected: `
|
||||
cc_prebuilt_library_shared {
|
||||
name: "foo",
|
||||
srcs: ["test.c"],
|
||||
|
||||
check_elf_files: false,
|
||||
}
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user