2018-08-09 23:08:43 +00:00
|
|
|
tools = ['gst-inspect', 'gst-stats', 'gst-typefind']
|
|
|
|
|
2021-05-11 15:54:43 +00:00
|
|
|
extra_launch_dep = []
|
|
|
|
extra_launch_arg = []
|
|
|
|
|
2018-08-09 23:08:43 +00:00
|
|
|
if gst_parse
|
2021-05-11 15:54:43 +00:00
|
|
|
if host_system == 'windows'
|
|
|
|
winmm_lib = cc.find_library('winmm', required: false)
|
|
|
|
if winmm_lib.found() and cc.has_header('timeapi.h')
|
|
|
|
extra_launch_dep += [winmm_lib]
|
|
|
|
extra_launch_arg += ['-DHAVE_WINMM']
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-08-09 23:08:43 +00:00
|
|
|
tools += ['gst-launch']
|
|
|
|
endif
|
2016-08-12 14:55:17 +00:00
|
|
|
|
2016-11-03 12:34:18 +00:00
|
|
|
foreach tool : tools
|
|
|
|
exe_name = '@0@-@1@'.format(tool, apiversion)
|
|
|
|
src_file = '@0@.c'.format(tool)
|
2021-05-11 15:54:43 +00:00
|
|
|
extra_deps = []
|
|
|
|
extra_c_args = []
|
|
|
|
|
|
|
|
if tool == 'gst-launch'
|
|
|
|
extra_deps += extra_launch_dep
|
|
|
|
extra_c_args += extra_launch_arg
|
|
|
|
endif
|
2016-08-12 14:55:17 +00:00
|
|
|
|
2016-11-03 12:34:18 +00:00
|
|
|
executable(exe_name,
|
|
|
|
src_file,
|
|
|
|
install: true,
|
2017-06-27 13:59:52 +00:00
|
|
|
include_directories : [configinc],
|
2021-05-11 15:54:43 +00:00
|
|
|
dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep] + extra_deps,
|
|
|
|
c_args: gst_c_args + extra_c_args,
|
2016-11-03 12:34:18 +00:00
|
|
|
)
|
2016-11-03 09:30:53 +00:00
|
|
|
|
|
|
|
man_page = '@0@-1.0.1'.format(tool)
|
|
|
|
install_man(man_page)
|
2016-11-03 12:34:18 +00:00
|
|
|
endforeach
|