121 ################################################################################ |
121 ################################################################################ |
122 |
122 |
123 $(GENSRC_DIR)/module-info.java.extra: $(GENSRC_DIR)/_gensrc_proc_done |
123 $(GENSRC_DIR)/module-info.java.extra: $(GENSRC_DIR)/_gensrc_proc_done |
124 ($(CD) $(GENSRC_DIR)/META-INF/providers && \ |
124 ($(CD) $(GENSRC_DIR)/META-INF/providers && \ |
125 p=""; \ |
125 p=""; \ |
|
126 impl=""; \ |
126 for i in $$($(LS) | $(SORT)); do \ |
127 for i in $$($(LS) | $(SORT)); do \ |
127 c=$$($(CAT) $$i | $(TR) -d '\n\r'); \ |
128 c=$$($(CAT) $$i | $(TR) -d '\n\r'); \ |
128 if test x$$p != x$$c; then \ |
129 if test x$$p != x$$c; then \ |
129 if test x$$p != x; then \ |
130 if test x$$p != x; then \ |
130 $(ECHO) " ;" >> $@; \ |
131 $(ECHO) " ;" >> $@; \ |
131 fi; \ |
132 fi; \ |
132 $(ECHO) "provides $$c with" >> $@; \ |
133 $(ECHO) "provides $$c with" >> $@; \ |
133 p=$$c; \ |
134 p=$$c; \ |
|
135 impl=""; \ |
134 fi; \ |
136 fi; \ |
135 $(ECHO) " $$i," >> $@; \ |
137 if test x$$impl != x; then \ |
|
138 $(ECHO) " , $$i" >> $@; \ |
|
139 else \ |
|
140 $(ECHO) " $$i" >> $@; \ |
|
141 fi; \ |
|
142 impl=$$i; \ |
136 done); \ |
143 done); \ |
137 $(ECHO) " ;" >> $@; \ |
144 $(ECHO) " ;" >> $@; \ |
138 $(ECHO) "uses org.graalvm.compiler.options.OptionDescriptors;" >> $@; \ |
145 $(ECHO) "uses org.graalvm.compiler.options.OptionDescriptors;" >> $@; \ |
139 $(ECHO) "provides org.graalvm.compiler.options.OptionDescriptors with" >> $@; \ |
146 $(ECHO) "provides org.graalvm.compiler.options.OptionDescriptors with" >> $@; \ |
|
147 impl=""; \ |
140 for i in $$($(FIND) $(GENSRC_DIR) -name '*_OptionDescriptors.java' | $(SORT)); do \ |
148 for i in $$($(FIND) $(GENSRC_DIR) -name '*_OptionDescriptors.java' | $(SORT)); do \ |
141 c=$$($(ECHO) $$i | $(SED) 's:.*/jdk\.internal\.vm\.compiler/\(.*\)\.java:\1:' | $(TR) '/' '.'); \ |
149 c=$$($(ECHO) $$i | $(SED) 's:.*/jdk\.internal\.vm\.compiler/\(.*\)\.java:\1:' | $(TR) '/' '.'); \ |
142 $(ECHO) " $$c," >> $@; \ |
150 if test x$$impl != x; then \ |
|
151 $(ECHO) " , $$c" >> $@; \ |
|
152 else \ |
|
153 $(ECHO) " $$c" >> $@; \ |
|
154 fi; \ |
|
155 impl=$$c; \ |
143 done; \ |
156 done; \ |
144 $(ECHO) " ;" >> $@; |
157 $(ECHO) " ;" >> $@; |
145 |
158 |
146 TARGETS += $(GENSRC_DIR)/module-info.java.extra |
159 TARGETS += $(GENSRC_DIR)/module-info.java.extra |
147 |
160 |