jdk/make/gensrc/GensrcSwing.gmk
author jmasa
Fri, 29 Aug 2014 08:14:19 -0700
changeset 26331 8f17e084029b
parent 25859 3317bb8137f4
child 26191 a0ff4b39d34b
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 22347
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     4
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    10
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    16
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    20
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    23
# questions.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    24
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    25
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    26
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    27
# Generate java files for javax.swing.plaf package
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    28
#
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
NIMBUS_PACKAGE = javax.swing.plaf
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    30
NIMBUS_GENSRC_DIR = $(JDK_OUTPUTDIR)/gensrc/java.desktop/javax/swing/plaf/nimbus
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    31
NIMBUS_SKIN_FILE = $(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/plaf/nimbus/skin.laf
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    33
$(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus: $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS_JDK)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    34
	$(MKDIR) -p $(@D)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    35
	$(ECHO) "Generating Nimbus source files"
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    36
	$(TOOL_GENERATENIMBUS) $(LOG_INFO) \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    37
	    -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(JDK_OUTPUTDIR)/gensrc/java.desktop \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    38
	    -packagePrefix $(NIMBUS_PACKAGE).nimbus -lafName Nimbus
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    39
	$(ECHO) $(LOG_INFO) "Finished generating Nimbus source files"
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    40
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    41
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    42
GENSRC_SWING_NIMBUS := $(JDK_OUTPUTDIR)/gensrc/_the.generated_nimbus
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    43
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    44
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    45
# Generate beaninfo java files
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    46
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    47
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
    48
DOCLET_DATA_DIR = $(JDK_TOPDIR)/make/data/swingbeaninfo
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    49
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    50
# javax.swing package
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    51
BEANS = AbstractButton Box JComponent JApplet JButton \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    52
    JCheckBox JCheckBoxMenuItem JComboBox JColorChooser \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    53
    JDesktopPane JDialog JEditorPane JFileChooser JFrame \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    54
    JFormattedTextField JInternalFrame JLabel JLayeredPane \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    55
    JList JMenu JMenuBar JMenuItem JOptionPane JPanel \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    56
    JPasswordField JPopupMenu JProgressBar JRadioButton \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    57
    JRadioButtonMenuItem JScrollBar JScrollPane JSeparator \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    58
    JSlider JSplitPane JSpinner JTabbedPane JTable \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    59
    JTextArea JTextField JTextPane JToggleButton JToolBar \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    60
    JTree JWindow
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    61
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    62
# javax.swing.text package
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    63
BEANS_TEXT = JTextComponent
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    64
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    65
BEANS_SRC = $(BEANS:%=$(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/%.java) \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    66
    $(BEANS_TEXT:%=$(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing/text/%.java)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    67
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    68
# Dummy variable so far, in the old build system it was false by default
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    69
SWINGBEAN_DEBUG_FLAG = false
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    70
# GenDocletBeanInfo is compiled in Tools.gmk and picks up from $(JDK_OUTPUTDIR)/btclasses
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
    71
# 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
    72
# in the build log.
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
$(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo: $(BEANS_SRC) \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    74
    $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing/SwingBeanInfoBase.java \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    75
    $(JDK_OUTPUTDIR)/gensrc/java.desktop/sun/swing/BeanInfoUtils.java $(BUILD_TOOLS_JDK) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    76
    | $(GENSRC_LOCALEDATAMETAINFO)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    77
	$(ECHO) Generating beaninfo
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    78
	$(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/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
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    80
	    -sourcepath "$(subst $(SPACE),$(PATH_SEP),\
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    81
	        $(if $(SHUFFLED),$(wildcard $(JDK_TOPDIR)/src/*/*/classes) \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    82
	        $(JDK_OUTPUTDIR)/gensrc/java.base, \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    83
	        $(JDK_TOPDIR)/src/share/classes \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    84
                $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    85
	        $(JDK_OUTPUTDIR)/gensrc))" \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
    86
	    -doclet build.tools.swingbeaninfo.GenDocletBeanInfo \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    87
	    -x $(SWINGBEAN_DEBUG_FLAG) -d $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
    88
	    -t $(DOCLET_DATA_DIR)/SwingBeanInfo.template -docletpath $(JDK_OUTPUTDIR)/btclasses \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    89
	    -XDignore.symbol.file=true \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    90
	    -classpath $(JDK_OUTPUTDIR)/btclasses $(BEANS_SRC) $(LOG_INFO)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
    91
        # Move the JTextComponent into its proper package directory.
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    92
	$(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing/text
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    93
	$(MV) $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing/JTextComponentBeanInfo.java $(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing/text/JTextComponentBeanInfo.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    94
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    95
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    96
# This file is the part of dt.jar
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
    97
# For some reason it is under $(JDK_TOPDIR)/make/data/swingbeaninfo
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    98
# Should it be moved under $(JDK_TOPDIR)/src/java.desktop/share/classes/javax/swing instead?
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    99
$(JDK_OUTPUTDIR)/gensrc_no_srczip/java.desktop/javax/swing/SwingBeanInfoBase.java: $(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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   101
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17504
diff changeset
   102
# This file is the part of dt.jar
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
   103
# For some reason it is under $(JDK_TOPDIR)/make/data/swingbeaninfo
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   104
# Should it be moved under $(JDK_TOPDIR)/src/java.desktop/share/classes/sun/swing instead?
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   105
$(JDK_OUTPUTDIR)/gensrc/java.desktop/sun/swing/BeanInfoUtils.java: $(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
   106
	$(call install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   107
15134
3268973c300a 8005096: Move a few source files in swing/beaninfo and in a demo.
ohrstrom
parents: 14343
diff changeset
   108
GENSRC_SWING_BEANINFO = $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   109
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   110
GENSRC_JAVA_DESKTOP += $(GENSRC_SWING_BEANINFO) $(GENSRC_SWING_NIMBUS)