summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-09-10 12:59:07 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-09-10 08:34:43 +0000
commit3f54c90b7a180f83ab9f525ea4036d58bb477dd5 (patch)
treed6cdc3589c93fc585912b111d8ffaffef4351571
parent87bf1ac9cd7386c918acc4f8335b1548c1cfac11 (diff)
meson: gtk player example is optional
-rw-r--r--playback/player/gtk/meson.build25
1 files changed, 13 insertions, 12 deletions
diff --git a/playback/player/gtk/meson.build b/playback/player/gtk/meson.build
index d00b7fa..f7a7419 100644
--- a/playback/player/gtk/meson.build
+++ b/playback/player/gtk/meson.build
@@ -1,16 +1,17 @@
-gtk_dep = dependency('gtk+-3.0')
+gtk_dep = dependency('gtk+-3.0', required: false)
x11_dep = dependency('x11', required: false)
-gnome = import('gnome')
+if gtk_dep.found()
+ gnome = import('gnome')
-gtk_play_resources = gnome.compile_resources('gtk-play-resources', 'resources/gresources.xml',
- source_dir : './resources',
- c_name : 'gtk_play')
-
-executable('gtk-play',
- sources: ['gtk-play.c',
- gtk_play_resources,
- 'gtk-video-renderer.h',
- 'gtk-video-renderer.c'],
- dependencies : [glib_dep, gobject_dep, gmodule_dep, gst_dep, gsttag_dep, gstplayer_dep, gtk_dep, x11_dep])
+ gtk_play_resources = gnome.compile_resources('gtk-play-resources', 'resources/gresources.xml',
+ source_dir : './resources',
+ c_name : 'gtk_play')
+ executable('gtk-play',
+ sources: ['gtk-play.c',
+ gtk_play_resources,
+ 'gtk-video-renderer.h',
+ 'gtk-video-renderer.c'],
+ dependencies : [glib_dep, gobject_dep, gmodule_dep, gst_dep, gsttag_dep, gstplayer_dep, gtk_dep, x11_dep])
+endif