Commit 347d7328 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: build more examples

See #576
parent 4de06ea1
executable('test-audiomixmatrix', 'test-audiomixmatrix.c',
include_directories : [configinc],
dependencies : gst_dep,
c_args : gst_plugins_bad_args,
install: false)
if ['darwin', 'ios'].contains(host_system)
avfoundation_dep = dependency('appleframeworks', modules : ['AVFoundation'], required : get_option('examples'))
quartzcore_dep = dependency('appleframeworks', modules : ['QuartzCore'], required : get_option('examples'))
corefoundation_dep = dependency('appleframeworks', modules : ['CoreFoundation'], required : get_option('examples'))
cocoa_dep = dependency('appleframeworks', modules : ['Cocoa'], required : get_option('examples'))
if quartzcore_dep.found() and avfoundation_dep.found() and corefoundation_dep.found() and cocoa_dep.found()
executable('avsamplesink', 'main.m',
include_directories : [configinc],
dependencies : [gst_dep, avfoundation_dep, quartzcore_dep, corefoundation_dep, cocoa_dep],
c_args : gst_plugins_bad_args,
install: false)
endif
endif
gtk_dep = dependency('gtk+-3.0', required : get_option('examples'))
gdk_x11_dep = dependency('gdk-x11-3.0', required : get_option('examples'))
if gtk_dep.found() and gdk_x11_dep.found()
camera2_args = [
'-DGST_USE_UNSTABLE_API',
'-DCAMERA_APPS_UIDIR="@0@"'.format(meson.current_source_dir()),
cc.get_supported_link_arguments('-fvisibility=default'),
]
gmodule_export_dep = dependency('gmodule-export-2.0')
executable('gst-camera2', 'gst-camera2.c',
include_directories : [configinc],
dependencies : [gstphotography_dep, gtk_dep, gdk_x11_dep, gst_dep, gstvideo_dep, gstpbutils_dep, gmodule_export_dep],
c_args : gst_plugins_bad_args + camera2_args,
install: false)
endif
x11_dep = dependency('x11', required : get_option('examples'))
if x11_dep.found()
executable('gst-camerabin2-test', 'gst-camerabin2-test.c',
include_directories : [configinc],
dependencies : [gstphotography_dep, x11_dep, gst_dep, gstvideo_dep, gstpbutils_dep],
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
install: false)
endif
executable('parse-jpeg', 'parse-jpeg.c',
include_directories : [configinc],
dependencies : [gstcodecparsers_dep, gst_dep],
c_args : gst_plugins_bad_args,
install: false)
executable('parse-vp8', 'parse-vp8.c',
include_directories : [configinc],
dependencies : [gstcodecparsers_dep, gst_dep],
c_args : gst_plugins_bad_args,
install: false)
if directfb_dep.found()
executable('gstdfb', 'gstdfb.c',
include_directories : [configinc],
dependencies : [gst_dep, directfb_dep, libm],
c_args : gst_plugins_bad_args,
install: false)
endif
# FIXME - Add other missing examples!
#subdir('audiomixmatrix')
#subdir('avsamplesink')
#subdir('camerabin2')
#subdir('codecparsers')
subdir('audiomixmatrix')
subdir('avsamplesink')
subdir('camerabin2')
subdir('codecparsers')
subdir('compositor')
#subdir('directfb')
subdir('directfb')
#subdir('ipcpipeline')
subdir('mpegts')
#subdir('mxf')
subdir('mxf')
#subdir('opencv')
#subdir('uvch264')
subdir('uvch264')
subdir('waylandsink')
subdir('webrtc')
......
if gtk_dep.found()
executable('mxfdemux-structure', 'mxfdemux-structure.c',
include_directories : [configinc],
dependencies: [gst_dep, gtk_dep],
c_args : gst_plugins_bad_args,
install: false)
endif
if gtk_dep.found() and gdk_x11_dep.found()
test_uvch264_args = [
'-DGST_USE_UNSTABLE_API',
cc.get_supported_link_arguments('-fvisibility=default'),
]
gmodule_export_dep = dependency('gmodule-export-2.0')
executable('test-uvch264', 'test-uvch264.c',
include_directories : [configinc],
dependencies : [gtk_dep, gdk_x11_dep, gst_dep, gstvideo_dep, gmodule_export_dep],
c_args : gst_plugins_bad_args + test_uvch264_args,
install: false)
endif
if not get_option('soundtouch').disabled() and soundtouch_dep.found()
executable('pitch-test', 'pitch-test.c',
include_directories: [configinc],
dependencies: [glib_dep, gst_dep, gstcontroller_dep],
install: false)
endif
......@@ -6,4 +6,5 @@ if host_system != 'windows'
endif
if not get_option('examples').disabled()
subdir('examples')
subdir('icles')
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment