27 # from resource bundle properties files. |
27 # from resource bundle properties files. |
28 |
28 |
29 ################################################################################ |
29 ################################################################################ |
30 # Helper macro for SetupCopy-zh_HK. |
30 # Helper macro for SetupCopy-zh_HK. |
31 define SetupOneCopy-zh_HK |
31 define SetupOneCopy-zh_HK |
32 $1_$2_TARGET := $$(patsubst $(JDK_TOPDIR)/src/$(MODULE)/share/classes/%, \ |
32 $1_$2_TARGET := $$(patsubst $(TOPDIR)/src/$(MODULE)/share/classes/%, \ |
33 $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/%, \ |
33 $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/%, \ |
34 $$(subst _zh_TW,_zh_HK, $2)) |
34 $$(subst _zh_TW,_zh_HK, $2)) |
35 |
35 |
36 $$($1_$2_TARGET): $2 |
36 $$($1_$2_TARGET): $2 |
37 $(MKDIR) -p $$(@D) |
37 $(MKDIR) -p $$(@D) |
56 # |
56 # |
57 # Remaining parameters are named arguments. These include: |
57 # Remaining parameters are named arguments. These include: |
58 # SRC_DIRS Directories containing properties files to process. |
58 # SRC_DIRS Directories containing properties files to process. |
59 # EXCLUDE Exclude files matching this pattern. |
59 # EXCLUDE Exclude files matching this pattern. |
60 # CLASS The super class for the generated classes. |
60 # CLASS The super class for the generated classes. |
61 # MODULE_PATH_ROOT Module path root, defaults to $(JDK_TOPDIR)/src. |
61 # MODULE_PATH_ROOT Module path root, defaults to $(TOPDIR)/src. |
62 SetupCompileProperties = $(NamedParamsMacroTemplate) |
62 SetupCompileProperties = $(NamedParamsMacroTemplate) |
63 define SetupCompilePropertiesBody |
63 define SetupCompilePropertiesBody |
64 # Set default value unless overridden |
64 # Set default value unless overridden |
65 ifeq ($$($1_MODULE_PATH_ROOT), ) |
65 ifeq ($$($1_MODULE_PATH_ROOT), ) |
66 $1_MODULE_PATH_ROOT := $(JDK_TOPDIR)/src |
66 $1_MODULE_PATH_ROOT := $(TOPDIR)/src |
67 endif |
67 endif |
68 |
68 |
69 # Locate all properties files in the given source dirs. |
69 # Locate all properties files in the given source dirs. |
70 $1_SRC_FILES := $$(filter %.properties, $$(call CacheFind, $$($1_SRC_DIRS))) |
70 $1_SRC_FILES := $$(filter %.properties, $$(call CacheFind, $$($1_SRC_DIRS))) |
71 |
71 |