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 |
|
---|
26 | BUILDDIR = ../..
|
---|
27 | PACKAGE = javax.swing
|
---|
28 | SUN_PACKAGE = com.sun.java.swing.plaf
|
---|
29 | PRODUCT = com
|
---|
30 | SWING_SRC = $(SHARE_SRC)/classes/javax/swing
|
---|
31 | SUN_SRC = $(SHARE_SRC)/classes/com/sun/java/swing
|
---|
32 |
|
---|
33 | NIMBUS_GENSRC_DIR = $(GENSRCDIR)/com/sun/java/swing/plaf/nimbus
|
---|
34 | NIMBUS_SKIN_FILE = $(SUN_SRC)/plaf/nimbus/skin.laf
|
---|
35 | NIMBUS_GENERATOR_JAR = $(BUILDTOOLJARDIR)/generatenimbus.jar
|
---|
36 |
|
---|
37 | include $(BUILDDIR)/common/Defs.gmk
|
---|
38 | LANGUAGE_VERSION = -source 6
|
---|
39 | CLASS_VERSION = -target 6
|
---|
40 |
|
---|
41 | #
|
---|
42 | # Files
|
---|
43 | #
|
---|
44 | include FILES.gmk
|
---|
45 | AUTO_FILES_JAVA_DIRS = javax/swing sun/swing
|
---|
46 | AUTO_JAVA_PRUNE = plaf
|
---|
47 |
|
---|
48 | SUBDIRS = html32dtd plaf
|
---|
49 |
|
---|
50 | #
|
---|
51 | # Include
|
---|
52 | #
|
---|
53 | ifndef DISABLE_NIMBUS
|
---|
54 | CLASSES_INIT = $(NIMBUS_GENSRC_DIR)
|
---|
55 | endif
|
---|
56 |
|
---|
57 | include $(BUILDDIR)/common/Classes.gmk
|
---|
58 |
|
---|
59 | build: other_files
|
---|
60 | $(SUBDIRS-loop)
|
---|
61 |
|
---|
62 | clean clobber::
|
---|
63 | $(RM) -r $(NIMBUS_GENSRC_DIR)
|
---|
64 | $(SUBDIRS-loop)
|
---|
65 |
|
---|
66 | other_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"
|
---|