annotate makefiles/Tools.gmk @ 5221:9d3d01aca52c

7074397: Build infrastructure changes (makefile re-write) Summary: New makefiles transition, old and new living side by side for now. Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
author ohair
date Tue, 10 Apr 2012 08:22:03 -0700
parents
children 1953cf522107
rev   line source
ohair@5221 1 #
ohair@5221 2 # Copyright (c) 2011, 2012, 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
ohair@5221 26 ifeq (,$(BUILD_TOOLS))
ohair@5221 27 $(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
ohair@5221 28 SETUP:=GENERATE_OLDBYTECODE,\
ohair@5221 29 SRC:=$(JDK_TOPDIR)/make/tools/src,\
ohair@5221 30 BIN:=$(JDK_OUTPUTDIR)/btclasses))
ohair@5221 31 endif
ohair@5221 32
ohair@5221 33 ifndef DISABLE_NIMBUS
ohair@5221 34
ohair@5221 35 $(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template : \
ohair@5221 36 $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/%.template
ohair@5221 37 mkdir -p $(@D)
ohair@5221 38 cp $< $@
ohair@5221 39
ohair@5221 40 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 41
ohair@5221 42 endif
ohair@5221 43
ohair@5221 44
ohair@5221 45 # Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
ohair@5221 46 TOOL_ADDJSUM=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 47 build.tools.addjsum.AddJsum
ohair@5221 48
ohair@5221 49 # The buildmetaindex tool creates a meta-index to make core class loaders lazier.
ohair@5221 50 TOOL_BUILDMETAINDEX=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 51 build.tools.buildmetaindex.BuildMetaIndex
ohair@5221 52
ohair@5221 53 # The comment checker is not currently used. Should it be removed or added to javac?
ohair@5221 54 TOOL_COMMENTCHECKER=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 55 build.tools.commentchecker.CommentChecker
ohair@5221 56
ohair@5221 57 TOOL_COMPILEFONTCONFIG=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 58 build.tools.compilefontconfig.CompileFontConfig
ohair@5221 59
ohair@5221 60 TOOL_COMPILEPROPERTIES=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 61 build.tools.compileproperties.CompileProperties
ohair@5221 62
ohair@5221 63 TOOL_STRIPPROPERTIES=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 64 build.tools.stripproperties.StripProperties
ohair@5221 65
ohair@5221 66 TOOL_JARREORDER=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 67 build.tools.jarreorder.JarReorder
ohair@5221 68
ohair@5221 69 TOOL_GENERATECHARACTER=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 70 build.tools.generatecharacter.GenerateCharacter
ohair@5221 71
ohair@5221 72 TOOL_CHARACTERNAME=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 73 build.tools.generatecharacter.CharacterName
ohair@5221 74
ohair@5221 75 TOOL_DIRDIFF=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 76 build.tools.dirdiff.DirDiff
ohair@5221 77
ohair@5221 78 TOOL_DTDBUILDER=$(JAVA) -Ddtd_home=$(JDK_TOPDIR)/make/tools/dtdbuilder/dtds \
ohair@5221 79 -cp $(JDK_OUTPUTDIR)/btclasses build.tools.dtdbuilder.DTDBuilder
ohair@5221 80
ohair@5221 81 TOOL_GENERATEBREAKITERATORDATA=$(JAVA) \
ohair@5221 82 -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 83 build.tools.generatebreakiteratordata.GenerateBreakIteratorData
ohair@5221 84
ohair@5221 85 TOOL_GENERATECURRENCYDATA=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 86 build.tools.generatecurrencydata.GenerateCurrencyData
ohair@5221 87
ohair@5221 88 TOOL_HASHER=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 89 build.tools.hasher.Hasher
ohair@5221 90
ohair@5221 91 # Jarsplit used in jdk/makefiles/common/Release.gmk
ohair@5221 92 TOOL_JARSPLIT=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 93 build.tools.jarsplit.JarSplit
ohair@5221 94
ohair@5221 95 TOOL_JAVAZIC=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 96 build.tools.javazic.Main
ohair@5221 97
ohair@5221 98 # TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
ohair@5221 99 # and nbproject/project.properties in the same dir. Needs to be looked at.
ohair@5221 100 TOOL_JDWPGEN=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.jdwpgen.Main
ohair@5221 101
ohair@5221 102 # TODO: Lots of files in jdk/make/tools/CharsetMapping dir
ohair@5221 103 TOOL_CHARSETMAPPING=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 104 build.tools.charsetmapping.Main
ohair@5221 105
ohair@5221 106 TOOL_SPP=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.spp.Spp
ohair@5221 107
ohair@5221 108 # TODO: Only referenced in jdk/make/tools/sharing/README.txt. Find out what it means.
ohair@5221 109 TOOL_MAKECLASSLIST=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 110 build.tools.makeclasslist.MakeClasslist
ohair@5221 111
ohair@5221 112 # Nimbus is used somewhere in the swing build.
ohair@5221 113 TOOL_GENERATENIMBUS=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
ohair@5221 114 build.tools.generatenimbus.Generator