12892
|
1 |
#
|
|
2 |
# Copyright (c) 2011, 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
|
|
23 |
# questions.
|
|
24 |
#
|
|
25 |
|
20547
|
26 |
GENSRC_CHARSETMAPPING :=
|
12892
|
27 |
|
14231
|
28 |
GENSRC_TMP := $(JDK_OUTPUTDIR)/gensrc
|
|
29 |
GENSRC_DST := $(JDK_OUTPUTDIR)/gensrc/sun/nio/cs
|
12892
|
30 |
|
21805
|
31 |
GENSRC_DATA := $(JDK_TOPDIR)/make/data/charsetmapping
|
|
32 |
GENSRC_JAVA_SRC := $(JDK_TOPDIR)/make/src/classes/build/tools/charsetmapping
|
12892
|
33 |
|
21805
|
34 |
GENSRC_TEMPLATES := $(GENSRC_DATA)/SingleByte-X.java.template $(GENSRC_DATA)/DoubleByte-X.java.template
|
12892
|
35 |
|
|
36 |
###
|
|
37 |
|
20547
|
38 |
$(GENSRC_TMP)/_the.charsetmapping.dir:
|
12892
|
39 |
$(ECHO) Generating charsetmapping classes
|
|
40 |
$(MKDIR) -p $(GENSRC_DST)/ext
|
|
41 |
$(TOUCH) $@
|
|
42 |
|
|
43 |
###
|
|
44 |
|
14231
|
45 |
GENSRC_SB := $(GENSRC_TMP)/_the.charsetmapping.sbcs
|
12892
|
46 |
|
21805
|
47 |
$(GENSRC_SB): $(GENSRC_DATA)/sbcs $(GENSRC_TEMPLATES) $(GENSRC_TMP)/_the.charsetmapping.dir
|
|
48 |
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_DATA) $(GENSRC_DST) sbcs
|
12892
|
49 |
$(TOUCH) $@
|
|
50 |
|
|
51 |
GENSRC_CHARSETMAPPING += $(GENSRC_SB)
|
|
52 |
|
|
53 |
###
|
|
54 |
|
21805
|
55 |
$(GENSRC_DST)/ext/sjis0213.dat: $(GENSRC_DATA)/sjis0213.map $(GENSRC_SB)
|
14231
|
56 |
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $< $@ sjis0213
|
12892
|
57 |
|
|
58 |
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/sjis0213.dat
|
|
59 |
|
|
60 |
###
|
|
61 |
|
20547
|
62 |
$(GENSRC_DST)/ext/EUC_TWMapping.java: $(GENSRC_JAVA_SRC)/EUC_TW.java $(GENSRC_SB)
|
21805
|
63 |
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_DATA) $(GENSRC_DST)/ext euctw $(GENSRC_JAVA_SRC)/EUC_TW.java
|
12892
|
64 |
|
|
65 |
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/EUC_TWMapping.java
|
|
66 |
|
|
67 |
###
|
|
68 |
|
20547
|
69 |
$(GENSRC_DST)/ext/HKSCSMapping.java: $(GENSRC_JAVA_SRC)/HKSCS.java $(GENSRC_SB)
|
21805
|
70 |
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_DATA) $(GENSRC_DST)/ext hkscs $(GENSRC_JAVA_SRC)/HKSCS.java
|
12892
|
71 |
|
|
72 |
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/HKSCSMapping.java
|
|
73 |
|
|
74 |
###
|
|
75 |
|
21805
|
76 |
$(GENSRC_TMP)/gensrc_the.charsetmapping.extsbcs: $(GENSRC_DATA)/extsbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
|
|
77 |
$(TOOL_CHARSETMAPPING) $(GENSRC_DATA) $(LOG_INFO) $(GENSRC_DST)/ext extsbcs
|
12892
|
78 |
$(TOUCH) $@
|
|
79 |
|
|
80 |
GENSRC_CHARSETMAPPING += $(GENSRC_TMP)/gensrc_the.charsetmapping.extsbcs
|
|
81 |
|
|
82 |
###
|
|
83 |
|
21805
|
84 |
$(GENSRC_TMP)/gensrc_the.charsetmapping.dbcs: $(GENSRC_DATA)/dbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
|
|
85 |
$(TOOL_CHARSETMAPPING) $(GENSRC_DATA) $(LOG_INFO) $(GENSRC_DST)/ext dbcs
|
12892
|
86 |
$(TOUCH) $@
|
|
87 |
|
|
88 |
GENSRC_CHARSETMAPPING += $(GENSRC_TMP)/gensrc_the.charsetmapping.dbcs
|
|
89 |
|
|
90 |
###
|
|
91 |
|
21805
|
92 |
GENSRC_CHARSET_PROVIDER_CMD := $(JDK_TOPDIR)/make/scripts/genCharsetProvider.sh
|
12892
|
93 |
|
20547
|
94 |
$(GENSRC_DST)/StandardCharsets.java: $(JDK_TOPDIR)/src/share/classes/sun/nio/cs/standard-charsets \
|
|
95 |
$(GENSRC_CHARSET_PROVIDER_CMD) \
|
|
96 |
$(GENSRC_TMP)/_the.charsetmapping.dir
|
12892
|
97 |
NAWK="$(NAWK)" TEMPDIR="$(GENSRC_TMP)" SH="$(SH)" \
|
20547
|
98 |
HASHER="$(TOOL_HASHER)" \
|
21805
|
99 |
SCRIPTS="$(JDK_TOPDIR)/make/scripts" \
|
20547
|
100 |
$(SH) -e $(GENSRC_CHARSET_PROVIDER_CMD) $(LOG_INFO) $< $(@D)
|
12892
|
101 |
|
|
102 |
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/StandardCharsets.java
|
|
103 |
|
20547
|
104 |
$(GENSRC_CHARSETMAPPING): $(BUILD_TOOLS)
|