meson: build examples

https://bugzilla.gnome.org/show_bug.cgi?id=784134
This commit is contained in:
Tim-Philipp Müller 2017-06-26 11:09:48 +01:00
parent 4e2095bd5e
commit 9f678898f8
11 changed files with 94 additions and 1 deletions

View file

@ -0,0 +1,12 @@
executable('firfilter-example', 'firfilter-example.c',
dependencies: [gstfft_dep, gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
executable('iirfilter-example', 'iirfilter-example.c',
dependencies: [gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)

View file

@ -0,0 +1,7 @@
if cairo_dep.found()
executable('cairo_overlay', 'cairo_overlay.c',
dependencies: [gstvideo_dep, gst_dep, cairo_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endif

View file

@ -0,0 +1,6 @@
executable('equalizer-demo', 'demo.c',
dependencies: [gst_dep, gtk_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)

View file

@ -0,0 +1,7 @@
if libjack_dep.found()
executable('jack_client', 'jack_client.c',
dependencies: [gst_dep, gtk_dep, libjack_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)
endif

View file

@ -0,0 +1,5 @@
executable('level-example', 'level-example.c',
dependencies: [gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)

View file

@ -0,0 +1,13 @@
subdir('audiofx')
subdir('cairo')
subdir('level')
subdir('rtp')
subdir('shapewipe')
subdir('v4l2')
if gtk_dep.found()
subdir('equalizer')
subdir('jack')
subdir('spectrum')
endif

View file

@ -0,0 +1,16 @@
rtp_progs = [
'server-alsasrc-PCMA',
'client-PCMA',
'client-rtpaux',
'server-rtpaux',
'client-rtpbundle',
'server-rtpbundle',
]
foreach prog : rtp_progs
executable(prog, prog + '.c',
dependencies: [gstrtp_dep, gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endforeach

View file

@ -0,0 +1,5 @@
executable('shapewipe-example', 'shapewipe-example.c',
dependencies: [gstcontroller_dep, gst_dep],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)

View file

@ -0,0 +1,17 @@
executable('demo-audiotest', 'demo-audiotest.c',
dependencies: [gstfft_dep, gst_dep, gtk_dep],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
executable('demo-osssrc', 'demo-osssrc.c',
dependencies: [gst_dep, gtk_dep],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
executable('spectrum-example', 'spectrum-example.c',
dependencies: [gst_dep, gtk_dep],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)

View file

@ -0,0 +1,5 @@
executable('camctrl', 'camctrl.c',
dependencies: [gstcontroller_dep, gst_dep],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)

View file

@ -4,4 +4,4 @@ subdir('check')
endif
subdir('icles')
# TODO: Implement examples etc
subdir('examples')