Merge "Support LOCAL_ENFORCE_USES_LIBRARIES in androidmk" am: 89733a4ce5

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1703985

Change-Id: Ifa4c6ec4fc968470cda091075f47e6d2669aff6e
This commit is contained in:
Yuntao Xu 2021-05-11 21:53:20 +00:00 committed by Automerger Merge Worker
commit 197dc43bfd
2 changed files with 19 additions and 0 deletions

View File

@ -216,6 +216,8 @@ func init() {
"LOCAL_JETIFIER_ENABLED": "jetifier",
"LOCAL_IS_UNIT_TEST": "unit_test",
"LOCAL_ENFORCE_USES_LIBRARIES": "enforce_uses_libs",
})
}

View File

@ -1444,6 +1444,23 @@ runtime_resource_overlay {
theme: "FooTheme",
}
`,
},
{
desc: "LOCAL_ENFORCE_USES_LIBRARIES",
in: `
include $(CLEAR_VARS)
LOCAL_MODULE := foo
LOCAL_ENFORCE_USES_LIBRARIES := false
LOCAL_ENFORCE_USES_LIBRARIES := true
include $(BUILD_PACKAGE)
`,
expected: `
android_app {
name: "foo",
enforce_uses_libs: false,
enforce_uses_libs: true,
}
`,
},
}