mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-07 07:05:52 +00:00
meson: build more examples
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/576
This commit is contained in:
parent
4de06ea12c
commit
347d732889
5
tests/examples/audiomixmatrix/meson.build
Normal file
5
tests/examples/audiomixmatrix/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
executable('test-audiomixmatrix', 'test-audiomixmatrix.c',
|
||||||
|
include_directories : [configinc],
|
||||||
|
dependencies : gst_dep,
|
||||||
|
c_args : gst_plugins_bad_args,
|
||||||
|
install: false)
|
14
tests/examples/avsamplesink/meson.build
Normal file
14
tests/examples/avsamplesink/meson.build
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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
|
24
tests/examples/camerabin2/meson.build
Normal file
24
tests/examples/camerabin2/meson.build
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
11
tests/examples/codecparsers/meson.build
Normal file
11
tests/examples/codecparsers/meson.build
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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)
|
7
tests/examples/directfb/meson.build
Normal file
7
tests/examples/directfb/meson.build
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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
|
|
@ -1,15 +1,15 @@
|
||||||
# FIXME - Add other missing examples!
|
# FIXME - Add other missing examples!
|
||||||
#subdir('audiomixmatrix')
|
subdir('audiomixmatrix')
|
||||||
#subdir('avsamplesink')
|
subdir('avsamplesink')
|
||||||
#subdir('camerabin2')
|
subdir('camerabin2')
|
||||||
#subdir('codecparsers')
|
subdir('codecparsers')
|
||||||
subdir('compositor')
|
subdir('compositor')
|
||||||
#subdir('directfb')
|
subdir('directfb')
|
||||||
#subdir('ipcpipeline')
|
#subdir('ipcpipeline')
|
||||||
subdir('mpegts')
|
subdir('mpegts')
|
||||||
#subdir('mxf')
|
subdir('mxf')
|
||||||
#subdir('opencv')
|
#subdir('opencv')
|
||||||
#subdir('uvch264')
|
subdir('uvch264')
|
||||||
subdir('waylandsink')
|
subdir('waylandsink')
|
||||||
subdir('webrtc')
|
subdir('webrtc')
|
||||||
|
|
||||||
|
|
7
tests/examples/mxf/meson.build
Normal file
7
tests/examples/mxf/meson.build
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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
|
12
tests/examples/uvch264/meson.build
Normal file
12
tests/examples/uvch264/meson.build
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
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
|
6
tests/icles/meson.build
Normal file
6
tests/icles/meson.build
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
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
|
endif
|
||||||
if not get_option('examples').disabled()
|
if not get_option('examples').disabled()
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
|
subdir('icles')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue