mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
FreeBSD doesn't provide timerfd and eventfd functions. These are implemented in 3rd party library called epoll-shim. Link targets requiring these functions to this library.
43 lines
1,010 B
Meson
43 lines
1,010 B
Meson
test_apps = [
|
|
'test-buffer',
|
|
'test-node',
|
|
'test-pod',
|
|
'test-utils',
|
|
]
|
|
|
|
foreach a : test_apps
|
|
test('spa-' + a,
|
|
executable('spa-' + a, a + '.c',
|
|
dependencies : [dl_lib, pthread_lib, mathlib ],
|
|
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('spa-test-cpp', 'test-cpp.cpp',
|
|
include_directories : [spa_inc ],
|
|
dependencies : [epoll_shim_dep],
|
|
install : false)
|
|
test('spa-test-cpp', test_cpp)
|
|
endif
|
|
|
|
benchmark_apps = [
|
|
'stress-ringbuffer',
|
|
'benchmark-pod',
|
|
]
|
|
|
|
foreach a : benchmark_apps
|
|
benchmark('spa-' + a,
|
|
executable('spa-' + a, a + '.c',
|
|
dependencies : [dl_lib, pthread_lib, mathlib ],
|
|
include_directories : [spa_inc ],
|
|
c_args : [ '-D_GNU_SOURCE' ],
|
|
install : false),
|
|
env : [
|
|
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
|
])
|
|
endforeach
|