make/gensrc/GensrcLocaleData.gmk
author jjg
Fri, 22 Nov 2019 16:26:35 -0800
changeset 59232 d4ddf19c2624
parent 54380 e297c7bb6469
permissions -rw-r--r--
8234687: change javap reporting on unknown attributes Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
54380
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
     2
# Copyright (c) 2011, 2019, 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
54380
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    31
LOCALE_FILES := $(call FindFiles, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    32
    $(TOPDIR)/src/$(MODULE)/share/classes/sun/text/resources \
54380
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    33
    $(TOPDIR)/src/$(MODULE)/share/classes/sun/util/resources, \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    34
    FormatData_*.java FormatData_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    35
    CollationData_*.java CollationData_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    36
    TimeZoneNames_*.java TimeZoneNames_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    37
    LocaleNames_*.java LocaleNames_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    38
    CurrencyNames_*.java CurrencyNames_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    39
    CalendarData_*.java CalendarData_*.properties \
e297c7bb6469 8189861: Refactor CacheFind
erikj
parents: 52804
diff changeset
    40
    BreakIteratorInfo_*.java BreakIteratorRules_*.java)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    41
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    42
# Then translate the locale files into for example: FormatData_sv
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    43
LOCALE_RESOURCES := $(sort $(subst .properties,,$(subst .java,,$(notdir $(LOCALE_FILES)))))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    44
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    45
# Include the list of resources found during the previous compile.
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    46
-include $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/_the.locale_resources
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    47
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    48
MISSING_RESOURCES := $(filter-out $(LOCALE_RESOURCES), $(PREV_LOCALE_RESOURCES))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    49
NEW_RESOURCES := $(filter-out $(PREV_LOCALE_RESOURCES), $(LOCALE_RESOURCES))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    50
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    51
ifneq (, $(MISSING_RESOURCES)$(NEW_RESOURCES))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    52
  # There is a difference in the number of supported resources. Trigger a regeneration.
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    53
  ifeq ($(MODULE), java.base)
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    54
    $(shell $(RM) $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/BaseLocaleDataMetaInfo.java \
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    55
        $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/util/cldr/CLDRBaseLocaleDataMetaInfo.java)
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    56
  endif
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    57
  ifeq ($(MODULE), jdk.localedata)
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    58
    $(shell $(RM) $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonBaseLocaleDataMetaInfo.java \
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    59
        $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/cldr/provider/CLDRLocaleDataMetaInfo_jdk_localedata.java)
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
    60
  endif
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    61
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    62
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    63
# The base locales
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    64
BASE_LOCALES := en en-US
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    65
22627
93f110be9439 8030696: Norwegian locales nb_NO and nn_NO should be available locales
naoto
parents: 21805
diff changeset
    66
# Locales that don't have any resource files should be included here.
42930
b878b7b2788e 8167143: CLDR timezone parsing does not work for all locales
rgoel
parents: 41472
diff changeset
    67
ALL_NON_BASE_LOCALES := ja-JP-JP th-TH-TH
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    68
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    69
SED_BASEARGS := -e 's|$(HASH)warn This file is preprocessed before being compiled|// -- This file was mechanically generated: Do not edit! -- //|g'
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    70
SED_NONBASEARGS := $(SED_BASEARGS)
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    71
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    72
# Fill in the languages and package names
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    73
SED_BASEARGS += -e 's/$(HASH)Lang$(HASH)/Base/' \
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    74
    -e 's/$(HASH)Package$(HASH)/sun.util.locale.provider/'
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    75
SED_NONBASEARGS += -e 's/$(HASH)Lang$(HASH)/NonBase/' \
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
    76
    -e 's/$(HASH)Package$(HASH)/sun.util.resources.provider/'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    77
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    78
# This macro creates a sed expression that substitues for example:
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    79
# #FormatData_Locales# with: en-US locales.
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    80
define CaptureLocale
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    81
  $1_LOCALES := $$(subst _,-,$$(filter-out $1, $$(subst $1_,,$$(filter $1_%, $(LOCALE_RESOURCES)))))
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    82
  $1_BASE_LOCALES := $$(filter $(BASE_LOCALES), $$($1_LOCALES))
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    83
  $1_NON_BASE_LOCALES := $$(filter-out $(BASE_LOCALES), $$($1_LOCALES))
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    84
22989
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    85
  # Special handling for Chinese locales to include implicit scripts
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    86
  $1_NON_BASE_LOCALES := $$(subst zh-CN,zh-CN$$(SPACE)zh-Hans-CN, $$($1_NON_BASE_LOCALES))
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    87
  $1_NON_BASE_LOCALES := $$(subst zh-SG,zh-SG$$(SPACE)zh-Hans-SG, $$($1_NON_BASE_LOCALES))
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    88
  $1_NON_BASE_LOCALES := $$(subst zh-HK,zh-HK$$(SPACE)zh-Hant-HK, $$($1_NON_BASE_LOCALES))
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    89
  $1_NON_BASE_LOCALES := $$(subst zh-MO,zh-MO$$(SPACE)zh-Hant-MO, $$($1_NON_BASE_LOCALES))
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    90
  $1_NON_BASE_LOCALES := $$(subst zh-TW,zh-TW$$(SPACE)zh-Hant-TW, $$($1_NON_BASE_LOCALES))
