32 33 # Hook to include the corresponding custom file, if present. 34 $(eval $(call IncludeCustomExtension, gendata/Gendata-jdk.compiler-pre.gmk)) 35 36 # This is needed to properly setup DOCS_MODULES. 37 $(eval $(call ReadImportMetaData)) 38 39 # Modules that should be visible for 9 - the documented modules: 40 CT_MODULES := $(DOCS_MODULES) 41 42 # Get the complete module source path: 43 CT_MODULESOURCEPATH := $(call GetModuleSrcPath) 44 45 CT_DATA_DESCRIPTION ?= $(TOPDIR)/make/data/symbols/symbols 46 47 COMPILECREATESYMBOLS_ADD_EXPORTS := \ 48 --add-exports jdk.compiler.interim/com.sun.tools.javac.api=ALL-UNNAMED \ 49 --add-exports jdk.compiler.interim/com.sun.tools.javac.code=ALL-UNNAMED \ 50 --add-exports jdk.compiler.interim/com.sun.tools.javac.util=ALL-UNNAMED \ 51 --add-exports jdk.compiler.interim/com.sun.tools.javac.jvm=ALL-UNNAMED \ 52 --add-exports jdk.jdeps.interim/com.sun.tools.classfile=ALL-UNNAMED \ 53 # 54 55 $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \ 56 SETUP := GENERATE_OLDBYTECODE, \ 57 SRC := $(TOPDIR)/make/langtools/src/classes, \ 58 INCLUDES := build/tools/symbolgenerator, \ 59 BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols, \ 60 ADD_JAVAC_FLAGS := $(INTERIM_LANGTOOLS_ARGS) \ 61 $(COMPILECREATESYMBOLS_ADD_EXPORTS), \ 62 )) 63 64 $(SUPPORT_OUTPUTDIR)/symbols/ct.sym-files/_the.symbols: \ 65 $(COMPILE_CREATE_SYMBOLS) \ 66 $(wildcard $(TOPDIR)/make/data/symbols/*) \ 67 $(MODULE_INFOS) 68 $(RM) -r $(@D) 69 $(MKDIR) -p $(@D) 70 $(ECHO) Creating ct.sym classes 71 $(JAVA_SMALL) $(INTERIM_LANGTOOLS_ARGS) \ 72 $(COMPILECREATESYMBOLS_ADD_EXPORTS) \ 73 -classpath $(BUILDTOOLS_OUTPUTDIR)/create_symbols \ 74 build.tools.symbolgenerator.CreateSymbols \ 75 build-ctsym \ 76 $(CT_DATA_DESCRIPTION) \ 77 $(@D) 78 $(MKDIR) $(@D)/A | 32 33 # Hook to include the corresponding custom file, if present. 34 $(eval $(call IncludeCustomExtension, gendata/Gendata-jdk.compiler-pre.gmk)) 35 36 # This is needed to properly setup DOCS_MODULES. 37 $(eval $(call ReadImportMetaData)) 38 39 # Modules that should be visible for 9 - the documented modules: 40 CT_MODULES := $(DOCS_MODULES) 41 42 # Get the complete module source path: 43 CT_MODULESOURCEPATH := $(call GetModuleSrcPath) 44 45 CT_DATA_DESCRIPTION ?= $(TOPDIR)/make/data/symbols/symbols 46 47 COMPILECREATESYMBOLS_ADD_EXPORTS := \ 48 --add-exports jdk.compiler.interim/com.sun.tools.javac.api=ALL-UNNAMED \ 49 --add-exports jdk.compiler.interim/com.sun.tools.javac.code=ALL-UNNAMED \ 50 --add-exports jdk.compiler.interim/com.sun.tools.javac.util=ALL-UNNAMED \ 51 --add-exports jdk.compiler.interim/com.sun.tools.javac.jvm=ALL-UNNAMED \ 52 # 53 54 $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \ 55 SETUP := GENERATE_OLDBYTECODE, \ 56 SRC := $(TOPDIR)/make/langtools/src/classes \ 57 $(TOPDIR)/src/jdk.jdeps/share/classes, \ 58 INCLUDES := build/tools/symbolgenerator com/sun/tools/classfile, \ 59 BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols, \ 60 ADD_JAVAC_FLAGS := $(INTERIM_LANGTOOLS_ARGS) \ 61 $(COMPILECREATESYMBOLS_ADD_EXPORTS), \ 62 )) 63 64 $(SUPPORT_OUTPUTDIR)/symbols/ct.sym-files/_the.symbols: \ 65 $(COMPILE_CREATE_SYMBOLS) \ 66 $(wildcard $(TOPDIR)/make/data/symbols/*) \ 67 $(MODULE_INFOS) 68 $(RM) -r $(@D) 69 $(MKDIR) -p $(@D) 70 $(ECHO) Creating ct.sym classes 71 $(JAVA_SMALL) $(INTERIM_LANGTOOLS_ARGS) \ 72 $(COMPILECREATESYMBOLS_ADD_EXPORTS) \ 73 -classpath $(BUILDTOOLS_OUTPUTDIR)/create_symbols \ 74 build.tools.symbolgenerator.CreateSymbols \ 75 build-ctsym \ 76 $(CT_DATA_DESCRIPTION) \ 77 $(@D) 78 $(MKDIR) $(@D)/A |