1 # If tools are disabled, we still allow building them against gst-full
2 # later, so populate the gst_tools dictionary in any case.
5 tools = ['gst-inspect', 'gst-stats', 'gst-typefind']
11 if host_system == 'windows' and not building_for_uwp
12 winmm_lib = cc.find_library('winmm', required: false)
13 if winmm_lib.found() and cc.has_header('mmsystem.h')
14 extra_launch_dep += [winmm_lib]
15 extra_launch_arg += ['-DHAVE_WINMM']
19 tools += ['gst-launch']
23 exe_name = '@0@-@1@'.format(tool, apiversion)
24 src_file = '@0@.c'.format(tool)
28 if tool == 'gst-launch'
29 extra_deps += extra_launch_dep
30 extra_c_args += extra_launch_arg
33 man_page = files('@0@-1.0.1'.format(tool))
34 if not get_option('tools').disabled()
38 include_directories : [configinc],
39 dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep] + extra_deps,
40 c_args: gst_c_args + extra_c_args + ['-DG_LOG_DOMAIN="@0@"'.format(exe_name)],
48 'files': files(src_file),
49 'deps': [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep] + extra_deps,
50 'extra_c_args': extra_c_args,