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