annotate make/Tools.gmk @ 17050:101f35eefb01

Merge
author anazarov
date Thu, 20 Apr 2017 22:46:22 -0700
parents a0ffa67badf4
children
rev   line source
ohair@5221 1 #
mullan@17026 2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
ohair@5221 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@5221 4 #
ohair@5221 5 # This code is free software; you can redistribute it and/or modify it
ohair@5221 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5221 7 # published by the Free Software Foundation. Oracle designates this
ohair@5221 8 # particular file as subject to the "Classpath" exception as provided
ohair@5221 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@5221 10 #
ohair@5221 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@5221 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@5221 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@5221 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@5221 15 # accompanied this code).
ohair@5221 16 #
ohair@5221 17 # You should have received a copy of the GNU General Public License version
ohair@5221 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@5221 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@5221 20 #
ohair@5221 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5221 22 # or visit www.oracle.com if you need additional information or have any
ohair@5221 23 # questions.
ohair@5221 24 #
ohair@5221 25
chegar@10444 26 ifndef _TOOLS_GMK
chegar@10444 27 _TOOLS_GMK := 1
chegar@10444 28
chegar@10444 29 include JavaCompilation.gmk
chegar@10444 30
mullan@17026 31 # Hook to include the corresponding custom file, if present.
mullan@17026 32 $(eval $(call IncludeCustomExtension, jdk, Tools.gmk))
mullan@17026 33
erikj@11308 34 ################################################################################
erikj@13471 35 # To avoid reevaluating the compilation setup for the tools each time this file
erikj@13471 36 # is included, the actual compilation is handled by CompileTools.gmk. The
erikj@13471 37 # following trick is used to be able to declare a dependency on the built tools.
erikj@13471 38 BUILD_TOOLS_JDK := $(call SetupJavaCompilationCompileTarget, \
erikj@13471 39 BUILD_TOOLS_JDK, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes)
alanb@6583 40
erikj@11308 41 ################################################################################
alanb@6583 42
alanb@13901 43 ifeq ($(BOOT_JDK_MODULAR), true)
mchung@15333 44 COMPILEFONTCONFIG_ADD_EXPORTS := --add-exports java.desktop/sun.awt=ALL-UNNAMED
alanb@13901 45 endif
alanb@13901 46
chegar@10967 47 TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@13901 48 $(COMPILEFONTCONFIG_ADD_EXPORTS) \
ihse@8330 49 build.tools.compilefontconfig.CompileFontConfig
ohair@5221 50
chegar@10967 51 TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 52 build.tools.compileproperties.CompileProperties
ohair@5221 53
chegar@10967 54 TOOL_JARREORDER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 55 build.tools.jarreorder.JarReorder
ohair@5221 56
chegar@10967 57 TOOL_GENERATECHARACTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 58 build.tools.generatecharacter.GenerateCharacter
ohair@5221 59
chegar@10967 60 TOOL_CHARACTERNAME = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 61 build.tools.generatecharacter.CharacterName
ohair@5221 62
erikj@9502 63 TOOL_DTDBUILDER = $(JAVA_SMALL) -Ddtd_home=$(JDK_TOPDIR)/make/data/dtdbuilder \
ihse@9531 64 -Djava.awt.headless=true \
chegar@10967 65 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.dtdbuilder.DTDBuilder
ohair@5221 66
erikj@9502 67 TOOL_GENERATEBREAKITERATORDATA = $(JAVA_SMALL) \
chegar@10967 68 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 69 build.tools.generatebreakiteratordata.GenerateBreakIteratorData
ohair@5221 70
chegar@10967 71 TOOL_GENERATECURRENCYDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 72 build.tools.generatecurrencydata.GenerateCurrencyData
ohair@5221 73
chegar@10967 74 TOOL_HASHER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 75 build.tools.hasher.Hasher
ohair@5221 76
chegar@10967 77 TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 78 build.tools.tzdb.TzdbZoneRulesCompiler
sherman@6418 79
chegar@10967 80 TOOL_BLACKLISTED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10265 81 build.tools.blacklistedcertsconverter.BlacklistedCertsConverter
weijun@10265 82
chegar@10967 83 TOOL_MAKEJAVASECURITY = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10454 84 build.tools.makejavasecurity.MakeJavaSecurity
weijun@10454 85
sherman@6418 86
ihse@8330 87 # TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
ohair@5221 88 # and nbproject/project.properties in the same dir. Needs to be looked at.
chegar@10967 89 TOOL_JDWPGEN = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.jdwpgen.Main
ohair@5221 90
ohair@5221 91 # TODO: Lots of files in jdk/make/tools/CharsetMapping dir
chegar@10967 92 TOOL_CHARSETMAPPING = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@9232 93 build.tools.charsetmapping.Main $(LOG_INFO)
ohair@5221 94
chegar@10967 95 TOOL_SPP = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.spp.Spp
ohair@5221 96
ohair@5221 97 # Nimbus is used somewhere in the swing build.
alanb@14357 98
alanb@14357 99 ifeq ($(BOOT_JDK_MODULAR), true)
mchung@15333 100 COMPILENIMBUS_ADD_MODS := --add-modules java.xml.bind
alanb@14357 101 endif
alanb@14357 102
chegar@10967 103 TOOL_GENERATENIMBUS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@14357 104 $(COMPILENIMBUS_ADD_MODS) \
ihse@8330 105 build.tools.generatenimbus.Generator
erikj@5507 106
chegar@10967 107 TOOL_WRAPPERGENERATOR = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
erikj@9287 108 build.tools.x11wrappergen.WrapperGenerator
erikj@5507 109
chegar@10967 110 TOOL_AWT_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 111 build.tools.icondata.awt.ToBin
erikj@5596 112
chegar@10967 113 TOOL_OSX_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 114 build.tools.icondata.osxapp.ToBin
ohair@6025 115
chegar@10967 116 TOOL_CLDRCONVERTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 117 build.tools.cldrconverter.CLDRConverter
naoto@5747 118
alanb@13901 119 TOOL_GENMODULESXML = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 120 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
mchung@10562 121 build.tools.module.GenJdepsModulesXml
chegar@10444 122
alanb@13901 123 TOOL_GENMODULEINFOSOURCE = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 124 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 125 build.tools.module.GenModuleInfoSource
alanb@13901 126
alanb@13901 127 TOOL_GENCLASSLOADERMAP = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 128 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 129 build.tools.module.GenModuleLoaderMap
alanb@13901 130
alanb@13901 131 ##########################################################################################
chegar@10967 132
chegar@10444 133 endif # _TOOLS_GMK