author | mchung |
Wed, 09 Mar 2011 23:11:07 -0800 (2011-03-10) | |
changeset 8583 | 15dea0fdc2ea |
parent 7668 | d4a77089c587 |
child 9035 | 1255eb81cc2f |
permissions | -rw-r--r-- |
2 | 1 |
# |
7668 | 2 |
# Copyright (c) 1996, 2010, 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 |
|
29 |
||
30 |
include $(BUILDDIR)/common/Defs.gmk |
|
31 |
||
32 |
# |
|
33 |
# Files |
|
34 |
# |
|
35 |
include FILES_java.gmk |
|
36 |
||
37 |
# |
|
38 |
# Include |
|
39 |
# |
|
40 |
include $(BUILDDIR)/common/Classes.gmk |
|
41 |
||
42 |
# |
|
43 |
# Rules to add data files BreakIterator |
|
44 |
# |
|
45 |
TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/java.text/classes |
|
46 |
||
47 |
# input |
|
48 |
# |
|
49 |
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime. |
|
50 |
# They are used at JDK build phase in order to create $(BIFILES) which |
|
51 |
# are used on runtime instead. |
|
52 |
# |
|
53 |
TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources |
|
54 |
TEXT_SOURCES = $(TEXT_SRCDIR)/BreakIteratorRules.java \ |
|
55 |
$(TEXT_SRCDIR)/BreakIteratorInfo.java |
|
56 |
UNICODEDATA = $(BUILDDIR)/tools/UnicodeData |
|
57 |
||
58 |
# output |
|
59 |
TEXT_CLASSDIR = $(CLASSBINDIR)/sun/text/resources |
|
60 |
BIFILES = $(TEXT_CLASSDIR)/CharacterBreakIteratorData \ |
|
61 |
$(TEXT_CLASSDIR)/WordBreakIteratorData \ |
|
62 |
$(TEXT_CLASSDIR)/LineBreakIteratorData \ |
|
63 |
$(TEXT_CLASSDIR)/SentenceBreakIteratorData |
|
64 |
||
65 |
ICU_FILES = $(TEXT_CLASSDIR)/unorm.icu \ |
|
2497 | 66 |
$(TEXT_CLASSDIR)/uprops.icu \ |
67 |
$(TEXT_CLASSDIR)/ubidi.icu |
|
2 | 68 |
|
69 |
# builder |
|
70 |
GENERATEBREAKITERATORDATA_JARFILE = \ |
|
71 |
$(BUILDTOOLJARDIR)/generatebreakiteratordata.jar |
|
72 |
||
73 |
$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) \ |
|
74 |
$(UNICODEDATA)/UnicodeData.txt \ |
|
75 |
$(TEXT_SOURCES) |
|
76 |
$(prep-target) |
|
77 |
$(RM) -r $(TEXT_CLASSES) |
|
78 |
$(MKDIR) -p $(TEXT_CLASSES) |
|
79 |
$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \ |
|
80 |
-sourcepath $(TEXT_SRCDIR) \ |
|
81 |
$(TEXT_SOURCES) |
|
82 |
$(MKDIR) -p $(TEXT_CLASSDIR) |
|
83 |
$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \ |
|
84 |
-jar $(GENERATEBREAKITERATORDATA_JARFILE) \ |
|
85 |
-o $(TEXT_CLASSDIR) \ |
|
86 |
-spec $(UNICODEDATA)/UnicodeData.txt |
|
87 |
@$(java-vm-cleanup) |
|
88 |
||
89 |
build: $(BIFILES) $(ICU_FILES) |
|
90 |
||
91 |
# |
|
2497 | 92 |
# Extra rules to copy unorm.icu, uprops.icu, and ubidi.icu |
2 | 93 |
# |
94 |
$(TEXT_CLASSDIR)/unorm.icu: $(TEXT_SRCDIR)/unorm.icu |
|
95 |
$(install-file) |
|
96 |
||
97 |
$(TEXT_CLASSDIR)/uprops.icu: $(TEXT_SRCDIR)/uprops.icu |
|
98 |
$(install-file) |
|
99 |
||
2497 | 100 |
$(TEXT_CLASSDIR)/ubidi.icu: $(TEXT_SRCDIR)/ubidi.icu |
101 |
$(install-file) |
|
102 |
||
2 | 103 |
clean clobber:: |
104 |
$(RM) -r $(TEXT_CLASSES) |
|
105 |
$(RM) -r $(BIFILES) |
|
106 |
$(RM) $(ICU_FILES) |
|
107 |