OSDN Git Service

Switch target java library dependency file from javalib.jar to classes.jar
authorYing Wang <wangying@google.com>
Wed, 27 Feb 2013 19:54:42 +0000 (11:54 -0800)
committerYing Wang <wangying@google.com>
Wed, 27 Feb 2013 20:11:37 +0000 (12:11 -0800)
Previously, any target Java code that depends on framework.jar has to
wait for the library's javalib.jar.
To build javalib.jar we have to run dx, which is quite slow.
Actually when code links against framework.jar, only classes.jar is
needed.
This improves the potential parallelism of the build system.

Change-Id: I82c5926ef282a3a6096bbf49b54ef4f2a0c2c0e7

core/definitions.mk

index 69e7baa..d172026 100644 (file)
@@ -538,7 +538,7 @@ endef
 # $(1): library name
 # $(2): Non-empty if IS_HOST_MODULE
 define _java-lib-full-dep
-$(call _java-lib-dir,$(1),$(2))/javalib$(COMMON_JAVA_PACKAGE_SUFFIX)
+$(call _java-lib-dir,$(1),$(2))/$(if $(2) javalib,classes)$(COMMON_JAVA_PACKAGE_SUFFIX)
 endef
 
 # $(1): library name list