summaryrefslogtreecommitdiffstats
path: root/core/java.mk
diff options
context:
space:
mode:
authorJoe Onorato <>2009-04-09 19:31:12 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-09 19:31:12 -0700
commit64d85d0d827489c514f6aec075482563c80cda73 (patch)
tree3322c1d73d006b2d2c675773bbbe6121eb1e016c /core/java.mk
parent3b06a03ef40b5fd841194df1a60b4d72f2a5569a (diff)
downloadbuild-64d85d0d827489c514f6aec075482563c80cda73.zip
build-64d85d0d827489c514f6aec075482563c80cda73.tar.gz
build-64d85d0d827489c514f6aec075482563c80cda73.tar.bz2
AI 145618: am: CL 145333 Cloned from CL 144759 by 'g4 patch'.
Original change by joeo@abreu on 2009/04/06 19:54:13. Implement SDK add-ons in the build system. - Add an option to use the standard javadoc doclet instead of droiddoc, since droiddocs non-sdk templates aren't ready for prime time. - Add the notion of a stubs for a library. It's only implemented for java libraries, but when we do native libraries in the NDK or sdk-addons, it will work there too. Original author: joeo Merged from: //branches/cupcake/... Automated import of CL 145618
Diffstat (limited to 'core/java.mk')
-rw-r--r--core/java.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java.mk b/core/java.mk
index b1ded8a..9150a5c 100644
--- a/core/java.mk
+++ b/core/java.mk
@@ -66,6 +66,21 @@ ifneq (,$(strip $(all_java_sources)))
# variable definitions.
full_classes_jar := $(intermediates.COMMON)/classes.jar
+# Droiddoc isn't currently able to generate stubs for modules, so we're just
+# allowing it to use the classes.jar as the "stubs" that would be use to link
+# against, for the cases where someone needs the jar to link against.
+# - Use the classes.jar instead of the handful of other intermediates that
+# we have, because it's the most processed, but still hasn't had dex run on
+# it, so it's closest to what's on the device.
+# - This extra copy, with the dependency on LOCAL_BUILT_MODULE allows the
+# PRIVATE_ vars to be preserved.
+full_classes_stubs_jar := $(intermediates.COMMON)/stubs.jar
+$(full_classes_stubs_jar): PRIVATE_SOURCE_FILE := $(full_classes_jar)
+$(full_classes_stubs_jar) : $(LOCAL_BUILT_MODULE) | $(ACP)
+ @echo Copying $(PRIVATE_SOURCE_FILE)
+ $(hide) $(ACP) -fp $(PRIVATE_SOURCE_FILE) $@
+ALL_MODULES.$(LOCAL_MODULE).STUBS := $(full_classes_stubs_jar)
+
# Emma source code coverage
ifneq ($(EMMA_INSTRUMENT),true)
LOCAL_NO_EMMA_INSTRUMENT := true