author | serb |
Sun, 09 Jun 2019 18:14:48 -0700 | |
changeset 57515 | 2db64810f4fc |
parent 53638 | e3fb7c599f83 |
permissions | -rw-r--r-- |
26632
f87ab7e0bf39
8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents:
diff
changeset
|
1 |
# |
53638 | 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 | 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 | 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 | 32 |
|
33 |
################################################################################ |
|
34 |
||
35 |
CLDR_DATA_DIR := $(TOPDIR)/make/data/cldr/common |
|
36 |
GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata |
|
37 |
CLDR_GEN_DONE := $(GENSRC_DIR)/_cldr-gensrc.marker |
|
38 |
||
39 |
$(CLDR_GEN_DONE): $(wildcard $(CLDR_DATA_DIR)/dtd/*.dtd) \ |
|
40 |
$(wildcard $(CLDR_DATA_DIR)/main/*.xml) \ |
|
41 |
$(wildcard $(CLDR_DATA_DIR)/supplemental/*.xml) \ |
|
42 |
$(BUILD_TOOLS_JDK) |
|
43 |
$(call MakeDir, $(GENSRC_DIR)) |
|
44 |
$(call LogInfo, Processing CLDR data for jdk.localedata) |
|
45 |
$(call ExecuteWithLog, $@, \ |
|
46 |
$(TOOL_CLDRCONVERTER) -base $(CLDR_DATA_DIR) \ |
|
47 |
-baselocales "en-US" \ |
|
48 |
-o $(GENSRC_DIR)) |
|
49 |
$(TOUCH) $@ |
|
50 |
||
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 | 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 |