jdk/make/gensrc/GensrcCharsetCoder.gmk
author vromero
Thu, 31 Mar 2016 17:25:58 -0400
changeset 36776 5e260fa5208a
parent 27565 729f9700483a
child 44848 e946981dc37c
permissions -rw-r--r--
8150733: NPE when compiling module-info.java with a class declaration in a non-module mode Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
     2
# Copyright (c) 2011, 2014, 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
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    30
GENSRC_CHARSETCODER_SRC := $(JDK_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)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    37
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    38
	-$(RM) $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    39
	$(TOOL_SPP) < $< >$@.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"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    57
	    -DdefaultReplName='<tt>"\&#92;uFFFD"<\/tt>' \
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)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    72
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    73
	-$(RM) $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 12892
diff changeset
    74
	$(TOOL_SPP) < $< >$@.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)'"'"\\?"'"' }' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14231
diff changeset
    92
	    -DdefaultReplName='<tt>{<\/tt>\&nbsp;<tt>(byte)'"'"\\?"'"'<\/tt>\&nbsp;<tt>}<\/tt>' \
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)