annotate makefiles/Tools.gmk @ 8330:9c60860b1812

8001931: The new build system whitespace cleanup Reviewed-by: tbell, simonis, erikj
author ihse
date Thu, 10 Oct 2013 15:06:21 +0200
parents 88597d465e48
children 187d5ccb5b18 969e8c6c26cc
rev   line source
ohair@5221 1 #
leonidr@7450 2 # Copyright (c) 2011, 2013, 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
erikj@6354 26 # Cache all finds needed for this file. Only used on windows.
ihse@8330 27 $(eval $(call FillCacheFind, $(JDK_TOPDIR)/make/tools \
erikj@6354 28 $(JDK_TOPDIR)/makefiles/sun))
erikj@6354 29
ihse@8330 30 TOOLS_SRC := $(JDK_TOPDIR)/make/tools/src \
ihse@8330 31 $(JDK_TOPDIR)/makefiles/sun/awt/ \
ihse@8330 32 $(JDK_TOPDIR)/makefiles/sun/osxapp \
ihse@8330 33 $(JDK_TOPDIR)/make/tools/swing-beans
erikj@6357 34
ihse@8330 35 ifneq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 36 TOOLS_SRC += $(JDK_TOPDIR)/src/solaris/classes/sun/awt/X11/generator
erikj@6357 37 endif
erikj@6357 38
erikj@5507 39 # The exception handling of swing beaninfo which have the own tool directory
ihse@8330 40 ifeq (, $(BUILD_TOOLS))
ihse@8330 41 $(eval $(call SetupJavaCompilation,BUILD_TOOLS, \
ihse@8330 42 SETUP := GENERATE_OLDBYTECODE, \
ihse@8330 43 SRC := $(TOOLS_SRC), \
ihse@8330 44 BIN := $(JDK_OUTPUTDIR)/btclasses))
ohair@5221 45 endif
ohair@5221 46
ihse@8330 47 $(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template: \
ihse@8330 48 $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/%.template
erikj@6824 49 $(call install-file)
ohair@5221 50
ihse@8330 51 BUILD_TOOLS += $(foreach i, $(wildcard $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/*.template), $(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/$(notdir $i))
ohair@5221 52
alanb@6583 53 # Resources used by CheckDeps tool
ihse@8330 54 $(JDK_OUTPUTDIR)/btclasses/build/tools/deps/%: \
ihse@8330 55 $(JDK_TOPDIR)/make/tools/src/build/tools/deps/%
erikj@6824 56 $(call install-file)
alanb@6583 57
alanb@6583 58 BUILD_TOOLS += $(JDK_OUTPUTDIR)/btclasses/build/tools/deps/refs.allowed
alanb@6583 59
ohair@5221 60 # Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
ihse@8330 61 TOOL_ADDJSUM = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 62 build.tools.addjsum.AddJsum
ohair@5221 63
ohair@5221 64 # The buildmetaindex tool creates a meta-index to make core class loaders lazier.
ihse@8330 65 TOOL_BUILDMETAINDEX = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 66 build.tools.buildmetaindex.BuildMetaIndex
ohair@5221 67
ohair@5221 68 # The comment checker is not currently used. Should it be removed or added to javac?
ihse@8330 69 TOOL_COMMENTCHECKER = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 70 build.tools.commentchecker.CommentChecker
ohair@5221 71
ihse@8330 72 TOOL_COMPILEFONTCONFIG = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 73 build.tools.compilefontconfig.CompileFontConfig
ohair@5221 74
ihse@8330 75 TOOL_COMPILEPROPERTIES = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 76 build.tools.compileproperties.CompileProperties
ohair@5221 77
ihse@8330 78 TOOL_STRIPPROPERTIES = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 79 build.tools.stripproperties.StripProperties
ohair@5221 80
ihse@8330 81 TOOL_JARREORDER = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 82 build.tools.jarreorder.JarReorder
ohair@5221 83
ihse@8330 84 TOOL_GENERATECHARACTER = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 85 build.tools.generatecharacter.GenerateCharacter
ohair@5221 86
ihse@8330 87 TOOL_CHARACTERNAME = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 88 build.tools.generatecharacter.CharacterName
ohair@5221 89
ihse@8330 90 TOOL_DIRDIFF = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 91 build.tools.dirdiff.DirDiff
ohair@5221 92
ihse@8330 93 TOOL_DTDBUILDER = $(JAVA) -Ddtd_home=$(JDK_TOPDIR)/make/tools/dtdbuilder/dtds \
ihse@8330 94 -cp $(JDK_OUTPUTDIR)/btclasses build.tools.dtdbuilder.DTDBuilder
ohair@5221 95
ihse@8330 96 TOOL_GENERATEBREAKITERATORDATA = $(JAVA) \
ihse@8330 97 -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 98 build.tools.generatebreakiteratordata.GenerateBreakIteratorData
ohair@5221 99
ihse@8330 100 TOOL_GENERATECURRENCYDATA = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 101 build.tools.generatecurrencydata.GenerateCurrencyData
ohair@5221 102
ihse@8330 103 TOOL_HASHER = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 104 build.tools.hasher.Hasher
ohair@5221 105
ohair@5221 106 # Jarsplit used in jdk/makefiles/common/Release.gmk
ihse@8330 107 TOOL_JARSPLIT = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 108 build.tools.jarsplit.JarSplit
ohair@5221 109
ihse@8330 110 TOOL_TZDB = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 111 build.tools.tzdb.TzdbZoneRulesCompiler
sherman@6418 112
sherman@6418 113
ihse@8330 114 # TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
ohair@5221 115 # and nbproject/project.properties in the same dir. Needs to be looked at.
ihse@8330 116 TOOL_JDWPGEN = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.jdwpgen.Main
ohair@5221 117
ohair@5221 118 # TODO: Lots of files in jdk/make/tools/CharsetMapping dir
ihse@8330 119 TOOL_CHARSETMAPPING = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 120 build.tools.charsetmapping.Main
ohair@5221 121
ihse@8330 122 TOOL_SPP = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.spp.Spp
ohair@5221 123
ohair@5221 124 # TODO: Only referenced in jdk/make/tools/sharing/README.txt. Find out what it means.
ihse@8330 125 TOOL_MAKECLASSLIST = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 126 build.tools.makeclasslist.MakeClasslist
ohair@5221 127
ohair@5221 128 # Nimbus is used somewhere in the swing build.
ihse@8330 129 TOOL_GENERATENIMBUS = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 130 build.tools.generatenimbus.Generator
erikj@5507 131
ihse@8330 132 TOOL_WRAPPERGENERATOR = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 133 WrapperGenerator
erikj@5507 134
ihse@8330 135 TOOL_AWT_TOBIN = $(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 136 sun.awt.ToBin
erikj@5596 137
ihse@8330 138 TOOL_OSX_TOBIN = $(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 139 sun.osxapp.ToBin
ohair@6025 140
ihse@8330 141 TOOL_CLDRCONVERTER = $(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ihse@8330 142 build.tools.cldrconverter.CLDRConverter
naoto@5747 143
ihse@8330 144 TOOL_REMOVEMETHODS = $(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
alanb@6574 145 -cp $(JDK_OUTPUTDIR)/btclasses:$(JDK_OUTPUTDIR) \
ihse@8330 146 build.tools.classfile.RemoveMethods
alanb@6574 147
ihse@8330 148 TOOL_CHECKDEPS = $(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
alanb@6583 149 -cp $(JDK_OUTPUTDIR)/btclasses:$(JDK_OUTPUTDIR) \
ihse@8330 150 build.tools.deps.CheckDeps
alanb@6583 151
erikj@5596 152 ##########################################################################################
erikj@5596 153
erikj@5596 154 # Tools needed on solaris because OBJCOPY is broken.
erikj@5596 155
ihse@8330 156 $(eval $(call SetupNativeCompilation,ADD_GNU_DEBUGLINK, \
ihse@8330 157 SRC := $(JDK_TOPDIR)/make/tools/add_gnu_debuglink, \
ihse@8330 158 LANG := C, \
ihse@8330 159 CC := $(BUILD_CC), \
ihse@8330 160 LDEXE := $(BUILD_LD), \
ihse@8330 161 LDFLAGS := -lelf, \
ihse@8330 162 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/add_gnu_debuglink, \
ihse@8330 163 OUTPUT_DIR := $(JDK_OUTPUTDIR)/btbin, \
ihse@8330 164 PROGRAM := add_gnu_debuglink))
erikj@5596 165
ihse@8330 166 $(eval $(call SetupNativeCompilation,FIX_EMPTY_SEC_HDR_FLAGS, \
ihse@8330 167 SRC := $(JDK_TOPDIR)/make/tools/fix_empty_sec_hdr_flags, \
ihse@8330 168 LANG := C, \
ihse@8330 169 CC := $(BUILD_CC), \
ihse@8330 170 LDEXE := $(BUILD_LD), \
ihse@8330 171 LDFLAGS := -lelf, \
ihse@8330 172 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/fix_empty_sec_hdr_flags, \
ihse@8330 173 OUTPUT_DIR := $(JDK_OUTPUTDIR)/btbin, \
ihse@8330 174 PROGRAM := fix_empty_sec_hdr_flags))