author | smarks |
Thu, 29 Dec 2011 16:39:51 -0800 | |
changeset 11361 | daa4d069c514 |
parent 9035 | 1255eb81cc2f |
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) 1996, 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 |
||
4917
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
4665
diff
changeset
|
26 |
BUILDDIR = ../../.. |
2 | 27 |
PACKAGE = java.text |
28 |
PRODUCT = sun |
|
11361
daa4d069c514
7122061: add -Xlint:all -Werror to warning-free build steps
smarks
parents:
9035
diff
changeset
|
29 |
JAVAC_MAX_WARNINGS = true |
daa4d069c514
7122061: add -Xlint:all -Werror to warning-free build steps
smarks
parents:
9035
diff
changeset
|
30 |
JAVAC_WARNINGS_FATAL = true |
2 | 31 |
|
32 |
include $(BUILDDIR)/common/Defs.gmk |
|
33 |
||
34 |
# |
|
35 |
# Files |
|
36 |
# |
|
37 |
include FILES_java.gmk |
|
38 |
||
39 |
# |
|
40 |
# Include |
|
41 |
# |
|
42 |
include $(BUILDDIR)/common/Classes.gmk |
|
43 |
||
44 |
# |
|
45 |
# Rules to add data files BreakIterator |
|
46 |
# |
|
47 |
TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/java.text/classes |
|
48 |
||
49 |
# input |
|
50 |
# |
|
51 |
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime. |
|
52 |
# They are used at JDK build phase in order to create $(BIFILES) which |
|
53 |
# are used on runtime instead. |
|
54 |
# |
|
55 |
TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources |
|
56 |
TEXT_SOURCES = $(TEXT_SRCDIR)/BreakIteratorRules.java \ |
|
57 |
$(TEXT_SRCDIR)/BreakIteratorInfo.java |
|
58 |
UNICODEDATA = $(BUILDDIR)/tools/UnicodeData |
|
59 |
||
60 |
# output |
|
61 |
TEXT_CLASSDIR = $(CLASSBINDIR)/sun/text/resources |
|
62 |
BIFILES = $(TEXT_CLASSDIR)/CharacterBreakIteratorData \ |
|
63 |
$(TEXT_CLASSDIR)/WordBreakIteratorData \ |
|
64 |
$(TEXT_CLASSDIR)/LineBreakIteratorData \ |
|
65 |
$(TEXT_CLASSDIR)/SentenceBreakIteratorData |
|
66 |
||
67 |
ICU_FILES = $(TEXT_CLASSDIR)/unorm.icu \ |
|
2497 | 68 |
$(TEXT_CLASSDIR)/uprops.icu \ |
69 |
$(TEXT_CLASSDIR)/ubidi.icu |
|
2 | 70 |
|
71 |
# builder |
|
72 |
GENERATEBREAKITERATORDATA_JARFILE = \ |
|
73 |
$(BUILDTOOLJARDIR)/generatebreakiteratordata.jar |
|
74 |
||
75 |
$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) \ |
|
76 |
$(UNICODEDATA)/UnicodeData.txt \ |
|
77 |
$(TEXT_SOURCES) |
|
78 |
$(prep-target) |
|
79 |
$(RM) -r $(TEXT_CLASSES) |
|
80 |
$(MKDIR) -p $(TEXT_CLASSES) |
|
81 |
$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \ |
|
82 |
-sourcepath $(TEXT_SRCDIR) \ |
|
83 |
$(TEXT_SOURCES) |
|
84 |
$(MKDIR) -p $(TEXT_CLASSDIR) |
|
85 |
$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \ |
|
86 |
-jar $(GENERATEBREAKITERATORDATA_JARFILE) \ |
|
87 |
-o $(TEXT_CLASSDIR) \ |
|
88 |
-spec $(UNICODEDATA)/UnicodeData.txt |
|
89 |
@$(java-vm-cleanup) |
|
90 |
||
91 |
build: $(BIFILES) $(ICU_FILES) |
|
92 |
||
93 |
# |
|
2497 | 94 |
# Extra rules to copy unorm.icu, uprops.icu, and ubidi.icu |
2 | 95 |
# |
96 |
$(TEXT_CLASSDIR)/unorm.icu: $(TEXT_SRCDIR)/unorm.icu |
|
97 |
$(install-file) |
|
98 |
||
99 |
$(TEXT_CLASSDIR)/uprops.icu: $(TEXT_SRCDIR)/uprops.icu |
|
100 |
$(install-file) |
|
101 |
||
2497 | 102 |
$(TEXT_CLASSDIR)/ubidi.icu: $(TEXT_SRCDIR)/ubidi.icu |
103 |
$(install-file) |
|
104 |
||
2 | 105 |
clean clobber:: |
106 |
$(RM) -r $(TEXT_CLASSES) |
|
107 |
$(RM) -r $(BIFILES) |
|
108 |
$(RM) $(ICU_FILES) |
|
109 |