48 ifneq (, $(MISSING_RESOURCES)$(NEW_RESOURCES))
49 # There is a difference in the number of supported resources. Trigger a regeneration.
50 $(shell $(RM) $(JDK_OUTPUTDIR)/gensrc/sun/util/locale/provider/LocaleDataMetaInfo.java)
51 endif
52
53 # The EN locales
54 EN_LOCALES := en%
55
56 # Locales that don't have any resource files should be included here.
57 ALL_NON_EN_LOCALES := ja-JP-JP nb-NO nn-NO th-TH-TH
58
59 SED_ARGS := -e 's|$(HASH)warn This file is preprocessed before being compiled|// -- This file was mechanically generated: Do not edit! -- //|g'
60
61 # This macro creates a sed expression that substitues for example:
62 # #FormatData_ENLocales# with: en% locales.
63 define CaptureLocale
64 $1_LOCALES := $$(subst _,-,$$(filter-out $1, $$(subst $1_,,$$(filter $1_%, $(LOCALE_RESOURCES)))))
65 $1_EN_LOCALES := $$(filter $(EN_LOCALES), $$($1_LOCALES))
66 $1_NON_EN_LOCALES := $$(filter-out $(EN_LOCALES), $$($1_LOCALES))
67
68 ALL_EN_LOCALES += $$($1_EN_LOCALES)
69 ALL_NON_EN_LOCALES += $$($1_NON_EN_LOCALES)
70
71 # Don't sed in a space if there are no locales.
72 SED_ARGS += -e 's/$$(HASH)$1_ENLocales$$(HASH)/$$(if $$($1_EN_LOCALES),$$(SPACE)$$($1_EN_LOCALES),)/g'
73 SED_ARGS += -e 's/$$(HASH)$1_NonENLocales$$(HASH)/$$(if $$($1_NON_EN_LOCALES),$$(SPACE)$$($1_NON_EN_LOCALES),)/g'
74 endef
75
76 #sun.text.resources.FormatData
77 $(eval $(call CaptureLocale,FormatData))
78
79 #sun.text.resources.CollationData
80 $(eval $(call CaptureLocale,CollationData))
81
82 #sun.util.resources.TimeZoneNames
83 $(eval $(call CaptureLocale,TimeZoneNames))
84
85 #sun.util.resources.LocaleNames
86 $(eval $(call CaptureLocale,LocaleNames))
87
|
48 ifneq (, $(MISSING_RESOURCES)$(NEW_RESOURCES))
49 # There is a difference in the number of supported resources. Trigger a regeneration.
50 $(shell $(RM) $(JDK_OUTPUTDIR)/gensrc/sun/util/locale/provider/LocaleDataMetaInfo.java)
51 endif
52
53 # The EN locales
54 EN_LOCALES := en%
55
56 # Locales that don't have any resource files should be included here.
57 ALL_NON_EN_LOCALES := ja-JP-JP nb-NO nn-NO th-TH-TH
58
59 SED_ARGS := -e 's|$(HASH)warn This file is preprocessed before being compiled|// -- This file was mechanically generated: Do not edit! -- //|g'
60
61 # This macro creates a sed expression that substitues for example:
62 # #FormatData_ENLocales# with: en% locales.
63 define CaptureLocale
64 $1_LOCALES := $$(subst _,-,$$(filter-out $1, $$(subst $1_,,$$(filter $1_%, $(LOCALE_RESOURCES)))))
65 $1_EN_LOCALES := $$(filter $(EN_LOCALES), $$($1_LOCALES))
66 $1_NON_EN_LOCALES := $$(filter-out $(EN_LOCALES), $$($1_LOCALES))
67
68 # Special handling for Chinese locales to include implicit scripts
69 $1_NON_EN_LOCALES := $$(subst zh-CN,zh-CN$$(SPACE)zh-Hans-CN, $$($1_NON_EN_LOCALES))
70 $1_NON_EN_LOCALES := $$(subst zh-SG,zh-SG$$(SPACE)zh-Hans-SG, $$($1_NON_EN_LOCALES))
71 $1_NON_EN_LOCALES := $$(subst zh-HK,zh-HK$$(SPACE)zh-Hant-HK, $$($1_NON_EN_LOCALES))
72 $1_NON_EN_LOCALES := $$(subst zh-MO,zh-MO$$(SPACE)zh-Hant-MO, $$($1_NON_EN_LOCALES))
73 $1_NON_EN_LOCALES := $$(subst zh-TW,zh-TW$$(SPACE)zh-Hant-TW, $$($1_NON_EN_LOCALES))
74
75 ALL_EN_LOCALES += $$($1_EN_LOCALES)
76 ALL_NON_EN_LOCALES += $$($1_NON_EN_LOCALES)
77
78 # Don't sed in a space if there are no locales.
79 SED_ARGS += -e 's/$$(HASH)$1_ENLocales$$(HASH)/$$(if $$($1_EN_LOCALES),$$(SPACE)$$($1_EN_LOCALES),)/g'
80 SED_ARGS += -e 's/$$(HASH)$1_NonENLocales$$(HASH)/$$(if $$($1_NON_EN_LOCALES),$$(SPACE)$$($1_NON_EN_LOCALES),)/g'
81 endef
82
83 #sun.text.resources.FormatData
84 $(eval $(call CaptureLocale,FormatData))
85
86 #sun.text.resources.CollationData
87 $(eval $(call CaptureLocale,CollationData))
88
89 #sun.util.resources.TimeZoneNames
90 $(eval $(call CaptureLocale,TimeZoneNames))
91
92 #sun.util.resources.LocaleNames
93 $(eval $(call CaptureLocale,LocaleNames))
94
|