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:
Yuntao Xu
2021-12-15 20:20:49 -08:00
parent 8c495942c2
commit 45513fe80a
2 changed files with 21 additions and 0 deletions

View File

@@ -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",
})
}

View File

@@ -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,
}
`,
},
}