jdk/make/gensrc/GensrcLocaleDataMetaInfo.gmk
author naoto
Tue, 02 Sep 2014 14:11:38 -0700
changeset 26360 697f70835528
parent 26192 33b90e93e3bf
permissions -rw-r--r--
8038436: Re-examine the mechanism to determine available localedata and cldrdata Reviewed-by: alanb, mchung, okutsu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
25996
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
     2
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    26
# Scan for all locale resources and extract for which locales there exists
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
    27
# resources. Then put this meta information about existing (supported?) locales
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    28
# into LocaleDataMetaInfo.java
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    29
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    30
# First go look for all locale files
26192
33b90e93e3bf 8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents: 25996
diff changeset
    31
LOCALE_FILES := $(shell $(FIND) $(JDK_TOPDIR)/src/java.base/share/classes \
33b90e93e3bf 8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents: 25996
diff changeset
    32
    $(JDK_TOPDIR)/src/jdk.localedata/share/classes \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    33
    -name "FormatData_*.java" -o -name "FormatData_*.properties" -o \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    34
    -name "CollationData_*.java" -o -name "CollationData_*.properties" -o \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    35
    -name "TimeZoneNames_*.java" -o -name "TimeZoneNames_*.properties" -o \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    36
    -name "LocaleNames_*.java" -o -name "LocaleNames_*.properties" -o \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    37
    -name "CurrencyNames_*.java" -o -name "CurrencyNames_*.properties" -o \
25996
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
    38
    -name "CalendarData_*.java" -o -name "CalendarData_*.properties" -o \
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
    39
    -name "BreakIteratorInfo_*.java" -o -name "BreakIteratorRules_*.java")
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    40
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    41
# Then translate the locale files into for example: FormatData_sv
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    42
LOCALE_RESOURCES := $(sort $(subst .properties,,$(subst .java,,$(notdir $(LOCALE_FILES)))))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    43
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    44
# Include the list of resources found during the previous compile.
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    45
-include $(JDK_OUTPUTDIR)/gensrc/_the.locale_resources
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    46
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    47
MISSING_RESOURCES := $(filter-out $(LOCALE_RESOURCES), $(PREV_LOCALE_RESOURCES))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    48
NEW_RESOURCES := $(filter-out $(PREV_LOCALE_RESOURCES), $(LOCALE_RESOURCES))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    49
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    50
ifneq (, $(MISSING_RESOURCES)$(NEW_RESOURCES))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    51
  # There is a difference in the number of supported resources. Trigger a regeneration.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    52
  $(shell $(RM) $(JDK_OUTPUTDIR)/gensrc/sun/util/locale/provider/LocaleDataMetaInfo.java)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    53
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    54
19837
6f1c611fb72c 8024332: sun/util/resources/en split between rt.jar and localedata.jar
naoto
parents: 14427
diff changeset
    55
# The EN locales
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    56
EN_LOCALES := en%
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    57
22627
93f110be9439 8030696: Norwegian locales nb_NO and nn_NO should be available locales
naoto
parents: 21805
diff changeset
    58
# Locales that don't have any resource files should be included here.
93f110be9439 8030696: Norwegian locales nb_NO and nn_NO should be available locales
naoto
parents: 21805
diff changeset
    59
ALL_NON_EN_LOCALES := ja-JP-JP nb-NO nn-NO th-TH-TH
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    60
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    61
SED_ENARGS := -e 's|$(HASH)warn This file is preprocessed before being compiled|// -- This file was mechanically generated: Do not edit! -- //|g'
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    62
SED_NONENARGS := $(SED_ENARGS)
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    63
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    64
# Fill in the languages and package names
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    65
SED_ENARGS += -e 's/$(HASH)Lang$(HASH)/En/' \
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    66
    -e 's/$(HASH)Package$(HASH)/sun.util.locale.provider/'
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    67
SED_NONENARGS += -e 's/$(HASH)Lang$(HASH)/NonEn/' \
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    68
    -e 's/$(HASH)Package$(HASH)/sun.util.resources.provider/'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    69
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    70
# This macro creates a sed expression that substitues for example:
19837
6f1c611fb72c 8024332: sun/util/resources/en split between rt.jar and localedata.jar
naoto
parents: 14427
diff changeset
    71
