-foreach custom_subproj: get_option('custom_subprojects').split(',')
- if custom_subproj != ''
- message ('Adding custom subproject ' + custom_subproj)
- subproject(custom_subproj)
- subprojects_names += [custom_subproj]
- endif
-endforeach
+ if not get_option('tools').disabled()
+ foreach tool, data: all_tools
+ exe_name = '@0@-@1@'.format(tool, apiversion)
+ extra_args = data.get('extra_c_args', [])
+ sources = data.get('files')
+ deps = []
+ foreach d : data.get('deps', [])
+ if d not in exposed_deps
+ deps += d
+ endif
+ endforeach
+
+ executable(exe_name,
+ sources,
+ install: true,
+ include_directories : [configinc],
+ dependencies : [gst_full_dep] + deps,
+ c_args: extra_args + gst_c_args + ['-DG_LOG_DOMAIN="@0@"'.format(exe_name)],
+ )
+
+ if data.has_key('man_page')
+ install_man(data.get('man_page'))
+ endif
+
+ endforeach
+ endif
+endif