mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-31 11:09:04 -05:00
spa: Update tests and examples
Keep tests in spa/tests Make spa/examples Remove some old examples
This commit is contained in:
parent
fa2d877925
commit
3ee463ed3a
23 changed files with 266 additions and 5271 deletions
|
|
@ -1,65 +1,26 @@
|
|||
subdir('auto')
|
||||
test_apps = [
|
||||
'test-buffer',
|
||||
'test-pod',
|
||||
'test-utils',
|
||||
'stress-ringbuffer',
|
||||
]
|
||||
|
||||
executable('test-mixer', 'test-mixer.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib, mathlib],
|
||||
install : false)
|
||||
executable('test-convert', 'test-convert.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib, mathlib],
|
||||
install : false)
|
||||
executable('test-convert2', 'test-convert2.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib, mathlib],
|
||||
install : false)
|
||||
executable('test-bluez5', 'test-bluez5.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib, mathlib, dbus_dep],
|
||||
install : false)
|
||||
executable('test-ringbuffer', 'test-ringbuffer.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
executable('test-graph', 'test-graph.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
executable('test-graph2', 'test-graph2.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
executable('test-perf', 'test-perf.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
executable('stress-ringbuffer', 'stress-ringbuffer.c',
|
||||
include_directories : [spa_inc ],
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
if sdl_dep.found()
|
||||
executable('test-v4l2', 'test-v4l2.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, sdl_dep, pthread_lib],
|
||||
install : false)
|
||||
foreach a : test_apps
|
||||
test(a,
|
||||
executable(a, a + '.c',
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
include_directories : [spa_inc ],
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install : false),
|
||||
env : [
|
||||
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
||||
])
|
||||
endforeach
|
||||
|
||||
if have_cpp
|
||||
test_cpp = executable('test-cpp', 'test-cpp.cpp',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [],
|
||||
install : false)
|
||||
test('test-cpp', test_cpp)
|
||||
endif
|
||||
executable('test-props', 'test-props.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [],
|
||||
install : false)
|
||||
executable('test-props2', 'test-props2.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [],
|
||||
install : false)
|
||||
#executable('test-props4', 'test-props4.c',
|
||||
# include_directories : [spa_inc ],
|
||||
# dependencies : [],
|
||||
# install : false)
|
||||
#executable('test-props5', 'test-props5.c',
|
||||
# include_directories : [spa_inc ],
|
||||
# dependencies : [],
|
||||
# install : false)
|
||||
executable('test-control', 'test-control.c',
|
||||
include_directories : [spa_inc ],
|
||||
dependencies : [dl_lib, pthread_lib, mathlib],
|
||||
install : false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue