make/gensrc/Gensrc-jdk.localedata.gmk
author weijun
Thu, 10 Oct 2019 17:36:38 +0300
changeset 59240 b3116877866f
parent 53638 e3fb7c599f83
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:
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     1
#
53638
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
     2
# Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     4
#
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    10
#
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    15
# accompanied this code).
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    16
#
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    20
#
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    23
# questions.
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    24
#
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    25
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    26
include GensrcCommonJdk.gmk
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    27
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    28
# Hook to include the corresponding custom file, if present.
47314
743814386712 8188814: Simplify IncludeCustomExtension
ihse
parents: 47217
diff changeset
    29
$(eval $(call IncludeCustomExtension, gensrc/Gensrc-jdk.localedata.gmk))
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    30
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    31
include GensrcLocaleData.gmk
53638
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    32
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    33
################################################################################
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    34
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    35
CLDR_DATA_DIR := $(TOPDIR)/make/data/cldr/common
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    36
GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    37
CLDR_GEN_DONE := $(GENSRC_DIR)/_cldr-gensrc.marker
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    38
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    39
$(CLDR_GEN_DONE): $(wildcard $(CLDR_DATA_DIR)/dtd/*.dtd) \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    40
    $(wildcard $(CLDR_DATA_DIR)/main/*.xml) \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    41
    $(wildcard $(CLDR_DATA_DIR)/supplemental/*.xml) \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    42
    $(BUILD_TOOLS_JDK)
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    43
	$(call MakeDir, $(GENSRC_DIR))
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    44
	$(call LogInfo, Processing CLDR data for jdk.localedata)
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    45
	$(call ExecuteWithLog, $@, \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    46
	    $(TOOL_CLDRCONVERTER) -base $(CLDR_DATA_DIR) \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    47
	    -baselocales "en-US" \
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    48
	    -o $(GENSRC_DIR))
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    49
	$(TOUCH) $@
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    50
e3fb7c599f83 8218186: Clean up CLDR generation in build
ihse
parents: 52804
diff changeset
    51
GENSRC_JDK_LOCALEDATA += $(CLDR_GEN_DONE)
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    52
27088
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    53
################################################################################
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    54
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    55
include GensrcProperties.gmk
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    56
33669
1082bb5cff16 8142383: Use named arguments for SetupCompileProperties in jdk
ihse
parents: 27088
diff changeset
    57
$(eval $(call SetupCompileProperties, COMPILE_PROPERTIES, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    58
    SRC_DIRS := $(TOPDIR)/src/jdk.localedata/share/classes/sun/util/resources, \
33669
1082bb5cff16 8142383: Use named arguments for SetupCompileProperties in jdk
ihse
parents: 27088
diff changeset
    59
    CLASS := sun.util.resources.LocaleNamesBundle, \
50590
5fa19bad622d 8204973: Add build support for filtering translations
erikj
parents: 47314
diff changeset
    60
    KEEP_ALL_TRANSLATIONS := true, \
33669
1082bb5cff16 8142383: Use named arguments for SetupCompileProperties in jdk
ihse
parents: 27088
diff changeset
    61
))
27088
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    62
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    63
# Skip generating zh_HK from zh_TW for this module.
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    64
GENSRC_JDK_LOCALEDATA += $(filter-out %_zh_HK.java, $(COMPILE_PROPERTIES))
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    65
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    66
################################################################################
ea6446a9121b 8055191: Split GensrcProperties.gmk into separate modules
erikj
parents: 26632
diff changeset
    67
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    68
jdk.localedata: $(GENSRC_JDK_LOCALEDATA)
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    69
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    70
all: jdk.localedata
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    71
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff changeset
    72
.PHONY: all jdk.localedata