erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 1 | # |
alanb | 0d05823 | 2012-11-02 15:50:11 +0000 | [diff] [blame] | 2 | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 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 |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 30 | NIMBUS_GENSRC_DIR = $(JDK_OUTPUTDIR)/gensrc/javax/swing/plaf/nimbus |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 31 | NIMBUS_SKIN_FILE = $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/skin.laf |
| 32 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 33 | $(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus: $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 34 | $(MKDIR) -p $(@D) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 35 | $(ECHO) "Generating Nimbus source files" |
| 36 | $(TOOL_GENERATENIMBUS) $(LOG_INFO) \ |
| 37 | -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(JDK_OUTPUTDIR)/gensrc \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 38 | -packagePrefix $(NIMBUS_PACKAGE).nimbus -lafName Nimbus |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 39 | $(ECHO) $(LOG_INFO) "Finished generating Nimbus source files" |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 40 | $(TOUCH) $@ |
| 41 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 42 | GENSRC_SWING_NIMBUS := $(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 43 | |
| 44 | # |
| 45 | # Generate beaninfo java files |
| 46 | # |
| 47 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 48 | DOCLETSRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans |
| 49 | |
| 50 | # javax.swing package |
| 51 | BEANS = AbstractButton Box JComponent JApplet JButton \ |
| 52 | JCheckBox JCheckBoxMenuItem JComboBox JColorChooser \ |
| 53 | JDesktopPane JDialog JEditorPane JFileChooser JFrame \ |
| 54 | JFormattedTextField JInternalFrame JLabel JLayeredPane \ |
| 55 | JList JMenu JMenuBar JMenuItem JOptionPane JPanel \ |
| 56 | JPasswordField JPopupMenu JProgressBar JRadioButton \ |
| 57 | JRadioButtonMenuItem JScrollBar JScrollPane JSeparator \ |
| 58 | JSlider JSplitPane JSpinner JTabbedPane JTable \ |
| 59 | JTextArea JTextField JTextPane JToggleButton JToolBar \ |
| 60 | JTree JWindow |
| 61 | |
| 62 | # javax.swing.text package |
| 63 | BEANS_TEXT = JTextComponent |
| 64 | |
| 65 | BEANS_SRC = $(BEANS:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/%.java) \ |
| 66 | $(BEANS_TEXT:%=$(JDK_TOPDIR)/src/share/classes/javax/swing/text/%.java) |
| 67 | |
| 68 | # Dummy variable so far, in the old build system it was false by default |
| 69 | SWINGBEAN_DEBUG_FLAG = false |
| 70 | # GenDocletBeanInfo is compiled in Tools.gmk and picks up from $(JDK_OUTPUTDIR)/btclasses |
erikj | 7567e62 | 2013-05-21 17:02:54 +0200 | [diff] [blame] | 71 | # LocaleDataMetaInfo needs to be generated before running this to avoid confusing errors |
| 72 | # in the build log. |
| 73 | $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo: $(BEANS_SRC) \ |
| 74 | $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/SwingBeanInfoBase.java \ |
| 75 | $(JDK_OUTPUTDIR)/gensrc/sun/swing/BeanInfoUtils.java $(BUILD_TOOLS) \ |
| 76 | | $(GENSRC_LOCALEDATAMETAINFO) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 77 | $(ECHO) Generating beaninfo |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 78 | $(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing |
erikj | 7567e62 | 2013-05-21 17:02:54 +0200 | [diff] [blame] | 79 | $(JAVA) -Djava.awt.headless=true $(NEW_JAVADOC) \ |
| 80 | -sourcepath "$(JDK_TOPDIR)/src/share/classes$(PATH_SEP)$(JDK_OUTPUTDIR)/gensrc" \ |
| 81 | -doclet GenDocletBeanInfo \ |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 82 | -x $(SWINGBEAN_DEBUG_FLAG) -d $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing \ |
| 83 | -t $(DOCLETSRC_DIR)/SwingBeanInfo.template -docletpath $(JDK_OUTPUTDIR)/btclasses \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 84 | -XDignore.symbol.file=true \ |
| 85 | -classpath $(JDK_OUTPUTDIR)/btclasses $(BEANS_SRC) $(LOG_INFO) |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 86 | # Move the JTextComponent into its proper package directory. |
| 87 | $(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text |
| 88 | $(MV) $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/JTextComponentBeanInfo.java $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text/JTextComponentBeanInfo.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 89 | $(TOUCH) $@ |
| 90 | |
| 91 | # This file is the part of dt.jar |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 92 | # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/javax/swing |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 93 | # Should it be moved under $(JDK_TOPDIR)/src/share/classes/javax/swing instead? |
erikj | b672868 | 2013-01-21 11:42:17 +0100 | [diff] [blame] | 94 | $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/SwingBeanInfoBase.java: $(DOCLETSRC_DIR)/javax/swing/SwingBeanInfoBase.java |
erikj | 10d96fb | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 95 | $(call install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 96 | |
| 97 | # This file is the part of dt.jar |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 98 | # For some reason it is under $(JDK_TOPDIR)/make/tools/swing-beans/sun/swing |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 99 | # Should it be moved under $(JDK_TOPDIR)/src/share/classes/sun/swing instead? |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 100 | $(JDK_OUTPUTDIR)/gensrc/sun/swing/BeanInfoUtils.java: $(DOCLETSRC_DIR)/sun/swing/BeanInfoUtils.java |
erikj | 10d96fb | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 101 | $(call install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 102 | |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 103 | GENSRC_SWING_BEANINFO = $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo |