summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-06-26 00:22:05 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-06-26 00:22:56 +0100
commit57a6e2ffd4ebf67f84ca2e7bac18999139ae738a (patch)
tree7323c0624ca706e89d900131156252fac97221f2 /tests
parent949902f1e25c7a85666e435f4f5d71b4c3a3812a (diff)
meson: build tests/icles/
https://bugzilla.gnome.org/show_bug.cgi?id=784134
Diffstat (limited to 'tests')
-rw-r--r--tests/icles/meson.build56
-rw-r--r--tests/meson.build1
2 files changed, 57 insertions, 0 deletions
diff --git a/tests/icles/meson.build b/tests/icles/meson.build
new file mode 100644
index 000000000..1615c9688
--- /dev/null
+++ b/tests/icles/meson.build
@@ -0,0 +1,56 @@
+gtk_dep = dependency('gtk+-3.0', version : '>= 3.0.0', required : false)
+if gtk_dep.found()
+ executable('gdkpixbufsink-test', 'gdkpixbufsink-test.c',
+ dependencies: [gst_dep, gtk_dep],
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+
+ executable('gdkpixbufoverlay-test', 'gdkpixbufoverlay-test.c',
+ dependencies: [gstvideo_dep, gst_dep, gtk_dep, libm],
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+endif
+
+if cdata.has('HAVE_GST_V4L2')
+ executable('v4l2src-test', 'v4l2src-test.c',
+ dependencies: [gstvideo_dep, gst_dep, libm],
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+endif
+
+if get_variable('have_oss4', false)
+ executable('test-oss4', 'test-oss4.c',
+ dependencies: gst_dep,
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+endif
+
+if get_variable('x11_dep', dependency('', required: false)).found()
+ executable('ximagesrc-test', 'ximagesrc-test.c',
+ dependencies: [gst_dep, libm],
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+endif
+
+
+tests = [
+ ['equalizer-test'],
+ ['test-accurate-seek', gstapp_dep],
+ ['test-segment-seeks'],
+ ['videocrop-test'],
+ ['videobox-test'],
+ ['videocrop2-test'],
+]
+
+foreach t : tests
+ executable(t.get(0), t.get(0) + '.c',
+ dependencies: [gst_dep, libm] + [t.get(1, [])],
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ install: false)
+endforeach
diff --git a/tests/meson.build b/tests/meson.build
index 2d750d71c..95cdc4d70 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -3,4 +3,5 @@ if host_machine.system() != 'windows'
subdir('check')
endif
+subdir('icles')
# TODO: Implement examples etc