Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c51262 authored by Ying Wang's avatar Ying Wang Committed by Android Git Automerger
Browse files

am 54e81f54: am 37b82aac: Skip compiling Java if an apk has no Java code.

* commit '54e81f54':
  Skip compiling Java if an apk has no Java code.
parents 664a2367 54e81f54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,8 +107,8 @@ full_classes_proguard_jar := $(intermediates.COMMON)/$(proguard_jar_leaf)
built_dex_intermediate := $(intermediates.COMMON)/$(built_dex_intermediate_leaf)/classes.dex
full_classes_stubs_jar := $(intermediates.COMMON)/stubs.jar

ifeq ($(LOCAL_EXPORT_PACKAGE_RESOURCES),true)
# This is framework-res, we don't need to compile any Java code.
ifeq ($(LOCAL_MODULE_CLASS)$(LOCAL_SRC_FILES)$(LOCAL_STATIC_JAVA_LIBRARIES)$(LOCAL_SOURCE_FILES_ALL_GENERATED),APPS)
# If this is an apk without any Java code (e.g. framework-res), we should skip compiling Java.
full_classes_jar :=
built_dex :=
else