make/CompileToolsJdk.gmk
changeset 47398 1fd27535bc57
parent 47364 6b3389375f31
child 48841 0937e5f799df
--- a/make/CompileToolsJdk.gmk	Fri Oct 20 13:10:35 2017 +0200
+++ b/make/CompileToolsJdk.gmk	Fri Oct 20 13:33:35 2017 +0200
@@ -42,13 +42,14 @@
     $(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes \
     #
 
-$(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
+$(eval $(call SetupJavaCompilation,BUILD_TOOLS_JDK, \
     SETUP := GENERATE_OLDBYTECODE, \
     SRC := $(BUILD_TOOLS_SRC_DIRS), \
     EXCLUDES := \
         build/tools/deps \
         build/tools/docs \
         build/tools/jigsaw \
+        build/tools/depend \
         , \
     BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes, \
     ADD_JAVAC_FLAGS := \
@@ -70,4 +71,21 @@
 
 ################################################################################
 
+$(eval $(call SetupJavaCompilation, COMPILE_DEPEND, \
+    SETUP := GENERATE_OLDBYTECODE, \
+    SRC := $(TOPDIR)/make/jdk/src/classes, \
+    INCLUDES := build/tools/depend, \
+    BIN := $(BUILDTOOLS_OUTPUTDIR)/depend, \
+))
+
+DEPEND_SERVICE_PROVIDER := $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services/com.sun.source.util.Plugin
+
+$(DEPEND_SERVICE_PROVIDER):
+	$(call MakeDir, $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services)
+	$(ECHO) build.tools.depend.Depend > $@
+
+TARGETS += $(COMPILE_DEPEND) $(DEPEND_SERVICE_PROVIDER)
+
+################################################################################
+
 all: $(TARGETS)