summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-01-27 01:03:52 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-08-31 00:04:43 +0100
commita353e5074790c92858cf443fa80d35f4e8cb6468 (patch)
tree18f2bc37a23a3b2360d5995f66635a413ac0f0c6 /examples
parente9cab27226ea1cdb4c65726fefccd591ecc7f0a9 (diff)
Add support for Meson as alternative/parallel build system
https://github.com/mesonbuild/meson
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/meson.build b/examples/meson.build
new file mode 100644
index 0000000..0a50447
--- /dev/null
+++ b/examples/meson.build
@@ -0,0 +1,35 @@
+examples = [
+ 'test-appsrc',
+ 'test-auth',
+ 'test-launch',
+ 'test-mp4',
+ 'test-multicast2',
+ 'test-multicast',
+ 'test-netclock',
+ 'test-netclock-client',
+ 'test-ogg',
+ 'test-readme',
+ 'test-record-auth',
+ 'test-record',
+ 'test-sdp',
+ 'test-uri',
+ 'test-video',
+ 'test-video-rtx',
+]
+
+foreach example : examples
+ executable(example, '@0@.c'.format(example),
+ c_args : rtspserver_args,
+ include_directories : rtspserver_incs,
+ dependencies : [glib_dep, gst_dep, gstnet_dep, gst_rtsp_server_dep],
+ install: false)
+endforeach
+
+cgroup_dep = dependency('libcgroup', version : '>= 0.26', required : false)
+if cgroup_dep.found()
+ executable('test-cgroups', 'test-cgroups.c',
+ c_args : rtspserver_args,
+ include_directories : rtspserver_incs,
+ dependencies : [glib_dep, gst_dep, gstnet_dep, gst_rtsp_server_dep, cgroup_dep],
+ install: false)
+endif