176 $(wildcard \ |
176 $(wildcard \ |
177 $(foreach sub, $(SRC_SUBDIRS), \ |
177 $(foreach sub, $(SRC_SUBDIRS), \ |
178 $(patsubst %,%/$(strip $1)/$(sub)/module-info.java, $(TOP_SRC_DIRS))) \ |
178 $(patsubst %,%/$(strip $1)/$(sub)/module-info.java, $(TOP_SRC_DIRS))) \ |
179 $(patsubst %,%/$(strip $1)/module-info.java, $(IMPORT_MODULES_SRC))) |
179 $(patsubst %,%/$(strip $1)/module-info.java, $(IMPORT_MODULES_SRC))) |
180 |
180 |
|
181 # Find module-info.java files in the specific source dir |
|
182 # Param 1 - Src dir to find module-info.java files in |
|
183 FindModuleInfosForSrcDir = \ |
|
184 $(wildcard \ |
|
185 $(foreach sub, $(SRC_SUBDIRS), \ |
|
186 $(patsubst %,%/*/$(sub)/module-info.java, $(strip $1)) \ |
|
187 ) \ |
|
188 $(patsubst %,%/*/module-info.java, $(strip $1)) \ |
|
189 ) |
|
190 |
181 # Extract the module names from the paths of module-info.java files. The |
191 # Extract the module names from the paths of module-info.java files. The |
182 # position of the module directory differs depending on if this is an imported |
192 # position of the module directory differs depending on if this is an imported |
183 # src dir or not. |
193 # src dir or not. |
184 GetModuleNameFromModuleInfo = \ |
194 GetModuleNameFromModuleInfo = \ |
185 $(strip $(foreach mi, $1, \ |
195 $(strip $(foreach mi, $1, \ |
190 # Find all modules by looking for module-info.java files and looking at parent |
200 # Find all modules by looking for module-info.java files and looking at parent |
191 # directories. |
201 # directories. |
192 FindAllModules = \ |
202 FindAllModules = \ |
193 $(sort $(filter-out $(MODULES_FILTER), \ |
203 $(sort $(filter-out $(MODULES_FILTER), \ |
194 $(call GetModuleNameFromModuleInfo, $(MODULE_INFOS)))) |
204 $(call GetModuleNameFromModuleInfo, $(MODULE_INFOS)))) |
|
205 |
|
206 # Find all modules in a specific src dir |
|
207 # Param 1 - Src dir to find modules in |
|
208 FindModulesForSrcDir = \ |
|
209 $(sort $(filter-out $(MODULES_FILTER), \ |
|
210 $(call GetModuleNameFromModuleInfo, $(call FindModuleInfosForSrcDir, $1)) \ |
|
211 )) |
195 |
212 |
196 FindImportedModules = \ |
213 FindImportedModules = \ |
197 $(filter-out $(MODULES_FILTER), \ |
214 $(filter-out $(MODULES_FILTER), \ |
198 $(if $(IMPORT_MODULES_CLASSES), $(notdir $(wildcard $(IMPORT_MODULES_CLASSES)/*)))) |
215 $(if $(IMPORT_MODULES_CLASSES), $(notdir $(wildcard $(IMPORT_MODULES_CLASSES)/*)))) |
199 |
216 |