Skip compiling Java if an apk has no Java code.

Change-Id: Iee204e03ad5bc8ce5c3b4b3863c19c89184826e2
This commit is contained in:
Ying Wang 2013-08-28 17:28:36 -07:00
parent 990cf5e57d
commit 37b82aacd9
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ full_classes_proguard_jar := $(intermediates.COMMON)/$(proguard_jar_leaf)
built_dex_intermediate := $(intermediates.COMMON)/$(built_dex_intermediate_leaf) built_dex_intermediate := $(intermediates.COMMON)/$(built_dex_intermediate_leaf)
full_classes_stubs_jar := $(intermediates.COMMON)/stubs.jar full_classes_stubs_jar := $(intermediates.COMMON)/stubs.jar
ifeq ($(LOCAL_EXPORT_PACKAGE_RESOURCES),true) ifeq ($(LOCAL_MODULE_CLASS)$(LOCAL_SRC_FILES)$(LOCAL_STATIC_JAVA_LIBRARIES)$(LOCAL_SOURCE_FILES_ALL_GENERATED),APPS)
# This is framework-res, we don't need to compile any Java code. # If this is an apk without any Java code (e.g. framework-res), we should skip compiling Java.
full_classes_jar := full_classes_jar :=
built_dex := built_dex :=
else else