meson: Build gl/gtk examples

This commit is contained in:
Nicolas Dufresne 2018-07-20 22:07:04 -04:00
parent 4fa850e3e6
commit 786c6f4d36
7 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,5 @@
executable('3dvideo', ['main.cpp', 'mviewwidget.c'],
cpp_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep, gstgl_dep, video_dep, x11_dep],
install: false)

View file

@ -0,0 +1,6 @@
executable('filternovideooverlay', 'main.cpp',
cpp_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep],
install: false)

View file

@ -0,0 +1,6 @@
executable('filtervideooverlay', 'main.cpp',
cpp_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep, video_dep, x11_dep],
install: false)

View file

@ -0,0 +1,11 @@
executable('fxtest', 'fxtest.c',
c_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep, video_dep, x11_dep],
install: false)
executable('pixbufdrop', 'pixbufdrop.c',
c_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep, video_dep, x11_dep],
install: false)

View file

@ -0,0 +1,22 @@
extra_args = []
if cc.has_argument ('-Wno-parentheses')
extra_args += '-Wno-parentheses'
endif
gstgtkhelper = static_library ('gstgtkhelper',
['gstgtk.c'],
c_args : gst_plugins_base_args,
include_directories : [configinc, libsinc],
dependencies : [gst_base_dep, gtk_dep],
install : false)
gstgtkhelper_dep = declare_dependency(link_with: gstgtkhelper,
compile_args : extra_args,
include_directories : include_directories('.'),
dependencies : [gst_base_dep, gtk_dep])
subdir('filternovideooverlay')
subdir('filtervideooverlay')
subdir('fxtest')
subdir('switchvideooverlay')
subdir('3dvideo')

View file

@ -0,0 +1,5 @@
executable('switchvideooverlay', 'main.cpp',
cpp_args : [gst_plugins_base_args],
include_directories: [configinc, libsinc],
dependencies : [gstgtkhelper_dep, gstgl_dep, video_dep, x11_dep],
install: false)

View file

@ -2,6 +2,6 @@
#subdir('clutter')
#subdir('cocoa')
#subdir('generic')
#subdir('gtk')
subdir('gtk', is_found : gtk_dep)
#subdir('qt')
subdir('sdl')