examples: Build waylandsink example

This commit is contained in:
Nicolas Dufresne 2018-06-06 14:31:43 -04:00
parent e1133bbbfe
commit 2927a1d1ec
2 changed files with 14 additions and 1 deletions

View file

@ -10,7 +10,7 @@ subdir('mpegts')
#subdir('mxf')
#subdir('opencv')
#subdir('uvch264')
#subdir('waylandsink')
subdir('waylandsink')
subdir('webrtc')
executable('playout',

View file

@ -0,0 +1,13 @@
gtk_dep = dependency('gtk+-3.0', required : false)
gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : false)
if use_wayland and gtk_dep.found() and gtk_wayland_dep.found()
executable('waylandsink',
'main.c',
extra_files: ['window.ui'],
install: false,
include_directories : [configinc],
dependencies : [gtk_dep, gtk_wayland_dep, gst_dep, gstwayland_dep],
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API=1'],
)
endif