|
1 # |
|
2 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 # |
|
5 # This code is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License version 2 only, as |
|
7 # published by the Free Software Foundation. Oracle designates this |
|
8 # particular file as subject to the "Classpath" exception as provided |
|
9 # by Oracle in the LICENSE file that accompanied this code. |
|
10 # |
|
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 # |
|
27 # Generate java files for javax.swing.plaf package |
|
28 # |
|
29 NIMBUS_PACKAGE = javax.swing.plaf |
|
30 NIMBUS_GENSRC_DIR = $(JDK_OUTPUTDIR)/gensrc_swing/javax/swing/plaf/nimbus |
|
31 NIMBUS_SKIN_FILE = $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/skin.laf |
|
32 |
|
33 $(JDK_OUTPUTDIR)/gensrc_swing/_the.generated_nimbus: $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS) |
|
34 $(MKDIR) -p $(@D) |
|
35 $(ECHO) "Generating Nimbus source files:" |
|
36 $(TOOL_GENERATENIMBUS) \ |
|
37 -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(JDK_OUTPUTDIR)/gensrc_swing \ |
|
38 -packagePrefix $(NIMBUS_PACKAGE).nimbus -lafName Nimbus |
|
39 $(ECHO) "Finished generating Nimbus source files" |
|
40 $(TOUCH) $@ |
|
41 |
|
42 GENSRC_SWING_NIMBUS := $(JDK_OUTPUTDIR)/gensrc_swing/_the.generated_nimbus |
|
43 |
|
44 # |
|
45 # Generate beaninfo java files |
|
46 # |
|
47 |
|
48 BEAN_GENSRC_DIR = $(JDK_OUTPUTDIR)/gensrc_swing/javax/swing/beaninfo |
|
49 DOCLETSRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans |
|
50 |
|
51 # javax.swing package |
|
52 BEANS = AbstractButton Box JComponent JApplet JButton \ |
|
53 JCheckBox JCheckBoxMenuItem JComboBox JColorChooser \ |
|
54 JDesktopPane JDialog JEditorPane JFileChooser JFrame \ |
|
55 JFormattedTextField JInternalFrame JLabel JLayeredPane \ |
|
56 JList JMenu JMenuBar JMenuItem JOptionPane JPanel \ |
|
57 JPasswordField JPopupMenu JProgressBar JRadioButton \ |
|
58 JRadioButtonMenuItem JScrollBar JScrollPane JSeparator \ |
|
59 JSlider JSplitPane JSpinner JTabbedPane JTable \ |
|
60 JTextArea JTextField JTextPane JToggleButton JToolBar \ |
|
61 JTree JWindow |
|
62 |
|
63 # javax.swing.text package |
|
64 BEANS_TEXT = JTextComponent |
|
65 |
|
66 BEANS_SRC = $(BEANS:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/%.java) \ |
|
67 $(BEANS_TEXT:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/text/%.java) |
|
68 |
|
69 # Dummy variable so far, in the old build system it was false by default |
|
70 SWINGBEAN_DEBUG_FLAG = false |
|
71 # GenDocletBeanInfo is compiled in Tools.gmk and picks up from $(JDK_OUTPUTDIR)/btclasses |
|
72 $(JDK_OUTPUTDIR)/gensrc_swing/_the.generated_beaninfo: $(BEANS_SRC) $(BEAN_GENSRC_DIR)/SwingBeanInfoBase.java $(BEAN_GENSRC_DIR)/BeanInfoUtils.java $(BUILD_TOOLS) |
|
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 \ |
|
74 -classpath $(JDK_OUTPUTDIR)/btclasses $(BEANS_SRC) |
|
75 $(TOUCH) $@ |
|
76 |
|
77 # This file is the part of dt.jar |
|
78 # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo |
|
79 # Should it be moved under $(JDK_TOPDIR)/src/share/classes/javax/swing instead? |
|
80 $(BEAN_GENSRC_DIR)/SwingBeanInfoBase.java: $(DOCLETSRC_DIR)/beaninfo/SwingBeanInfoBase.java |
|
81 $(MKDIR) -p $(@D) |
|
82 $(CP) $< $@ |
|
83 |
|
84 # This file is the part of dt.jar |
|
85 # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo |
|
86 # Should it be moved under $(JDK_TOPDIR)/src/share/classes/sun/swing instead? |
|
87 $(BEAN_GENSRC_DIR)/BeanInfoUtils.java: $(DOCLETSRC_DIR)/beaninfo/BeanInfoUtils.java |
|
88 $(MKDIR) -p $(@D) |
|
89 $(CP) $< $@ |
|
90 |
|
91 GENSRC_SWING_BEANINFO = $(JDK_OUTPUTDIR)/gensrc_swing/_the.generated_beaninfo |