22989
2d6804cfdc0e 8027289: [Windows zh_CN] NumberFormat: Incorrect sequence of loading currency symbol
naoto
parents: 22627
diff changeset
    91
43295
58870c7a62e0 8167273: Calendar.getDisplayNames inconsistent with DateFormatSymbols
rgoel
parents: 42930
diff changeset
    92
# Adding implict locales nb nn-NO and nb-NO
58870c7a62e0 8167273: Calendar.getDisplayNames inconsistent with DateFormatSymbols
rgoel
parents: 42930
diff changeset
    93
  $1_NON_BASE_LOCALES += nb  nn-NO  nb-NO
42930
b878b7b2788e 8167143: CLDR timezone parsing does not work for all locales
rgoel
parents: 41472
diff changeset
    94
  $1_NON_BASE_LOCALES := $$(sort $$($1_NON_BASE_LOCALES))
b878b7b2788e 8167143: CLDR timezone parsing does not work for all locales
rgoel
parents: 41472
diff changeset
    95
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    96
  ALL_BASE_LOCALES += $$($1_BASE_LOCALES)
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
    97
  ALL_NON_BASE_LOCALES += $$($1_NON_BASE_LOCALES)
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
    98
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 19837
diff changeset
    99
  # Don't sed in a space if there are no locales.
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   100
  SED_BASEARGS += -e 's/$$(HASH)$1_Locales$$(HASH)/$$(if $$($1_BASE_LOCALES),$$(SPACE)$$($1_BASE_LOCALES),)/g'
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   101
  SED_NONBASEARGS += -e 's/$$(HASH)$1_Locales$$(HASH)/$$(if $$($1_NON_BASE_LOCALES),$$(SPACE)$$($1_NON_BASE_LOCALES),)/g'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   102
endef
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   103
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   104
#sun.text.resources.FormatData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   105
$(eval $(call CaptureLocale,FormatData))
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.text.resources.CollationData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   108
$(eval $(call CaptureLocale,CollationData))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   109
25996
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   110
#sun.text.resources.BreakIteratorInfo
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   111
$(eval $(call CaptureLocale,BreakIteratorInfo))
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   112
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   113
#sun.text.resources.BreakIteratorRules
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   114
$(eval $(call CaptureLocale,BreakIteratorRules))
4aa9eb909760 8055088: Optimization for locale resources loading isn't working
okutsu
parents: 25859
diff changeset
   115
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   116
#sun.util.resources.TimeZoneNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   117
$(eval $(call CaptureLocale,TimeZoneNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   118
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   119
#sun.util.resources.LocaleNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   120
$(eval $(call CaptureLocale,LocaleNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   121
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   122
#sun.util.resources.CurrencyNames
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   123
$(eval $(call CaptureLocale,CurrencyNames))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   124
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   125
#sun.util.resources.CalendarData
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   126
$(eval $(call CaptureLocale,CalendarData))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   127
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   128
SED_BASEARGS += -e 's/$(HASH)AvailableLocales_Locales$(HASH)/$(sort $(ALL_BASE_LOCALES))/g'
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   129
SED_NONBASEARGS += -e 's/$(HASH)AvailableLocales_Locales$(HASH)/$(sort $(ALL_NON_BASE_LOCALES))/g'
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 12892
diff changeset
   130
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   131
$(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/BaseLocaleDataMetaInfo.java: \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   132
    $(TOPDIR)/src/java.base/share/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
   133
	$(call LogInfo, Creating sun/util/locale/provider/BaseLocaleDataMetaInfo.java from $(words $(LOCALE_RESOURCES)) found resources)
52065
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
   134
	$(call MakeTargetDir)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26632
diff changeset
   135
	$(PRINTF) "PREV_LOCALE_RESOURCES:=$(LOCALE_RESOURCES)" \
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
   136
	    > $(SUPPORT_OUTPUTDIR)/gensrc/java.base/_the.locale_resources
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   137
	$(SED) $(SED_BASEARGS) $< > $@
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   138
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   139
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonBaseLocaleDataMetaInfo.java: \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   140
    $(TOPDIR)/src/java.base/share/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
   141
	$(call LogInfo, Creating sun/util/resources/provider/NonBaseLocaleDataMetaInfo.java from $(words $(LOCALE_RESOURCES)) found resources)
52065
dea8a62cdfc3 8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents: 47217
diff changeset
   142
	$(call MakeTargetDir)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26632
diff changeset
   143
	$(PRINTF) "PREV_LOCALE_RESOURCES:=$(LOCALE_RESOURCES)" \
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 31263
diff changeset
   144
	    > $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/_the.locale_resources
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   145
	$(SED) $(SED_NONBASEARGS) $< > $@
26360
697f70835528 8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents: 26192
diff changeset
   146
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   147
GENSRC_BASELOCALEDATA := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/BaseLocaleDataMetaInfo.java
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 27565
diff changeset
   148
GENSRC_LOCALEDATA := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonBaseLocaleDataMetaInfo.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   149
26632
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents: 26360
diff changeset
   150
GENSRC_JAVA_BASE += $(GENSRC_BASELOCALEDATA)
f87ab7e0bf39 8058509: CLDRLocaleDataMetaInfo should be in jdk.localedata
naoto
parents: 26360
diff changeset
   151
GENSRC_JDK_LOCALEDATA += $(GENSRC_LOCALEDATA)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   152
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23010
diff changeset
   153
################################################################################