44 # $4 is a from pattern for translating stripped name from source to target |
44 # $4 is a from pattern for translating stripped name from source to target |
45 # $5 is the to pattern replacing $3 in the target |
45 # $5 is the to pattern replacing $3 in the target |
46 |
46 |
47 # Strip away prefix and suffix, |
47 # Strip away prefix and suffix, |
48 # leaving for example: sun/util/resources/CurrencyNames_sv |
48 # leaving for example: sun/util/resources/CurrencyNames_sv |
49 $1_PROPPATHS:=$$(patsubst $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/classes/%.properties,%,\ |
49 $1_PROPPATHS:=$$(patsubst $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/classes/%.properties,%,\ |
50 $$(patsubst $(JDK_TOPDIR)/src/share/classes/%.properties,%,$2)) |
50 $$(patsubst $(JDK_TOPDIR)/src/share/classes/%.properties,%,$2)) |
51 |
51 |
52 # Apply optional name transformation, example: hz_TW -> hz_HK |
52 # Apply optional name transformation, example: hz_TW -> hz_HK |
53 $(if $4,$1_PROPPATHS:=$$(patsubst $4,$5,$$($1_PROPPATHS))) |
53 $(if $4,$1_PROPPATHS:=$$(patsubst $4,$5,$$($1_PROPPATHS))) |
54 |
54 |
73 # $4 is the to pattern replacing $3 in the target |
73 # $4 is the to pattern replacing $3 in the target |
74 # $5 optional name of extra directory to put properties files in (ex: resources) |
74 # $5 optional name of extra directory to put properties files in (ex: resources) |
75 |
75 |
76 # Strip away prefix and suffix, |
76 # Strip away prefix and suffix, |
77 # leaving for example: sun/util/resources/CurrencyNames_sv |
77 # leaving for example: sun/util/resources/CurrencyNames_sv |
78 $1_PROPPATHS:=$$(patsubst $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/classes/%.properties,%,\ |
78 $1_PROPPATHS:=$$(patsubst $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/classes/%.properties,%,\ |
79 $$(patsubst $(JDK_TOPDIR)/src/share/classes/%.properties,%,$2)) |
79 $$(patsubst $(JDK_TOPDIR)/src/share/classes/%.properties,%,$2)) |
80 |
80 |
81 # Apply optional name transformation, example: hz_TW -> hz_HK |
81 # Apply optional name transformation, example: hz_TW -> hz_HK |
82 $(if $3,$1_PROPPATHS:=$$(patsubst $3,$4,$$($1_PROPPATHS))) |
82 $(if $3,$1_PROPPATHS:=$$(patsubst $3,$4,$$($1_PROPPATHS))) |
83 |
83 |
122 ListResourceBundle,%zh_TW,%zh_HK)) |
122 ListResourceBundle,%zh_TW,%zh_HK)) |
123 #com/sun/imageio/plugins/common |
123 #com/sun/imageio/plugins/common |
124 $(eval $(call add_properties_to_clean,COM_SUN_IMAGEIO,\ |
124 $(eval $(call add_properties_to_clean,COM_SUN_IMAGEIO,\ |
125 $(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/imageio -name "*.properties"))) |
125 $(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/imageio -name "*.properties"))) |
126 #com/sun/java/swing/plaf/gtk/resources |
126 #com/sun/java/swing/plaf/gtk/resources |
127 ifneq ($(PLATFORM), windows) |
127 ifneq ($(OPENJDK_TARGET_OS), windows) |
128 # Only compile GTK resource bundles on Solaris/Linux |
128 # Only compile GTK resource bundles on Solaris/Linux |
129 $(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK,\ |
129 $(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK,\ |
130 $(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources -name "*.properties"),\ |
130 $(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources -name "*.properties"),\ |
131 ListResourceBundle)) |
131 ListResourceBundle)) |
132 $(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK_HK,\ |
132 $(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK_HK,\ |
261 #sun/tools/javac/resources |
261 #sun/tools/javac/resources |
262 # It's unclear if the other localized property files here are supposed to be copied or not |
262 # It's unclear if the other localized property files here are supposed to be copied or not |
263 # but the old build system didn't copy them. |
263 # but the old build system didn't copy them. |
264 $(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\ |
264 $(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\ |
265 $(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/javac/resources -name "javac.properties"))) |
265 $(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/javac/resources -name "javac.properties"))) |
|
266 |
|
267 #sun/tools/jconsole/resources |
|
268 $(eval $(call add_properties_to_clean,SUN_TOOLS_JCONSOLE,\ |
|
269 $(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/jconsole/resources -name "*.properties"))) |
266 |
270 |
267 #sun/tools/serialver |
271 #sun/tools/serialver |
268 $(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\ |
272 $(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\ |
269 $(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/serialver -name "*.properties"),,,resources)) |
273 $(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/serialver -name "*.properties"),,,resources)) |
270 |
274 |