diff --git a/playback/player/gtk/meson.build b/playback/player/gtk/meson.build index d00b7fac53..f7a741966e 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