summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-11-24 16:58:01 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-11-24 16:58:01 -0500
commitc9e755d79e84b7e5436df9cbb45b8a878f7df476 (patch)
tree358bf4ace5eb4d2e446b2db38257abbcf0f81e08 /tests
parentd8ee5a0c31db1db14f6d4b22597cd7266b911abb (diff)
meson: Build gl/sdl examples
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/gl/meson.build7
-rw-r--r--tests/examples/gl/sdl/meson.build16
-rw-r--r--tests/examples/meson.build2
3 files changed, 24 insertions, 1 deletions
diff --git a/tests/examples/gl/meson.build b/tests/examples/gl/meson.build
new file mode 100644
index 000000000..a1f4889fa
--- /dev/null
+++ b/tests/examples/gl/meson.build
@@ -0,0 +1,7 @@
+# FIXME - Add other missing examples!
+#subdir('clutter')
+#subdir('cocoa')
+#subdir('generic')
+#subdir('gtk')
+#subdir('qt')
+subdir('sdl')
diff --git a/tests/examples/gl/sdl/meson.build b/tests/examples/gl/sdl/meson.build
new file mode 100644
index 000000000..8285f87f1
--- /dev/null
+++ b/tests/examples/gl/sdl/meson.build
@@ -0,0 +1,16 @@
+sdl_dep = dependency('sdl', version : '>=1.2.0', required : false)
+if sdl_dep.found() and build_gstgl
+ executable('sdlshare',
+ 'sdlshare.c',
+ install: false,
+ dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
+ c_args : ['-DGST_USE_UNSTABLE_API', ],
+ )
+
+ executable('sdlshare2',
+ 'sdlshare2.c',
+ install: false,
+ dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
+ c_args : ['-DGST_USE_UNSTABLE_API', ],
+)
+endif
diff --git a/tests/examples/meson.build b/tests/examples/meson.build
index 4c6e83b62..838624807 100644
--- a/tests/examples/meson.build
+++ b/tests/examples/meson.build
@@ -5,7 +5,7 @@
#subdir('codecparsers')
subdir('compositor')
#subdir('directfb')
-#subdir('gl')
+subdir('gl')
#subdir('gtk')
#subdir('ipcpipeline')
subdir('mpegts')