annotate make/gensrc/Gensrc-jdk.charsets.gmk @ 47290:b90a1b5b8142

manual merge
author mcimadamore
date Mon, 25 Sep 2017 16:38:40 +0100
parents 59bdd7243c52
children
rev   line source
erikj@12892 1 #
ihse@22639 2 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
erikj@12892 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@12892 4 #
erikj@12892 5 # This code is free software; you can redistribute it and/or modify it
erikj@12892 6 # under the terms of the GNU General Public License version 2 only, as
erikj@12892 7 # published by the Free Software Foundation. Oracle designates this
erikj@12892 8 # particular file as subject to the "Classpath" exception as provided
erikj@12892 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@12892 10 #
erikj@12892 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@12892 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@12892 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@12892 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@12892 15 # accompanied this code).
erikj@12892 16 #
erikj@12892 17 # You should have received a copy of the GNU General Public License version
erikj@12892 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@12892 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@12892 20 #
erikj@12892 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@12892 22 # or visit www.oracle.com if you need additional information or have any
erikj@12892 23 # questions.
erikj@12892 24 #
erikj@12892 25
erikj@47217 26 include GensrcCommonJdk.gmk
erikj@12892 27
erikj@26717 28 ################################################################################
erikj@26717 29 #
erikj@26717 30 # Generate files using the charsetmapping tool
erikj@26717 31 #
erikj@47217 32 CHARSET_DATA_DIR := $(TOPDIR)/make/data/charsetmapping
sherman@28969 33
chegar@27565 34 CHARSET_GENSRC_JAVA_DIR_CS := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.charsets/sun/nio/cs/ext
chegar@25859 35 CHARSET_DONE_CS := $(CHARSET_GENSRC_JAVA_DIR_CS)/_the.charsetmapping
erikj@47217 36 CHARSET_COPYRIGHT_HEADER := $(TOPDIR)/make/jdk/src/classes/build/tools/charsetmapping
ihse@22639 37 CHARSET_TEMPLATES := \
ihse@22639 38 $(CHARSET_DATA_DIR)/SingleByte-X.java.template \
ihse@22639 39 $(CHARSET_DATA_DIR)/DoubleByte-X.java.template
sherman@28969 40 CHARSET_EXTENDED_JAVA_TEMPLATES := \
erikj@47217 41 $(TOPDIR)/src/jdk.charsets/share/classes/sun/nio/cs/ext/ExtendedCharsets.java.template
erikj@47217 42 CHARSET_EXTENDED_JAVA_DIR := $(TOPDIR)/src/jdk.charsets/share/classes/sun/nio/cs/ext
sherman@28969 43 CHARSET_STANDARD_OS := stdcs-$(OPENJDK_TARGET_OS)
ihse@22639 44
sherman@28969 45 $(CHARSET_DONE_CS)-extcs: $(CHARSET_DATA_DIR)/charsets \
erikj@29016 46 $(wildcard $(CHARSET_DATA_DIR)/$(CHARSET_STANDARD_OS)) \
erikj@29016 47 $(CHARSET_TEMPLATES) $(CHARSET_EXTENDED_JAVA_TEMPLATES) \
erikj@29016 48 $(BUILD_TOOLS_JDK)
erikj@35241 49 $(call LogInfo, Generating jdk.charsets extcs)
erikj@35241 50 $(call MakeDir, $(@D))
sherman@28969 51 $(TOOL_CHARSETMAPPING) $(CHARSET_DATA_DIR) $(CHARSET_GENSRC_JAVA_DIR_CS) \
erikj@29016 52 extcs charsets $(CHARSET_STANDARD_OS) \
erikj@29016 53 $(CHARSET_EXTENDED_JAVA_TEMPLATES) \
sherman@29119 54 $(CHARSET_EXTENDED_JAVA_DIR) \
sherman@29119 55 $(CHARSET_COPYRIGHT_HEADER) \
erikj@35241 56 $(LOG_DEBUG)
ihse@22639 57 $(TOUCH) '$@'
ihse@22639 58
erikj@26717 59 $(CHARSET_DONE_CS)-hkscs: $(CHARSET_COPYRIGHT_HEADER)/HKSCS.java \
erikj@26717 60 $(BUILD_TOOLS_JDK)
erikj@35241 61 $(call LogInfo, Generating jdk.charsets hkscs)
erikj@35241 62 $(call MakeDir, $(@D))
chegar@25859 63 $(TOOL_CHARSETMAPPING) $(CHARSET_DATA_DIR) $(CHARSET_GENSRC_JAVA_DIR_CS) hkscs '$<'
ihse@22639 64 $(TOUCH) '$@'
ihse@22639 65
erikj@26717 66 $(CHARSET_DONE_CS)-euctw: $(CHARSET_COPYRIGHT_HEADER)/EUC_TW.java \
erikj@26717 67 $(BUILD_TOOLS_JDK)
erikj@35241 68 $(call LogInfo, Generating jdk.charsets euctw)
erikj@35241 69 $(call MakeDir, $(@D))
chegar@25859 70 $(TOOL_CHARSETMAPPING) $(CHARSET_DATA_DIR) $(CHARSET_GENSRC_JAVA_DIR_CS) euctw '$<'
ihse@22639 71 $(TOUCH) '$@'
ihse@22639 72
chegar@25859 73 $(CHARSET_GENSRC_JAVA_DIR_CS)/sjis0213.dat: $(CHARSET_DATA_DIR)/sjis0213.map \
erikj@26717 74 $(BUILD_TOOLS_JDK)
mcimadamore@47290 75 $(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $@))
erikj@35241 76 $(call MakeDir, $(@D))
ihse@22639 77 $(TOOL_CHARSETMAPPING) '$<' '$@' sjis0213
ihse@22639 78
chegar@25859 79 GENSRC_JDK_CHARSETS += \
sherman@28969 80 $(CHARSET_DONE_CS)-extcs \
chegar@25859 81 $(CHARSET_DONE_CS)-hkscs \
chegar@25859 82 $(CHARSET_DONE_CS)-euctw \
chegar@25859 83 $(CHARSET_GENSRC_JAVA_DIR_CS)/sjis0213.dat \
ihse@22639 84 #
erikj@12892 85
erikj@26717 86 ################################################################################
erikj@12892 87
erikj@26717 88 jdk.charsets: $(GENSRC_JDK_CHARSETS)
erikj@12892 89
erikj@26717 90 all: jdk.charsets
erikj@12892 91
erikj@26717 92 .PHONY: all jdk.charsets