summaryrefslogtreecommitdiffstats
path: root/core/static_java_library.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-04-26 12:26:33 -0700
committerYing Wang <wangying@google.com>2012-04-26 12:27:38 -0700
commit83dbd2f158169c41c0ec9809ae5c3a9b87ec15cb (patch)
tree460f1fea231bb779f70066b9b63ba02b26f6f607 /core/static_java_library.mk
parent486cca44a3f8258466985103d2029b7864321126 (diff)
downloadbuild-83dbd2f158169c41c0ec9809ae5c3a9b87ec15cb.zip
build-83dbd2f158169c41c0ec9809ae5c3a9b87ec15cb.tar.gz
build-83dbd2f158169c41c0ec9809ae5c3a9b87ec15cb.tar.bz2
Option to keep the generated R class in static Java libarry
Bug: 6404748 Set LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY to true to do that. Change-Id: Ieee3cae431e3b1484ec598312729f2c871db2315
Diffstat (limited to 'core/static_java_library.mk')
-rw-r--r--core/static_java_library.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/static_java_library.mk b/core/static_java_library.mk
index 0b2f63b..9165050 100644
--- a/core/static_java_library.mk
+++ b/core/static_java_library.mk
@@ -39,9 +39,11 @@ ifneq (,$(all_resources))
# Those files will be excluded from the built jar.
# The R/Manifest classes should be re-generated in the app Module instead.
# Use '' and $ escape because they will be passed to bash.
+ifneq (true,$(LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY))
LOCAL_JAR_EXCLUDE_FILES := 'R.class' 'R$$*.class' 'Manifest.class' 'Manifest$$*.class'
endif
endif
+endif
include $(BUILD_SYSTEM)/java_library.mk