mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
meson: gtk player example is optional
This commit is contained in:
parent
87bf1ac9cd
commit
3f54c90b7a
1 changed files with 13 additions and 12 deletions
|
@ -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',
|
||||
gtk_play_resources = gnome.compile_resources('gtk-play-resources', 'resources/gresources.xml',
|
||||
source_dir : './resources',
|
||||
c_name : 'gtk_play')
|
||||
|
||||
executable('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
|
||||
|
|
Loading…
Reference in a new issue