1 #
2 # Copyright (c) 2001, 2011, 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
31
32 PACKAGE = sun.text
33 PRODUCT = sun
34 JAVAC_MAX_WARNINGS = true
35 JAVAC_WARNINGS_FATAL = true
36
37 include $(BUILDDIR)/common/Defs.gmk
38
39 # Re-direct classes to another location (we are building localedata.jar)
40 CLASSDESTDIR = $(TEMPDIR)/classes
41
42 #
43 # Files
44 #
45 include FILES_java.gmk
46 include FILES_properties.gmk
47
48 #
49 # Compile the properties files
50 #
51 COMPILED_PROPERTIES_SUPERCLASS=LocaleNamesBundle
52
53 #
54 # Rules
55 #
56 include $(BUILDDIR)/common/Classes.gmk
57
58 #
59 # Rules to add data files BreakIterator (for th locale)
60 #
61 TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/sun.text/classes
62
63 # input
64 #
65 # Notes: sun.text.resources.BreakIteratorRules_th no longer goes to runtime.
66 # They are used at JDK build phase in order to create $(BIFILES) which
67 # are used on runtime instead.
68 #
69 TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
70 BIRULES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
71 $(TEXT_SRCDIR)/BreakIteratorRules_th.java
72 BIINFO = $(TEXT_SRCDIR)/BreakIteratorInfo_th.java
73 UNICODEDATA = $(BUILDDIR)/tools/UnicodeData
74
75 # output
76 BIFILES = $(CLASSDESTDIR)/sun/text/resources/WordBreakIteratorData_th \
77 $(CLASSDESTDIR)/sun/text/resources/LineBreakIteratorData_th
78
79 # builder
80 GENERATEBREAKITERATORDATA_JARFILE = \
81 $(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
82
83 $(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) $(BIRULES) $(BIINFO) \
84 $(UNICODEDATA)/UnicodeData.txt
85 $(prep-target)
86 $(MKDIR) -p $(TEXT_CLASSES)
87 $(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
88 -sourcepath $(TEXT_SRCDIR) \
89 $(BIRULES) $(BIINFO)
90 $(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
91 -jar $(GENERATEBREAKITERATORDATA_JARFILE) \
92 -o $(CLASSDESTDIR)/sun/text/resources \
93 -spec $(UNICODEDATA)/UnicodeData.txt \
94 -language th
95 @$(java-vm-cleanup)
96
97 clean::
98 $(RM) -r $(TEXT_CLASSES)
99 $(RM) -r $(BIFILES)
100 #
101 # End of rules to add data files for BreakIterator
102 #
103
104 #
105 # Extra rules to build locale data.
106 #
107 LOCALEDATA_JAR = $(EXTDIR)/localedata.jar
108
109 SPECIALFILES = $(CLASSDESTDIR)/sun/text/resources/thai_dict
110
111 $(CLASSDESTDIR)/sun/text/resources/% : $(TEXT_SRCDIR)/%
112 $(install-file)
113
114 $(LOCALEDATA_JAR): $(EXTDIR) $(FILES_class) $(BIFILES) $(SPECIALFILES)
115 $(prep-target)
116 $(BOOT_JAR_CMD) -cf $@ -C $(CLASSDESTDIR) sun \
117 $(BOOT_JAR_JFLAGS)
118 @$(java-vm-cleanup)
119
120 build: $(LOCALEDATA_JAR)
121
122 clean clobber::
123 $(RM) -r $(CLASSDESTDIR)
124 $(RM) $(LOCALEDATA_JAR)
125
|
1 #
2 # Copyright (c) 2001, 2012, 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
31
32 PACKAGE = sun.text
33 PRODUCT = sun
34 JAVAC_MAX_WARNINGS = true
35 JAVAC_WARNINGS_FATAL = true
36
37 include $(BUILDDIR)/common/Defs.gmk
38
39 # Re-direct classes to another location (we are building localedata.jar)
40 CLASSDESTDIR = $(TEMPDIR)/classes
41
42 #
43 # Files
44 #
45 include FILES_java.gmk
46 include FILES_properties.gmk
47
48 #
49 # Compile the properties files
50 #
51 COMPILED_PROPERTIES_SUPERCLASS=sun.util.resources.LocaleNamesBundle
52
53 #
54 # Rules
55 #
56 include $(BUILDDIR)/common/Classes.gmk
57
58 #
59 # Rules to add data files BreakIterator (for th locale)
60 #
61 TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/sun.text/classes
62
63 # input
64 #
65 # Notes: sun.text.resources.BreakIteratorRules_th no longer goes to runtime.
66 # They are used at JDK build phase in order to create $(BIFILES) which
67 # are used on runtime instead.
68 #
69 TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
70 BIRULES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
71 $(TEXT_SRCDIR)/th/BreakIteratorRules_th.java
72 BIINFO = $(TEXT_SRCDIR)/th/BreakIteratorInfo_th.java
73 UNICODEDATA = $(BUILDDIR)/tools/UnicodeData
74
75 # output
76 BIFILES = $(CLASSDESTDIR)/sun/text/resources/th/WordBreakIteratorData_th \
77 $(CLASSDESTDIR)/sun/text/resources/th/LineBreakIteratorData_th
78
79 # builder
80 GENERATEBREAKITERATORDATA_JARFILE = \
81 $(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
82
83 $(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) $(BIRULES) $(BIINFO) \
84 $(UNICODEDATA)/UnicodeData.txt
85 $(prep-target)
86 $(MKDIR) -p $(TEXT_CLASSES)
87 $(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
88 -sourcepath $(TEXT_SRCDIR) \
89 $(BIRULES) $(BIINFO)
90 $(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
91 -jar $(GENERATEBREAKITERATORDATA_JARFILE) \
92 -o $(CLASSDESTDIR)/sun/text/resources \
93 -spec $(UNICODEDATA)/UnicodeData.txt \
94 -language th
95 @$(java-vm-cleanup)
96
97 clean::
98 $(RM) -r $(TEXT_CLASSES)
99 $(RM) -r $(BIFILES)
100 #
101 # End of rules to add data files for BreakIterator
102 #
103
104 #
105 # Extra rules to build locale data.
106 #
107 LOCALEDATA_JAR = $(EXTDIR)/localedata.jar
108
109 SPECIALFILES = $(CLASSDESTDIR)/sun/text/resources/th/thai_dict
110
111 $(CLASSDESTDIR)/sun/text/resources/% : $(TEXT_SRCDIR)/%
112 $(install-file)
113
114 $(LOCALEDATA_JAR): $(EXTDIR) $(FILES_class) $(BIFILES) $(SPECIALFILES)
115 $(prep-target)
116 $(BOOT_JAR_CMD) -cf $@ -C $(CLASSDESTDIR) sun \
117 $(BOOT_JAR_JFLAGS)
118 @$(java-vm-cleanup)
119
120 build: $(LOCALEDATA_JAR)
121
122 clean clobber::
123 $(RM) -r $(CLASSDESTDIR)
124 $(RM) $(LOCALEDATA_JAR)
125
|