diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-11-26 00:58:16 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-11-29 12:29:50 +0000 |
commit | 2b8659a3efaa7d1efe7a5c4ce26707e8df8de89d (patch) | |
tree | 74e2d90061ccecb3ee3249eb928a38c29695c602 /tests | |
parent | 4f935e1e7f59062afe01e1113db1703e6194dc28 (diff) | |
download | gstreamer-plugins-bad-2b8659a3efaa7d1efe7a5c4ce26707e8df8de89d.tar.gz |
meson: build opencv and ipcpipeline examples
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/576
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/ipcpipeline/meson.build | 15 | ||||
-rw-r--r-- | tests/examples/meson.build | 5 | ||||
-rw-r--r-- | tests/examples/opencv/meson.build | 13 |
3 files changed, 30 insertions, 3 deletions
diff --git a/tests/examples/ipcpipeline/meson.build b/tests/examples/ipcpipeline/meson.build new file mode 100644 index 000000000..03ca19694 --- /dev/null +++ b/tests/examples/ipcpipeline/meson.build @@ -0,0 +1,15 @@ +if get_option('ipcpipeline').disabled() or not build_ipcpipeline + subdir_done() +endif + +executable('ipcpipeline1', 'ipcpipeline1.c', + include_directories: [configinc], + dependencies: [glib_dep, gst_dep, gstbase_dep], + c_args: gst_plugins_bad_args, + install: false) + +executable('ipc-play', 'ipc-play.c', + include_directories: [configinc], + dependencies: [glib_dep, gst_dep, gstbase_dep, gstvideo_dep], + c_args: gst_plugins_bad_args, + install: false) diff --git a/tests/examples/meson.build b/tests/examples/meson.build index 9fb09b110..54a2d38a2 100644 --- a/tests/examples/meson.build +++ b/tests/examples/meson.build @@ -1,14 +1,13 @@ -# FIXME - Add other missing examples! subdir('audiomixmatrix') subdir('avsamplesink') subdir('camerabin2') subdir('codecparsers') subdir('compositor') subdir('directfb') -#subdir('ipcpipeline') +subdir('ipcpipeline') subdir('mpegts') subdir('mxf') -#subdir('opencv') +subdir('opencv', if_found: opencv_dep) subdir('uvch264') subdir('waylandsink') subdir('webrtc') diff --git a/tests/examples/opencv/meson.build b/tests/examples/opencv/meson.build new file mode 100644 index 000000000..e00227c8e --- /dev/null +++ b/tests/examples/opencv/meson.build @@ -0,0 +1,13 @@ +examples = ['gstmotioncells_dynamic_test', 'gsthanddetect_test', 'gstfacedetect_test'] + +foreach example : examples + exe_name = example + src_file = '@0@.c'.format(example) + + executable(exe_name, + src_file, + include_directories: [configinc], + dependencies: [glib_dep, gst_dep, gstbase_dep], + c_args: ['-DHAVE_CONFIG_H=1'], + install: false) +endforeach |