author | sherman |
Wed, 25 Feb 2015 13:04:31 -0800 | |
changeset 29119 | f680ba340556 |
parent 27565 | 729f9700483a |
child 32500 | 164fa1c0bad8 |
permissions | -rw-r--r-- |
12892 | 1 |
# |
27565 | 2 |
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
12892 | 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 |
|
20547 | 28 |
# |
12892 | 29 |
NIMBUS_PACKAGE = javax.swing.plaf |
27565 | 30 |
NIMBUS_GENSRC_DIR = $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/javax/swing/plaf/nimbus |
25859 | 31 |
NIMBUS_SKIN_FILE = $(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/plaf/nimbus/skin.laf |
12892 | 32 |
|
27565 | 33 |
$(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/_the.generated_nimbus: $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS_JDK) |
12892 | 34 |
$(MKDIR) -p $(@D) |
14231 | 35 |
$(ECHO) "Generating Nimbus source files" |
36 |
$(TOOL_GENERATENIMBUS) $(LOG_INFO) \ |
|
27565 | 37 |
-skinFile $(NIMBUS_SKIN_FILE) -buildDir $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop \ |
12892 | 38 |
-packagePrefix $(NIMBUS_PACKAGE).nimbus -lafName Nimbus |
14231 | 39 |
$(ECHO) $(LOG_INFO) "Finished generating Nimbus source files" |
12892 | 40 |
$(TOUCH) $@ |
41 |
||
27565 | 42 |
GENSRC_SWING_NIMBUS := $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/_the.generated_nimbus |
12892 | 43 |
|
44 |
# |
|
45 |
# Generate beaninfo java files |
|
46 |
# |
|
47 |
||
27565 | 48 |
BEANINFO_OUTPUTDIR := $(SUPPORT_OUTPUTDIR)/gensrc_no_docs/java.desktop |
49 |
DOCLET_DATA_DIR := $(JDK_TOPDIR)/make/data/swingbeaninfo |
|
12892 | 50 |
|
51 |
# javax.swing package |
|
20547 | 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 |
|
12892 | 62 |
|
63 |
# javax.swing.text package |
|
64 |
BEANS_TEXT = JTextComponent |
|
65 |
||
25859 | 66 |
BEANS_SRC = $(BEANS:%=$(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/%.java) \ |
67 |
$(BEANS_TEXT:%=$(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/text/%.java) |
|
12892 | 68 |
|
69 |
# Dummy variable so far, in the old build system it was false by default |
|
70 |
SWINGBEAN_DEBUG_FLAG = false |
|
27565 | 71 |
# GenDocletBeanInfo is compiled in Tools.gmk and picks up from $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes |
17504
85e7103d1e79
8011346: build-infra: While Constructing Javadoc information, JSpinner.java error: package sun.util.locale.provider does not exist
erikj
parents:
16636
diff
changeset
|
72 |
# LocaleDataMetaInfo needs to be generated before running this to avoid confusing errors |
85e7103d1e79
8011346: build-infra: While Constructing Javadoc information, JSpinner.java error: package sun.util.locale.provider does not exist
erikj
parents:
16636
diff
changeset
|
73 |
# in the build log. |
27565 | 74 |
$(BEANINFO_OUTPUTDIR)/_the.generated_beaninfo: $(BEANS_SRC) \ |
75 |
$(BEANINFO_OUTPUTDIR)/javax/swing/SwingBeanInfoBase.java \ |
|
76 |
$(BEANINFO_OUTPUTDIR)/sun/swing/BeanInfoUtils.java $(BUILD_TOOLS_JDK) |
|
14231 | 77 |
$(ECHO) Generating beaninfo |
27565 | 78 |
$(MKDIR) -p $(BEANINFO_OUTPUTDIR)/javax/swing |
17504
85e7103d1e79
8011346: build-infra: While Constructing Javadoc information, JSpinner.java error: package sun.util.locale.provider does not exist
erikj
parents:
16636
diff
changeset
|
79 |
$(JAVA) -Djava.awt.headless=true $(NEW_JAVADOC) \ |
25859 | 80 |
-sourcepath "$(subst $(SPACE),$(PATH_SEP),\ |
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
81 |
$(wildcard $(JDK_TOPDIR)/src/*/*/classes) \ |
27565 | 82 |
$(SUPPORT_OUTPUTDIR)/gensrc/java.base)" \ |
21805 | 83 |
-doclet build.tools.swingbeaninfo.GenDocletBeanInfo \ |
27565 | 84 |
-x $(SWINGBEAN_DEBUG_FLAG) -d $(BEANINFO_OUTPUTDIR)/javax/swing \ |
85 |
-t $(DOCLET_DATA_DIR)/SwingBeanInfo.template \ |
|
86 |
-docletpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \ |
|
20547 | 87 |
-XDignore.symbol.file=true \ |
27565 | 88 |
-classpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes $(BEANS_SRC) $(LOG_INFO) |
20547 | 89 |
# Move the JTextComponent into its proper package directory. |
27565 | 90 |
$(MKDIR) -p $(BEANINFO_OUTPUTDIR)/javax/swing/text |
91 |
$(MV) $(BEANINFO_OUTPUTDIR)/javax/swing/JTextComponentBeanInfo.java \ |
|
92 |
$(BEANINFO_OUTPUTDIR)/javax/swing/text/JTextComponentBeanInfo.java |
|
12892 | 93 |
$(TOUCH) $@ |
94 |
||
95 |
# This file is the part of dt.jar |
|
21805 | 96 |
# For some reason it is under $(JDK_TOPDIR)/make/data/swingbeaninfo |
25859 | 97 |
# Should it be moved under $(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing instead? |
27565 | 98 |
$(BEANINFO_OUTPUTDIR)/javax/swing/SwingBeanInfoBase.java: \ |
99 |
$(DOCLET_DATA_DIR)/javax/swing/SwingBeanInfoBase.java |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
15402
diff
changeset
|
100 |
$(call install-file) |
12892 | 101 |
|
20547 | 102 |
# This file is the part of dt.jar |
21805 | 103 |
# For some reason it is under $(JDK_TOPDIR)/make/data/swingbeaninfo |
25859 | 104 |
# Should it be moved under $(JDK_TOPDIR)/src/java.desktop/share/classes/sun/swing instead? |
27565 | 105 |
$(BEANINFO_OUTPUTDIR)/sun/swing/BeanInfoUtils.java: \ |
106 |
$(DOCLET_DATA_DIR)/sun/swing/BeanInfoUtils.java |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
15402
diff
changeset
|
107 |
$(call install-file) |
12892 | 108 |
|
27565 | 109 |
GENSRC_SWING_BEANINFO = $(BEANINFO_OUTPUTDIR)/_the.generated_beaninfo |
25859 | 110 |
|
111 |
GENSRC_JAVA_DESKTOP += $(GENSRC_SWING_BEANINFO) $(GENSRC_SWING_NIMBUS) |