annotate make/Tools.gmk @ 15812:a0ffa67badf4

8167424: Various trivial fixes in build system Reviewed-by: erikj, tbell
author ihse
date Tue, 11 Oct 2016 09:50:04 +0200
parents 28e938880be3
children e288a5815bdb
rev   line source
ohair@5221 1 #
ihse@15812 2 # Copyright (c) 2011, 2016, 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
erikj@11308 31 ################################################################################
erikj@13471 32 # To avoid reevaluating the compilation setup for the tools each time this file
erikj@13471 33 # is included, the actual compilation is handled by CompileTools.gmk. The
erikj@13471 34 # following trick is used to be able to declare a dependency on the built tools.
erikj@13471 35 BUILD_TOOLS_JDK := $(call SetupJavaCompilationCompileTarget, \
erikj@13471 36 BUILD_TOOLS_JDK, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes)
alanb@6583 37
erikj@11308 38 ################################################################################
alanb@6583 39
alanb@13901 40 ifeq ($(BOOT_JDK_MODULAR), true)
mchung@15333 41 COMPILEFONTCONFIG_ADD_EXPORTS := --add-exports java.desktop/sun.awt=ALL-UNNAMED
alanb@13901 42 endif
alanb@13901 43
chegar@10967 44 TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@13901 45 $(COMPILEFONTCONFIG_ADD_EXPORTS) \
ihse@8330 46 build.tools.compilefontconfig.CompileFontConfig
ohair@5221 47
chegar@10967 48 TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 49 build.tools.compileproperties.CompileProperties
ohair@5221 50
chegar@10967 51 TOOL_JARREORDER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 52 build.tools.jarreorder.JarReorder
ohair@5221 53
chegar@10967 54 TOOL_GENERATECHARACTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 55 build.tools.generatecharacter.GenerateCharacter
ohair@5221 56
chegar@10967 57 TOOL_CHARACTERNAME = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 58 build.tools.generatecharacter.CharacterName
ohair@5221 59
erikj@9502 60 TOOL_DTDBUILDER = $(JAVA_SMALL) -Ddtd_home=$(JDK_TOPDIR)/make/data/dtdbuilder \
ihse@9531 61 -Djava.awt.headless=true \
chegar@10967 62 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.dtdbuilder.DTDBuilder
ohair@5221 63
erikj@9502 64 TOOL_GENERATEBREAKITERATORDATA = $(JAVA_SMALL) \
chegar@10967 65 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 66 build.tools.generatebreakiteratordata.GenerateBreakIteratorData
ohair@5221 67
chegar@10967 68 TOOL_GENERATECURRENCYDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 69 build.tools.generatecurrencydata.GenerateCurrencyData
ohair@5221 70
chegar@10967 71 TOOL_HASHER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 72 build.tools.hasher.Hasher
ohair@5221 73
chegar@10967 74 TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 75 build.tools.tzdb.TzdbZoneRulesCompiler
sherman@6418 76
chegar@10967 77 TOOL_BLACKLISTED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10265 78 build.tools.blacklistedcertsconverter.BlacklistedCertsConverter
weijun@10265 79
chegar@10967 80 TOOL_MAKEJAVASECURITY = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10454 81 build.tools.makejavasecurity.MakeJavaSecurity
weijun@10454 82
sherman@6418 83
ihse@8330 84 # TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
ohair@5221 85 # and nbproject/project.properties in the same dir. Needs to be looked at.
chegar@10967 86 TOOL_JDWPGEN = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.jdwpgen.Main
ohair@5221 87
ohair@5221 88 # TODO: Lots of files in jdk/make/tools/CharsetMapping dir
chegar@10967 89 TOOL_CHARSETMAPPING = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@9232 90 build.tools.charsetmapping.Main $(LOG_INFO)
ohair@5221 91
chegar@10967 92 TOOL_SPP = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.spp.Spp
ohair@5221 93
ohair@5221 94 # Nimbus is used somewhere in the swing build.
alanb@14357 95
alanb@14357 96 ifeq ($(BOOT_JDK_MODULAR), true)
mchung@15333 97 COMPILENIMBUS_ADD_MODS := --add-modules java.xml.bind
alanb@14357 98 endif
alanb@14357 99
chegar@10967 100 TOOL_GENERATENIMBUS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@14357 101 $(COMPILENIMBUS_ADD_MODS) \
ihse@8330 102 build.tools.generatenimbus.Generator
erikj@5507 103
chegar@10967 104 TOOL_WRAPPERGENERATOR = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
erikj@9287 105 build.tools.x11wrappergen.WrapperGenerator
erikj@5507 106
chegar@10967 107 TOOL_AWT_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 108 build.tools.icondata.awt.ToBin
erikj@5596 109
chegar@10967 110 TOOL_OSX_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 111 build.tools.icondata.osxapp.ToBin
ohair@6025 112
chegar@10967 113 TOOL_CLDRCONVERTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 114 build.tools.cldrconverter.CLDRConverter
naoto@5747 115
alanb@13901 116 TOOL_GENMODULESXML = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 117 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
mchung@10562 118 build.tools.module.GenJdepsModulesXml
chegar@10444 119
alanb@13901 120 TOOL_GENMODULEINFOSOURCE = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 121 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 122 build.tools.module.GenModuleInfoSource
alanb@13901 123
alanb@13901 124 TOOL_GENCLASSLOADERMAP = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 125 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 126 build.tools.module.GenModuleLoaderMap
alanb@13901 127
alanb@13901 128 ##########################################################################################
chegar@10967 129
chegar@10444 130 endif # _TOOLS_GMK