mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
meson: build opencv and ipcpipeline examples
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/576
This commit is contained in:
parent
4f935e1e7f
commit
2b8659a3ef
4 changed files with 32 additions and 5 deletions
|
@ -23,8 +23,8 @@ if not have_socketpair and get_option('ipcpipeline').enabled()
|
|||
error('ipcpipeline plugin enabled but socketpair() not found')
|
||||
endif
|
||||
|
||||
|
||||
if have_socket_h and have_pipe and have_socketpair
|
||||
build_ipcpipeline = have_socket_h and have_pipe and have_socketpair
|
||||
if build_ipcpipeline
|
||||
gstipcpipeline = library('gstipcpipeline',
|
||||
ipcpipeline_sources,
|
||||
c_args : gst_plugins_bad_args,
|
||||
|
|
15
tests/examples/ipcpipeline/meson.build
Normal file
15
tests/examples/ipcpipeline/meson.build
Normal file
|
@ -0,0 +1,15 @@
|
|||
if get_option('ipcpipeline').disabled() or not build_ipcpipeline
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
executable('ipcpipeline1', 'ipcpipeline1.c',
|
||||
include_directories: [configinc],
|
||||
dependencies: [glib_dep, gst_dep, gstbase_dep],
|
||||
c_args: gst_plugins_bad_args,
|
||||
install: false)
|
||||
|
||||
executable('ipc-play', 'ipc-play.c',
|
||||
include_directories: [configinc],
|
||||
dependencies: [glib_dep, gst_dep, gstbase_dep, gstvideo_dep],
|
||||
c_args: gst_plugins_bad_args,
|
||||
install: false)
|
|
@ -1,14 +1,13 @@
|
|||
# FIXME - Add other missing examples!
|
||||
subdir('audiomixmatrix')
|
||||
subdir('avsamplesink')
|
||||
subdir('camerabin2')
|
||||
subdir('codecparsers')
|
||||
subdir('compositor')
|
||||
subdir('directfb')
|
||||
#subdir('ipcpipeline')
|
||||
subdir('ipcpipeline')
|
||||
subdir('mpegts')
|
||||
subdir('mxf')
|
||||
#subdir('opencv')
|
||||
subdir('opencv', if_found: opencv_dep)
|
||||
subdir('uvch264')
|
||||
subdir('waylandsink')
|
||||
subdir('webrtc')
|
||||
|
|
13
tests/examples/opencv/meson.build
Normal file
13
tests/examples/opencv/meson.build
Normal file
|
@ -0,0 +1,13 @@
|
|||
examples = ['gstmotioncells_dynamic_test', 'gsthanddetect_test', 'gstfacedetect_test']
|
||||
|
||||
foreach example : examples
|
||||
exe_name = example
|
||||
src_file = '@0@.c'.format(example)
|
||||
|
||||
executable(exe_name,
|
||||
src_file,
|
||||
include_directories: [configinc],
|
||||
dependencies: [glib_dep, gst_dep, gstbase_dep],
|
||||
c_args: ['-DHAVE_CONFIG_H=1'],
|
||||
install: false)
|
||||
endforeach
|
Loading…
Reference in a new issue