@@ -84,6 +84,7 @@ foreach L : LD
8484 examples = L.get(' examples' , empty_dict)
8585 geo_build = L.get(' geo_build' , empty_dict)
8686 this_deps = L.get(' dependencies' , [])
87+ this_internal_libs = L.get(' internal_dependencies' , [])
8788 plugins = L.get(' plugins' , empty_dict)
8889 additional_includes = L.get(' additional_includes' , ['' ])
8990 moc_headers = L.get(' moc_headers' , ['' ])
@@ -111,7 +112,7 @@ foreach L : LD
111112 )
112113 if not all_libs.contains(this_library)
113114 all_libs += this_library
114- lib_target_maps += {this_lib_name : this_library}
115+ lib_target_maps += { this_lib_name : this_library }
115116 endif
116117 endif
117118
@@ -122,31 +123,23 @@ foreach L : LD
122123
123124 if plugins != empty_dict
124125 foreach name, sources : plugins
125- # Link plugins only against the current module library (when present),
126- # not against the entire cumulative all_libs closure.
127- plugin_link_with = []
126+ this_library_link_with = []
128127 if not sources.contains('' )
129- plugin_link_with = [this_library]
130- endif
131- if lib_target_maps.has_key(' gtouchable' )
132- plugin_link_with += [lib_target_maps[' gtouchable' ]]
133- endif
134- if lib_target_maps.has_key(' gdata' )
135- plugin_link_with += [lib_target_maps[' gdata' ]]
136- endif
137- if lib_target_maps.has_key(' gtranslationTable' )
138- plugin_link_with += [lib_target_maps[' gtranslationTable' ]]
139- endif
140- if lib_target_maps.has_key(' ghit' )
141- plugin_link_with += [lib_target_maps[' ghit' ]]
128+ this_library_link_with = [this_library]
142129 endif
130+ foreach this_link_with : this_internal_libs
131+ if lib_target_maps.has_key(this_link_with)
132+ this_library_link_with += [lib_target_maps[this_link_with]]
133+ endif
134+ endforeach
135+
143136 shared_library (
144137 name,
145138 sources[0 ],
146139 install : sources[1 ],
147140 dependencies : [this_deps, zlib_dep],
148141 include_directories : all_includes + this_lib_name + additional_includes,
149- link_with : plugin_link_with ,
142+ link_with : this_library_link_with ,
150143 name_suffix : ' gplugin' ,
151144 name_prefix : '' ,
152145 # for shared modules, the static libraries they link must be PIC.
@@ -174,8 +167,8 @@ foreach L : LD
174167 python_exe,
175168 args : [geo_python_script],
176169 workdir : examples_dir,
177- is_parallel : false ,
178- env : test_env,
170+ is_parallel : false ,
171+ env : test_env,
179172 priority : 20 )
180173 endforeach
181174 endif
@@ -203,7 +196,7 @@ foreach L : LD
203196 exe,
204197 env : project_test_env,
205198 args : arguments,
206- is_parallel : false ,
199+ is_parallel : false ,
207200 priority : - 20 )
208201 endforeach
209202 endif
@@ -286,9 +279,9 @@ foreach opt_dict : test_options
286279 gemc,
287280 args : test_arguments + gemc_test_sqlite,
288281 # suite : 'gemc',
289- is_parallel : false ,
290- timeout : 60 , # adjust as needed
291- priority : - 20
282+ is_parallel : false ,
283+ timeout : 60 , # adjust as needed
284+ priority : - 20
292285 )
293286 endforeach
294287endforeach
0 commit comments