Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45513fe8 authored by Yuntao Xu's avatar Yuntao Xu
Browse files

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
parent 8c495942
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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",
		})
}

+19 −0
Original line number Diff line number Diff line
@@ -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,
}
`,
	},
}