make/gensrc/GensrcCharsetCoder.gmk
author weijun
Thu, 10 Oct 2019 17:36:38 +0300
changeset 59240 b3116877866f
parent 58908 73bb9c4002cc
permissions -rw-r--r--
8231507: Update Apache Santuario (XML Signature) to version 2.1.4 Reviewed-by: weijun Contributed-by: fedor.burdun@azulsystems.com, weijun.wang@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
58908
73bb9c4002cc 8233381: Update copyright year in build system files
ihse
parents: 53110
diff changeset
     2
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     4
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    10
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    16
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    20
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    23
# questions.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    24
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    25
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    26
GENSRC_CHARSETCODER :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    27
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    28
GENSRC_CHARSETCODER_DST := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/nio/charset
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    30
GENSRC_CHARSETCODER_SRC := $(TOPDIR)/src/java.base/share/classes/java/nio
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    31
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
GENSRC_CHARSETCODER_TEMPLATE := $(GENSRC_CHARSETCODER_SRC)/charset/Charset-X-Coder.java.template
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    33
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    34
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    35
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    36
$(GENSRC_CHARSETCODER_DST)/CharsetDecoder.java: $(GENSRC_CHARSETCODER_TEMPLATE)
52065
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
    37
	$(call MakeTargetDir)
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
    38
	$(RM) $@.tmp
53110
50677f43ac3d 8215445: Enable building for Windows in WSL
erikj
parents: 52804
diff changeset
    39
	$(TOOL_SPP) -i$< -o$@.tmp \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    40
	    -Kdecoder \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    41
	    -DA='A' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    42
	    -Da='a' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    43
	    -DCode='Decode' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    44
	    -Dcode='decode' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    45
	    -DitypesPhrase='bytes in a specific charset' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    46
	    -DotypesPhrase='sixteen-bit Unicode characters' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    47
	    -Ditype='byte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    48
	    -Dotype='character' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    49
	    -DItype='Byte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    50
	    -DOtype='Char' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    51
	    -Dcoder='decoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    52
	    -DCoder='Decoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    53
	    -Dcoding='decoding' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    54
	    -DOtherCoder='Encoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    55
	    -DreplTypeName='string' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    56
	    -DdefaultRepl='"\\uFFFD"' \
44848
e946981dc37c 8179370: Replace use of <tt>, <center> and <font> tags in java.base
jjg
parents: 27565
diff changeset
    57
	    -DdefaultReplName='<code>"\&#92;uFFFD"<\/code>' \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    58
	    -DreplType='String' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    59
	    -DreplFQType='java.lang.String' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    60
	    -DreplLength='length()' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    61
	    -DItypesPerOtype='CharsPerByte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    62
	    -DnotLegal='not legal for this charset' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    63
	    -Dotypes-per-itype='chars-per-byte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    64
	    -DoutSequence='Unicode character'
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    65
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    66
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    67
GENSRC_CHARSETCODER += $(GENSRC_CHARSETCODER_DST)/CharsetDecoder.java
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    68
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    69
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    70
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    71
$(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java: $(GENSRC_CHARSETCODER_TEMPLATE)
52065
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
    72
	$(call MakeTargetDir)
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
    73
	$(RM) $@.tmp
53110
50677f43ac3d 8215445: Enable building for Windows in WSL
erikj
parents: 52804
diff changeset
    74
	$(TOOL_SPP) -i$< -o$@.tmp \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    75
	    -Kencoder \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    76
	    -DA='An' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    77
	    -Da='an' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    78
	    -DCode='Encode' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    79
	    -Dcode='encode' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    80
	    -DitypesPhrase='sixteen-bit Unicode characters' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    81
	    -DotypesPhrase='bytes in a specific charset' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    82
	    -Ditype='character' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    83
	    -Dotype='byte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    84
	    -DItype='Char' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    85
	    -DOtype='Byte' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    86
	    -Dcoder='encoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    87
	    -DCoder='Encoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    88
	    -Dcoding='encoding' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    89
	    -DOtherCoder='Decoder' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    90
	    -DreplTypeName='byte array' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    91
	    -DdefaultRepl='new byte[] { (byte)'"'"\\?"'"' }' \
44848
e946981dc37c 8179370: Replace use of <tt>, <center> and <font> tags in java.base
jjg
parents: 27565
diff changeset
    92
	    -DdefaultReplName='<code>{<\/code>\&nbsp;<code>(byte)'"'"\\?"'"'<\/code>\&nbsp;<code>}<\/code>' \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    93
	    -DreplType='byte[]' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    94
	    -DreplFQType='byte[]' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    95
	    -DreplLength='length' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    96
	    -DItypesPerOtype='BytesPerChar' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    97
	    -DnotLegal='not a legal sixteen-bit Unicode sequence' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    98
	    -Dotypes-per-itype='bytes-per-char' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    99
	    -DoutSequence='byte sequence in the given charset'
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
   100
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   101
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   102
GENSRC_CHARSETCODER += $(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   103
GENSRC_JAVA_BASE += $(GENSRC_CHARSETCODER)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   104
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   105
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   106
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   107
$(GENSRC_CHARSETCODER): $(BUILD_TOOLS_JDK)