annotate makefiles/GensrcSwing.gmk @ 5670:1953cf522107

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