diff options
author | Ying Wang <wangying@google.com> | 2015-03-27 11:07:17 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2015-03-27 11:15:17 -0700 |
commit | 8b27d1879c5692ebe6c5ac85383981fd96dfe2e1 (patch) | |
tree | d0137cadfbf6e52703a8e0153d178eda236df9f7 /core/dpi_specific_apk.mk | |
parent | 921a5f8940fa3a215cab807c8fbbbca428233e9b (diff) | |
download | build-8b27d1879c5692ebe6c5ac85383981fd96dfe2e1.zip build-8b27d1879c5692ebe6c5ac85383981fd96dfe2e1.tar.gz build-8b27d1879c5692ebe6c5ac85383981fd96dfe2e1.tar.bz2 |
Add back Java resources to apk without Java code.
With commit 33360dd56925276e4526f5f52c26423e2bb1a670 we moved Java
resource packaging forward to creation of the jar file. But the Java
resource packaging will be skipped if a module has no Java code at all.
(The build system does support building an apk without Java code.)
In this change we add back the Java resources directly to the built apk
when the apk has no Java code.
Bug: 19947218
Change-Id: I0e1a65a9cbe656974f8ef3923b2f15e9efa5feb9
Diffstat (limited to 'core/dpi_specific_apk.mk')
-rw-r--r-- | core/dpi_specific_apk.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/dpi_specific_apk.mk b/core/dpi_specific_apk.mk index 3790744..5d0b5bf 100644 --- a/core/dpi_specific_apk.mk +++ b/core/dpi_specific_apk.mk @@ -58,7 +58,10 @@ $(built_dpi_apk) : $(all_res_assets) $(jni_shared_libraries) $(full_android_mani ifneq ($(jni_shared_libraries),) $(add-jni-shared-libs-to-package) endif -ifneq ($(full_classes_jar),) +ifeq ($(full_classes_jar),) +# We don't build jar, need to add the Java resources here. + $(if $(PRIVATE_EXTRA_JAR_ARGS),$(call add-java-resources-to,$@)) +else $(add-dex-to-package) ifdef LOCAL_JACK_ENABLED $(add-carried-jack-resources) |