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

Commit 38a5faf6 authored by Yuntao Xu's avatar Yuntao Xu Committed by Gerrit Code Review
Browse files

Merge "Support LOCAL_CHECK_ELF_FILES in androidmk tool"

parents 55f84a74 45513fe8
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,
}
`,
	},
}