makefiles/Tools.gmk

Print this page




  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Cache all finds needed for this file. Only used on windows.
  27 $(eval $(call FillCacheFind,$(JDK_TOPDIR)/make/tools \
  28     $(JDK_TOPDIR)/src/solaris/classes \
  29     $(JDK_TOPDIR)/makefiles/sun))
  30 









  31 # The exception handling of swing beaninfo which have the own tool directory
  32 ifeq (,$(BUILD_TOOLS))
  33 $(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
  34                 SETUP:=GENERATE_OLDBYTECODE,\
  35                 SRC:=$(JDK_TOPDIR)/make/tools/src \
  36                      $(JDK_TOPDIR)/src/solaris/classes/sun/awt/X11/generator \
  37                      $(JDK_TOPDIR)/makefiles/sun/awt/X11 \
  38                      $(JDK_TOPDIR)/makefiles/sun/osxapp \
  39                      $(JDK_TOPDIR)/make/tools/swing-beans,\
  40                 BIN:=$(JDK_OUTPUTDIR)/btclasses))
  41 
  42 endif
  43 
  44 $(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template : \
  45         $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/%.template
  46         $(MKDIR) -p $(@D)
  47         $(CP) $< $@
  48 
  49 BUILD_TOOLS += $(foreach i,$(wildcard $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/*.template),$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/$(notdir $i))
  50 
  51 # Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
  52 TOOL_ADDJSUM=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
  53         build.tools.addjsum.AddJsum
  54 
  55 # The buildmetaindex tool creates a meta-index to make core class loaders lazier.
  56 TOOL_BUILDMETAINDEX=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
  57         build.tools.buildmetaindex.BuildMetaIndex
  58 
  59 # The comment checker is not currently used. Should it be removed or added to javac?




  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Cache all finds needed for this file. Only used on windows.
  27 $(eval $(call FillCacheFind,$(JDK_TOPDIR)/make/tools \
  28     $(JDK_TOPDIR)/src/solaris/classes \
  29     $(JDK_TOPDIR)/makefiles/sun))
  30 
  31 TOOLS_SRC:=$(JDK_TOPDIR)/make/tools/src \
  32            $(JDK_TOPDIR)/makefiles/sun/awt/X11 \
  33            $(JDK_TOPDIR)/makefiles/sun/osxapp \
  34            $(JDK_TOPDIR)/make/tools/swing-beans
  35 
  36 ifneq ($(OPENJDK_TARGET_OS),windows)
  37   TOOLS_SRC+=$(JDK_TOPDIR)/src/solaris/classes/sun/awt/X11/generator
  38 endif
  39 
  40 # The exception handling of swing beaninfo which have the own tool directory
  41 ifeq (,$(BUILD_TOOLS))
  42 $(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
  43                 SETUP:=GENERATE_OLDBYTECODE,\
  44                 SRC:=$(TOOLS_SRC),\




  45                 BIN:=$(JDK_OUTPUTDIR)/btclasses))
  46 
  47 endif
  48 
  49 $(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template : \
  50         $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/%.template
  51         $(MKDIR) -p $(@D)
  52         $(CP) $< $@
  53 
  54 BUILD_TOOLS += $(foreach i,$(wildcard $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/*.template),$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/$(notdir $i))
  55 
  56 # Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
  57 TOOL_ADDJSUM=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
  58         build.tools.addjsum.AddJsum
  59 
  60 # The buildmetaindex tool creates a meta-index to make core class loaders lazier.
  61 TOOL_BUILDMETAINDEX=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
  62         build.tools.buildmetaindex.BuildMetaIndex
  63 
  64 # The comment checker is not currently used. Should it be removed or added to javac?