Merge "Handle LOCAL_JAVA_RESOURCE_FILES variable"
This commit is contained in:
commit
a0dd60879b
|
@ -146,6 +146,7 @@ func init() {
|
|||
"LOCAL_RENDERSCRIPT_FLAGS": "renderscript.flags",
|
||||
|
||||
"LOCAL_JAVA_RESOURCE_DIRS": "java_resource_dirs",
|
||||
"LOCAL_JAVA_RESOURCE_FILES": "java_resources",
|
||||
"LOCAL_JAVACFLAGS": "javacflags",
|
||||
"LOCAL_ERROR_PRONE_FLAGS": "errorprone.javacflags",
|
||||
"LOCAL_DX_FLAGS": "dxflags",
|
||||
|
|
|
@ -577,6 +577,10 @@ include $(call all-makefiles-under,$(LOCAL_PATH))
|
|||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, src gen)
|
||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_JAVA_RESOURCE_FILES := foo bar
|
||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
||||
`,
|
||||
expected: `
|
||||
java_library {
|
||||
|
@ -604,6 +608,13 @@ include $(call all-makefiles-under,$(LOCAL_PATH))
|
|||
"gen/**/*.java",
|
||||
],
|
||||
}
|
||||
|
||||
java_library {
|
||||
java_resources: [
|
||||
"foo",
|
||||
"bar",
|
||||
],
|
||||
}
|
||||
`,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue