annotate make/Tools.gmk @ 14486:b64581fa1b03

Merge
author vlivanov
date Tue, 10 May 2016 21:38:46 +0000
parents b2a69d66dc65
children b2f12e28d97b
rev   line source
ohair@5221 1 #
erikj@9502 2 # Copyright (c) 2011, 2014, 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
ohair@5221 40 # Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
chegar@10967 41 TOOL_ADDJSUM = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 42 build.tools.addjsum.AddJsum
ohair@5221 43
alanb@13901 44 ifeq ($(BOOT_JDK_MODULAR), true)
alanb@13901 45 COMPILEFONTCONFIG_ADD_EXPORTS := -XaddExports:java.desktop/sun.awt=ALL-UNNAMED
alanb@13901 46 endif
alanb@13901 47
chegar@10967 48 TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@13901 49 $(COMPILEFONTCONFIG_ADD_EXPORTS) \
ihse@8330 50 build.tools.compilefontconfig.CompileFontConfig
ohair@5221 51
chegar@10967 52 TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 53 build.tools.compileproperties.CompileProperties
ohair@5221 54
chegar@10967 55 TOOL_JARREORDER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 56 build.tools.jarreorder.JarReorder
ohair@5221 57
chegar@10967 58 TOOL_GENERATECHARACTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 59 build.tools.generatecharacter.GenerateCharacter
ohair@5221 60
chegar@10967 61 TOOL_CHARACTERNAME = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 62 build.tools.generatecharacter.CharacterName
ohair@5221 63
erikj@9502 64 TOOL_DTDBUILDER = $(JAVA_SMALL) -Ddtd_home=$(JDK_TOPDIR)/make/data/dtdbuilder \
ihse@9531 65 -Djava.awt.headless=true \
chegar@10967 66 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.dtdbuilder.DTDBuilder
ohair@5221 67
erikj@9502 68 TOOL_GENERATEBREAKITERATORDATA = $(JAVA_SMALL) \
chegar@10967 69 -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 70 build.tools.generatebreakiteratordata.GenerateBreakIteratorData
ohair@5221 71
chegar@10967 72 TOOL_GENERATECURRENCYDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 73 build.tools.generatecurrencydata.GenerateCurrencyData
ohair@5221 74
chegar@10967 75 TOOL_HASHER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 76 build.tools.hasher.Hasher
ohair@5221 77
chegar@10967 78 TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 79 build.tools.tzdb.TzdbZoneRulesCompiler
sherman@6418 80
chegar@10967 81 TOOL_BLACKLISTED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10265 82 build.tools.blacklistedcertsconverter.BlacklistedCertsConverter
weijun@10265 83
chegar@10967 84 TOOL_MAKEJAVASECURITY = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
weijun@10454 85 build.tools.makejavasecurity.MakeJavaSecurity
weijun@10454 86
sherman@6418 87
ihse@8330 88 # TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
ohair@5221 89 # and nbproject/project.properties in the same dir. Needs to be looked at.
chegar@10967 90 TOOL_JDWPGEN = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.jdwpgen.Main
ohair@5221 91
ohair@5221 92 # TODO: Lots of files in jdk/make/tools/CharsetMapping dir
chegar@10967 93 TOOL_CHARSETMAPPING = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@9232 94 build.tools.charsetmapping.Main $(LOG_INFO)
ohair@5221 95
chegar@10967 96 TOOL_SPP = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.spp.Spp
ohair@5221 97
ohair@5221 98 # Nimbus is used somewhere in the swing build.
alanb@14357 99
alanb@14357 100 ifeq ($(BOOT_JDK_MODULAR), true)
alanb@14357 101 COMPILENIMBUS_ADD_MODS := -addmods java.xml.bind
alanb@14357 102 endif
alanb@14357 103
chegar@10967 104 TOOL_GENERATENIMBUS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
alanb@14357 105 $(COMPILENIMBUS_ADD_MODS) \
ihse@8330 106 build.tools.generatenimbus.Generator
erikj@5507 107
chegar@10967 108 TOOL_WRAPPERGENERATOR = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
erikj@9287 109 build.tools.x11wrappergen.WrapperGenerator
erikj@5507 110
chegar@10967 111 TOOL_AWT_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 112 build.tools.icondata.awt.ToBin
erikj@5596 113
chegar@10967 114 TOOL_OSX_TOBIN = $(JAVA_SMALL) -Djava.awt.headless=true -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8845 115 build.tools.icondata.osxapp.ToBin
ohair@6025 116
chegar@10967 117 TOOL_CLDRCONVERTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
ihse@8330 118 build.tools.cldrconverter.CLDRConverter
naoto@5747 119
alanb@13901 120 TOOL_GENMODULESXML = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 121 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
mchung@10562 122 build.tools.module.GenJdepsModulesXml
chegar@10444 123
alanb@13901 124 TOOL_GENMODULEINFOSOURCE = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 125 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 126 build.tools.module.GenModuleInfoSource
alanb@13901 127
alanb@13901 128 TOOL_GENCLASSLOADERMAP = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
alanb@13901 129 -cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
alanb@13901 130 build.tools.module.GenModuleLoaderMap
alanb@13901 131
alanb@13901 132 ##########################################################################################
chegar@10967 133
chegar@10444 134 endif # _TOOLS_GMK