source: trunk/openjdk/jdk/make/javax/swing/Makefile

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 2.6 KB
Line 
1#
2# Copyright (c) 1998, 2010, 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
26BUILDDIR = ../..
27PACKAGE = javax.swing
28SUN_PACKAGE = com.sun.java.swing.plaf
29PRODUCT = com
30SWING_SRC = $(SHARE_SRC)/classes/javax/swing
31SUN_SRC = $(SHARE_SRC)/classes/com/sun/java/swing
32
33NIMBUS_GENSRC_DIR = $(GENSRCDIR)/com/sun/java/swing/plaf/nimbus
34NIMBUS_SKIN_FILE = $(SUN_SRC)/plaf/nimbus/skin.laf
35NIMBUS_GENERATOR_JAR = $(BUILDTOOLJARDIR)/generatenimbus.jar
36
37include $(BUILDDIR)/common/Defs.gmk
38LANGUAGE_VERSION = -source 6
39CLASS_VERSION = -target 6
40
41#
42# Files
43#
44include FILES.gmk
45AUTO_FILES_JAVA_DIRS = javax/swing sun/swing
46AUTO_JAVA_PRUNE = plaf
47
48SUBDIRS = html32dtd plaf
49
50#
51# Include
52#
53ifndef DISABLE_NIMBUS
54 CLASSES_INIT = $(NIMBUS_GENSRC_DIR)
55endif
56
57include $(BUILDDIR)/common/Classes.gmk
58
59build: other_files
60 $(SUBDIRS-loop)
61
62clean clobber::
63 $(RM) -r $(NIMBUS_GENSRC_DIR)
64 $(SUBDIRS-loop)
65
66other_files: $(MISC_FILES)
67
68$(CLASSBINDIR)/%.wav: $(SHARE_SRC)/classes/%.wav
69 $(install-file)
70
71$(CLASSBINDIR)/%.gif: $(SHARE_SRC)/classes/%.gif
72 $(install-file)
73
74$(CLASSBINDIR)/%.css: $(SHARE_SRC)/classes/%.css
75 $(install-file)
76
77$(CLASSBINDIR)/%.txt: $(SHARE_SRC)/classes/%.txt
78 $(install-file)
79
80$(NIMBUS_GENSRC_DIR): $(NIMBUS_SKIN_FILE) $(NIMBUS_GENERATOR_JAR)
81 @$(ECHO) "Generating Nimbus source files:"
82 $(RM) -r $(NIMBUS_GENSRC_DIR)
83 $(BOOT_JAVA_CMD) -jar $(NIMBUS_GENERATOR_JAR) \
84 -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(GENSRCDIR) \
85 -packagePrefix $(SUN_PACKAGE).nimbus -lafName Nimbus
86 @$(ECHO) "Finished generating Nimbus source files"
Note: See TracBrowser for help on using the repository browser.