mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 15:38:53 +00:00
meson: tools: generate the targets dynamically
The three targets are the same except for input and output files, use a loop and generate them dynamically. https://bugzilla.gnome.org/show_bug.cgi?id=773917
This commit is contained in:
parent
ef3a60793b
commit
4eb64cd276
1 changed files with 12 additions and 21 deletions
|
@ -1,23 +1,14 @@
|
||||||
executable('gst-inspect-1.0',
|
tools = [ 'gst-inspect', 'gst-launch','gst-typefind' ]
|
||||||
'gst-inspect.c',
|
|
||||||
install: true,
|
|
||||||
dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep],
|
|
||||||
link_with: [printf_lib],
|
|
||||||
c_args: gst_c_args,
|
|
||||||
)
|
|
||||||
|
|
||||||
executable('gst-launch-1.0',
|
foreach tool : tools
|
||||||
'gst-launch.c',
|
exe_name = '@0@-@1@'.format(tool, apiversion)
|
||||||
install: true,
|
src_file = '@0@.c'.format(tool)
|
||||||
dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep],
|
|
||||||
link_with: [printf_lib],
|
|
||||||
c_args: gst_c_args,
|
|
||||||
)
|
|
||||||
|
|
||||||
executable('gst-typefind-1.0',
|
executable(exe_name,
|
||||||
'gst-typefind.c',
|
src_file,
|
||||||
install: true,
|
install: true,
|
||||||
dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep],
|
dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep],
|
||||||
link_with: [printf_lib],
|
link_with: [printf_lib],
|
||||||
c_args: gst_c_args,
|
c_args: gst_c_args,
|
||||||
)
|
)
|
||||||
|
endforeach
|
||||||
|
|
Loading…
Reference in a new issue