# #FormatData_ENLocales# with: en% locales.
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    72
define CaptureLocale
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    73
  $1_LOCALES := $$(subst _,-,$$(filter-out $1, $$(subst $1_,,$$(filter $1_%, $(LOCALE_RESOURCES)))))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    74
  $1_EN_LOCALES := $$(filter $(EN_LOCALES), $$($1_LOCALES))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    75
  $1_NON_EN_LOCALES := $$(filter-out $(EN_LOCALES), $$($1_LOCALES))
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    76
22989
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    77
  # Special handling for Chinese locales to include implicit scripts
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    78
  $1_NON_EN_LOCALES := $$(subst zh-CN,zh-CN$$(SPACE)zh-Hans-CN, $$($1_NON_EN_LOCALES))
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    79
  $1_NON_EN_LOCALES := $$(subst zh-SG,zh-SG$$(SPACE)zh-Hans-SG, $$($1_NON_EN_LOCALES))
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    80
  $1_NON_EN_LOCALES := $$(subst zh-HK,zh-HK$$(SPACE)zh-Hant-HK, $$($1_NON_EN_LOCALES))
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    81
  $1_NON_EN_LOCALES := $$(subst zh-MO,zh-MO$$(SPACE)zh-Hant-MO, $$($1_NON_EN_LOCALES))
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    82
  $1_NON_EN_LOCALES := $$(subst zh-TW,zh-TW$$(SPACE)zh-Hant-TW, $$($1_NON_EN_LOCALES))
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    83
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    84
  ALL_EN_LOCALES += $$($1_EN_LOCALES)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    85
  ALL_NON_EN_LOCALES += $$($1_NON_EN_LOCALES)
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    86
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    87
  # Don't sed in a space if there are no locales.
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    88
  SED_ENARGS += -e 's/$$(HASH)$1_Locales$$(HASH)/$$(if $$($1_EN_LOCALES),$$(SPACE)$$($1_EN_LOCALES),)/g'
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    89
  SED_NONENARGS += -e 's/$$(HASH)$1_Locales$$(HASH)/$$(if $$($1_NON_EN_LOCALES),$$(SPACE)$$($1_NON_EN_LOCALES),)/g'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    90
endef
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    91
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    92
#sun.text.resources.FormatData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    93
$(eval $(call CaptureLocale,FormatData))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    94
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    95
#sun.text.resources.CollationData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    96
$(eval $(call CaptureLocale,CollationData))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    97
25996
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
    98
#sun.text.resources.BreakIteratorInfo
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
    99
$(eval $(call CaptureLocale,BreakIteratorInfo))
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   100
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   101
#sun.text.resources.BreakIteratorRules
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   102
$(eval $(call CaptureLocale,BreakIteratorRules))
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   103
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   104
#sun.util.resources.TimeZoneNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   105
$(eval $(call CaptureLocale,TimeZoneNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   106
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   107
#sun.util.resources.LocaleNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   108
$(eval $(call CaptureLocale,LocaleNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   109
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   110
#sun.util.resources.CurrencyNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   111
$(eval $(call CaptureLocale,CurrencyNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   112
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   113
#sun.util.resources.CalendarData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   114
$(eval $(call CaptureLocale,CalendarData))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   115
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   116
SED_ENARGS += -e 's/$(HASH)AvailableLocales_Locales$(HASH)/$(sort $(ALL_EN_LOCALES))/g'
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   117
SED_NONENARGS += -e 's/$(HASH)AvailableLocales_Locales$(HASH)/$(sort $(ALL_NON_EN_LOCALES))/g'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   118
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   119
$(JDK_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/EnLocaleDataMetaInfo.java: \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   120
    $(JDK_TOPDIR)/src/java.base/share/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   121
	$(MKDIR) -p $(@D)
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   122
	$(ECHO) Creating sun/util/locale/provider/EnLocaleDataMetaInfo.java from $(words $(LOCALE_RESOURCES)) found resources.
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   123
	$(PRINTF) "PREV_LOCALE_RESOURCES:=$(LOCALE_RESOURCES)" > $(JDK_OUTPUTDIR)/gensrc/_the.locale_resources
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   124
	$(SED) $(SED_ENARGS) $< > $@
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   125
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   126
$(JDK_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonEnLocaleDataMetaInfo.java: \
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   127
    $(JDK_TOPDIR)/src/java.base/share/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   128
	$(MKDIR) -p $(@D)
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   129
	$(ECHO) Creating sun/util/resources/provider/NonEnLocaleDataMetaInfo.java from $(words $(LOCALE_RESOURCES)) found resources.
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   130
	$(PRINTF) "PREV_LOCALE_RESOURCES:=$(LOCALE_RESOURCES)" > $(JDK_OUTPUTDIR)/gensrc/_the.locale_resources
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   131
	$(SED) $(SED_NONENARGS) $< > $@
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   132
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   133
GENSRC_LOCALEDATAMETAINFO := $(JDK_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/EnLocaleDataMetaInfo.java \
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   134
    $(JDK_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonEnLocaleDataMetaInfo.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   135
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   136
################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   137
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   138
GENSRC_CRBC_DST := $(JDK_OUTPUTDIR)/gensrc/java.base/sun/util/CoreResourceBundleControl.java
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20549
diff changeset
   139
GENSRC_CRBC_CMD := $(JDK_TOPDIR)/make/scripts/localelist.sh
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   140
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   141
JRE_NONEXIST_LOCALES := en en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR sv_SE zh
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   142
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   143
$(GENSRC_CRBC_DST): $(JDK_TOPDIR)/src/java.base/share/classes/sun/util/CoreResourceBundleControl-XLocales.java.template \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
   144
    $(GENSRC_CRBC_CMD)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   145
	$(MKDIR) -p $(@D)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
   146
	NAWK="$(NAWK)" SED="$(SED)" $(SH) $(GENSRC_CRBC_CMD) "$(JRE_NONEXIST_LOCALES)" $< $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   147
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   148
GENSRC_LOCALEDATAMETAINFO += $(GENSRC_CRBC_DST)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   149
GENSRC_JAVA_BASE += $(GENSRC_LOCALEDATAMETAINFO)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   150
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   151
################################################################################