mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
This makes it easier to test PipeWire in its "as-installed" state,
for example in an OS distribution.
The .test metadata files in ${datadir}/installed-tests/${package} are
a convention taken from GNOME's installed-tests initiative, allowing a
generic test-runner like gnome-desktop-testing to discover and run tests
in an automatic way.
The installation path ${libexecdir}/installed-tests/${package} is also
a convention borrowed from GNOME's installed-tests initiative.
In addition to the automated tests, I've installed example executables
in the same place, for manual testing. They could be separated into
a different directory if desired, but they seem like they have more
similarities with the automated tests than differences: both are there
to test that PipeWire works correctly, and neither should be relied on
for production use. Some examples are installed in deeper subdirectories
to avoid name clashes.
Signed-off-by: Simon McVittie <smcv@debian.org>
78 lines
2 KiB
Meson
78 lines
2 KiB
Meson
pipewire_jack_sources = [
|
|
'pipewire-jack.c',
|
|
'ringbuffer.c',
|
|
'uuid.c',
|
|
]
|
|
|
|
pipewire_dummy_sources = [
|
|
'dummy.c',
|
|
]
|
|
|
|
pipewire_jack_c_args = [
|
|
'-DHAVE_CONFIG_H',
|
|
'-D_GNU_SOURCE',
|
|
'-DPIC',
|
|
]
|
|
|
|
#optional dependencies
|
|
jack_dep = dependency('jack', version : '>= 1.9.10', required : false)
|
|
|
|
libjack_path = get_option('libjack-path')
|
|
if libjack_path == ''
|
|
libjack_path = join_paths(modules_install_dir, 'jack')
|
|
libjack_path_dlopen = join_paths(modules_install_dir_dlopen, 'jack')
|
|
else
|
|
libjack_path_dlopen = libjack_path
|
|
endif
|
|
|
|
tools_config = configuration_data()
|
|
tools_config.set('LIBJACK_PATH', libjack_path_dlopen)
|
|
|
|
configure_file(input : 'pw-jack.in',
|
|
output : 'pw-jack',
|
|
configuration : tools_config,
|
|
install_dir : pipewire_bindir)
|
|
|
|
pipewire_jack = shared_library('jack',
|
|
pipewire_jack_sources,
|
|
soversion : soversion,
|
|
version : libversion,
|
|
c_args : pipewire_jack_c_args,
|
|
include_directories : [configinc],
|
|
dependencies : [pipewire_dep, jack_dep, mathlib],
|
|
install : true,
|
|
install_dir : libjack_path,
|
|
)
|
|
|
|
pipewire_jackserver = shared_library('jackserver',
|
|
pipewire_dummy_sources,
|
|
soversion : soversion,
|
|
version : libversion,
|
|
c_args : pipewire_jack_c_args,
|
|
include_directories : [configinc],
|
|
dependencies : [pipewire_dep, jack_dep, mathlib],
|
|
install : true,
|
|
install_dir : libjack_path,
|
|
)
|
|
|
|
pipewire_jackserver = shared_library('jacknet',
|
|
pipewire_dummy_sources,
|
|
soversion : soversion,
|
|
version : libversion,
|
|
c_args : pipewire_jack_c_args,
|
|
include_directories : [configinc],
|
|
dependencies : [pipewire_dep, jack_dep, mathlib],
|
|
install : true,
|
|
install_dir : libjack_path,
|
|
)
|
|
|
|
if sdl_dep.found()
|
|
executable('video-dsp-play',
|
|
'../examples/video-dsp-play.c',
|
|
c_args : [ '-D_GNU_SOURCE' ],
|
|
install : installed_tests_enabled,
|
|
install_dir : join_paths(installed_tests_execdir, 'examples', 'jack'),
|
|
dependencies : [jack_dep, sdl_dep, mathlib],
|
|
link_with: pipewire_jack,
|
|
)
|
|
endif
|