author | ohair |
Wed, 06 Apr 2011 22:06:11 -0700 | |
changeset 9035 | 1255eb81cc2f |
parent 8583 | 15dea0fdc2ea |
permissions | -rw-r--r-- |
2 | 1 |
# |
9035
1255eb81cc2f
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8583
diff
changeset
|
2 |
# Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
BUILDDIR = ../../.. |
|
27 |
PACKAGE = javax.swing.plaf |
|
28 |
PRODUCT = com |
|
29 |
SWING_SRC = $(SHARE_SRC)/classes/javax/swing |
|
30 |
include $(BUILDDIR)/common/Defs.gmk |
|
31 |
||
32 |
# |
|
33 |
# Files |
|
34 |
# |
|
35 |
include FILES.gmk |
|
36 |
AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf |
|
2658 | 37 |
|
2 | 38 |
ifeq ($(PLATFORM), windows) |
39 |
# Don't build GTK L&F on Windows |
|
3742 | 40 |
AUTO_JAVA_PRUNE = gtk |
41 |
endif |
|
42 |
||
43 |
ifdef DISABLE_NIMBUS |
|
44 |
AUTO_JAVA_PRUNE += nimbus |
|
2 | 45 |
endif |
46 |
||
47 |
MISC_FILES = $(MISC_SWING_FILES) |
|
48 |
ifneq ($(PLATFORM), windows) |
|
49 |
# Only include GTK icons on Solaris/Linux |
|
50 |
MISC_FILES += $(MISC_SWING_FILES_UNIX) |
|
51 |
endif |
|
52 |
||
3742 | 53 |
NIMBUS_GENSRC_DIR = $(GENSRCDIR)/javax/swing/plaf/nimbus |
54 |
NIMBUS_SKIN_FILE = $(SWING_SRC)/plaf/nimbus/skin.laf |
|
55 |
NIMBUS_GENERATOR_JAR = $(BUILDTOOLJARDIR)/generatenimbus.jar |
|
56 |
||
2 | 57 |
FILES_java = $(FILES_SWING_java) |
58 |
||
59 |
# |
|
60 |
# Resources |
|
61 |
# |
|
62 |
LOCALE_SET_DEFINITION = jre |
|
63 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES = \ |
|
64 |
com/sun/swing/internal/plaf/basic/resources/basic.properties \ |
|
65 |
com/sun/swing/internal/plaf/metal/resources/metal.properties \ |
|
66 |
com/sun/swing/internal/plaf/synth/resources/synth.properties \ |
|
67 |
com/sun/java/swing/plaf/motif/resources/motif.properties \ |
|
68 |
com/sun/java/swing/plaf/windows/resources/windows.properties |
|
69 |
ifneq ($(PLATFORM), windows) |
|
70 |
# Only compile GTK resource bundles on Solaris/Linux |
|
71 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES += \ |
|
72 |
com/sun/java/swing/plaf/gtk/resources/gtk.properties |
|
73 |
endif |
|
74 |
||
75 |
# |
|
76 |
# Rules. |
|
77 |
# Process LOGO_ICONS and Motif Icons first. |
|
78 |
# |
|
79 |
build: $(LOGO_ICONS) $(MISC_SWING_FILES_MOTIF_GIF) $(MISC_SWING_FILES_MOTIF_PNG) other_files |
|
80 |
||
3742 | 81 |
$(NIMBUS_GENSRC_DIR): $(NIMBUS_SKIN_FILE) $(NIMBUS_GENERATOR_JAR) |
82 |
@$(ECHO) "Generating Nimbus source files:" |
|
83 |
$(RM) -r $(NIMBUS_GENSRC_DIR) |
|
84 |
$(BOOT_JAVA_CMD) -jar $(NIMBUS_GENERATOR_JAR) \ |
|
85 |
-skinFile $(NIMBUS_SKIN_FILE) -buildDir $(GENSRCDIR) \ |
|
86 |
-packagePrefix $(PACKAGE).nimbus -lafName Nimbus |
|
87 |
@$(ECHO) "Finished generating Nimbus source files" |
|
88 |
||
89 |
clean:: classes.clean |
|
90 |
$(RM) -r $(NIMBUS_GENSRC_DIR) |
|
2 | 91 |
|
92 |
# |
|
93 |
# Include |
|
94 |
# |
|
3742 | 95 |
ifndef DISABLE_NIMBUS |
96 |
CLASSES_INIT = $(NIMBUS_GENSRC_DIR) |
|
97 |
endif |
|
98 |
||
2 | 99 |
include $(BUILDDIR)/common/Classes.gmk |
100 |
||
101 |
ifndef OPENJDK |
|
102 |
$(LOGO_ICONS): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png |
|
103 |
$(install-file) |
|
104 |
||
105 |
$(MISC_SWING_FILES_MOTIF_GIF): $(CLASSBINDIR)/%.gif: $(CLOSED_SRC)/share/classes/%.gif |
|
106 |
$(install-file) |
|
107 |
||
108 |
$(MISC_SWING_FILES_MOTIF_PNG): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png |
|
109 |
$(install-file) |
|
110 |
endif |
|
111 |
||
112 |
other_files: $(MISC_FILES) |
|
113 |
||
114 |
$(CLASSBINDIR)/%.wav: $(SHARE_SRC)/classes/%.wav |
|
115 |
$(install-file) |
|
116 |
||
117 |
$(CLASSBINDIR)/%.gif: $(SHARE_SRC)/classes/%.gif |
|
118 |
$(install-file) |
|
119 |
||
120 |
$(CLASSBINDIR)/%.png: $(SHARE_SRC)/classes/%.png |
|
121 |
$(install-file) |
|
122 |
||
123 |
$(CLASSBINDIR)/%.xml: $(SHARE_SRC)/classes/%.xml |
|
124 |
$(install-file) |
|
125 |
||
126 |
$(CLASSBINDIR)/%.css: $(SHARE_SRC)/classes/%.css |
|
127 |
$(install-file) |
|
128 |
||
129 |
$(CLASSBINDIR)/%.bdtd: $(SHARE_SRC)/classes/%.bdtd |
|
130 |
$(install-file) |
|
131 |
||
132 |
$(CLASSBINDIR)/%.txt: $(SHARE_SRC)/classes/%.txt |
|
133 |
$(install-file) |
|
134 |