annotate makefiles/GensrcSwing.gmk @ 6500:cba578db5f39

6964528: Double.toHexString(double d) String manipulation with + in an append of StringBuilder Reviewed-by: shade
author darcy
date Fri, 01 Feb 2013 19:30:02 -0800
parents 1868bde529b8
children c5a7ac2a721f
rev   line source
erikj@5507 1 #
alanb@6073 2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
erikj@5507 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@5507 4 #
erikj@5507 5 # This code is free software; you can redistribute it and/or modify it
erikj@5507 6 # under the terms of the GNU General Public License version 2 only, as
erikj@5507 7 # published by the Free Software Foundation. Oracle designates this
erikj@5507 8 # particular file as subject to the "Classpath" exception as provided
erikj@5507 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@5507 10 #
erikj@5507 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@5507 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@5507 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@5507 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@5507 15 # accompanied this code).
erikj@5507 16 #
erikj@5507 17 # You should have received a copy of the GNU General Public License version
erikj@5507 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@5507 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@5507 20 #
erikj@5507 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@5507 22 # or visit www.oracle.com if you need additional information or have any
erikj@5507 23 # questions.
erikj@5507 24 #
erikj@5507 25
erikj@5507 26 #
erikj@5507 27 # Generate java files for javax.swing.plaf package
erikj@5507 28 #
erikj@5507 29 NIMBUS_PACKAGE = javax.swing.plaf
ohair@6025 30 NIMBUS_GENSRC_DIR = $(JDK_OUTPUTDIR)/gensrc/javax/swing/plaf/nimbus
erikj@5507 31 NIMBUS_SKIN_FILE = $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/skin.laf
erikj@5507 32
ohair@6025 33 $(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus: $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS)
erikj@5507 34 $(MKDIR) -p $(@D)
ohair@6025 35 $(ECHO) "Generating Nimbus source files"
ohair@6025 36 $(TOOL_GENERATENIMBUS) $(LOG_INFO) \
ohair@6025 37 -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(JDK_OUTPUTDIR)/gensrc \
erikj@5507 38 -packagePrefix $(NIMBUS_PACKAGE).nimbus -lafName Nimbus
ohair@6025 39 $(ECHO) $(LOG_INFO) "Finished generating Nimbus source files"
erikj@5507 40 $(TOUCH) $@
erikj@5507 41
ohair@6025 42 GENSRC_SWING_NIMBUS := $(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus
erikj@5507 43
erikj@5507 44 #
erikj@5507 45 # Generate beaninfo java files
erikj@5507 46 #
erikj@5507 47
erikj@5507 48 DOCLETSRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans
erikj@5507 49
erikj@5507 50 # javax.swing package
erikj@5507 51 BEANS = AbstractButton Box JComponent JApplet JButton \
erikj@5507 52 JCheckBox JCheckBoxMenuItem JComboBox JColorChooser \
erikj@5507 53 JDesktopPane JDialog JEditorPane JFileChooser JFrame \
erikj@5507 54 JFormattedTextField JInternalFrame JLabel JLayeredPane \
erikj@5507 55 JList JMenu JMenuBar JMenuItem JOptionPane JPanel \
erikj@5507 56 JPasswordField JPopupMenu JProgressBar JRadioButton \
erikj@5507 57 JRadioButtonMenuItem JScrollBar JScrollPane JSeparator \
erikj@5507 58 JSlider JSplitPane JSpinner JTabbedPane JTable \
erikj@5507 59 JTextArea JTextField JTextPane JToggleButton JToolBar \
erikj@5507 60 JTree JWindow
erikj@5507 61
erikj@5507 62 # javax.swing.text package
erikj@5507 63 BEANS_TEXT = JTextComponent
erikj@5507 64
erikj@5507 65 BEANS_SRC = $(BEANS:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/%.java) \
erikj@5507 66 $(BEANS_TEXT:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/text/%.java)
erikj@5507 67
erikj@5507 68 # Dummy variable so far, in the old build system it was false by default
erikj@5507 69 SWINGBEAN_DEBUG_FLAG = false
erikj@5507 70 # GenDocletBeanInfo is compiled in Tools.gmk and picks up from $(JDK_OUTPUTDIR)/btclasses
erikj@6374 71 $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo: $(BEANS_SRC) $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/SwingBeanInfoBase.java $(JDK_OUTPUTDIR)/gensrc/sun/swing/BeanInfoUtils.java $(BUILD_TOOLS)
ohair@6025 72 $(ECHO) Generating beaninfo
ohrstrom@6362 73 $(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing
ohrstrom@6362 74 $(JAVA) -Djava.awt.headless=true -jar $(JAVADOC_JARS) -doclet GenDocletBeanInfo \
ohrstrom@6362 75 -x $(SWINGBEAN_DEBUG_FLAG) -d $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing \
ohrstrom@6362 76 -t $(DOCLETSRC_DIR)/SwingBeanInfo.template -docletpath $(JDK_OUTPUTDIR)/btclasses \
ohair@6025 77 -XDignore.symbol.file=true \
ohair@6025 78 -classpath $(JDK_OUTPUTDIR)/btclasses $(BEANS_SRC) $(LOG_INFO)
ohrstrom@6362 79 # Move the JTextComponent into its proper package directory.
ohrstrom@6362 80 $(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text
ohrstrom@6362 81 $(MV) $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/JTextComponentBeanInfo.java $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text/JTextComponentBeanInfo.java
erikj@5507 82 $(TOUCH) $@
erikj@5507 83
erikj@5507 84 # This file is the part of dt.jar
ohrstrom@6362 85 # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/javax/swing
erikj@5507 86 # Should it be moved under $(JDK_TOPDIR)/src/share/classes/javax/swing instead?
erikj@6374 87 $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/SwingBeanInfoBase.java: $(DOCLETSRC_DIR)/javax/swing/SwingBeanInfoBase.java
erikj@5507 88 $(MKDIR) -p $(@D)
erikj@5507 89 $(CP) $< $@
erikj@5507 90
erikj@5507 91 # This file is the part of dt.jar
ohrstrom@6362 92 # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/sun/swing
erikj@5507 93 # Should it be moved under $(JDK_TOPDIR)/src/share/classes/sun/swing instead?
ohrstrom@6362 94 $(JDK_OUTPUTDIR)/gensrc/sun/swing/BeanInfoUtils.java: $(DOCLETSRC_DIR)/sun/swing/BeanInfoUtils.java
erikj@5507 95 $(MKDIR) -p $(@D)
erikj@5507 96 $(CP) $< $@
erikj@5507 97
ohrstrom@6362 98 GENSRC_SWING_BEANINFO = $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo