Remove res and assets in androidmk if default
Test: new tests in androidmk_test and bpfix_test. Ran against file. Fixes: 209019903 Change-Id: I5fc9005302c006b3205b4cbd04cef7c2aca40bc8
This commit is contained in:
@@ -699,7 +699,7 @@ include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
expected: `
|
||||
android_library {
|
||||
srcs: ["test.java"],
|
||||
resource_dirs: ["res"],
|
||||
|
||||
jacoco: {
|
||||
include_filter: ["foo.*"],
|
||||
},
|
||||
@@ -1458,7 +1458,7 @@ include $(BUILD_RRO_PACKAGE)
|
||||
runtime_resource_overlay {
|
||||
name: "foo",
|
||||
product_specific: true,
|
||||
resource_dirs: ["res"],
|
||||
|
||||
sdk_version: "current",
|
||||
theme: "FooTheme",
|
||||
|
||||
@@ -1602,6 +1602,22 @@ cc_prebuilt_library_shared {
|
||||
|
||||
check_elf_files: false,
|
||||
}
|
||||
`,
|
||||
},
|
||||
{
|
||||
desc: "Drop default resource and asset dirs from bp",
|
||||
in: `
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := foo
|
||||
LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
|
||||
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
||||
include $(BUILD_PACKAGE)
|
||||
`,
|
||||
expected: `
|
||||
android_app {
|
||||
name: "foo",
|
||||
|
||||
}
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user