meson: fix meson test without building pipewire before

This adds project internal dependencies to some tests to let all
tests succeed. It is not adding all dependencies those tests actually
need.
This commit is contained in:
Nils Tonnätt 2021-08-04 20:38:30 +02:00
parent 4841156b74
commit 761fa6f59d
2 changed files with 11 additions and 3 deletions

View file

@ -112,7 +112,7 @@ pipewire_module_portal = shared_library('pipewire-module-portal', [ 'module-port
)
endif
pipewire_module_client_node = shared_library('pipewire-module-client-device',
pipewire_module_client_device = shared_library('pipewire-module-client-device',
[ 'module-client-device.c',
'module-client-device/resource-device.c',
'module-client-device/proxy-device.c',

View file

@ -72,14 +72,22 @@ test('test context',
'test-context.c',
'test-config.c',
include_directories: pwtest_inc,
link_with: pwtest_lib)
link_with: [pwtest_lib,
spa_support_lib,
spa_dbus_lib,
pipewire_module_protocol_native,
pipewire_module_client_node,
pipewire_module_client_device,
pipewire_module_adapter,
pipewire_module_metadata,
pipewire_module_session_manager])
)
test('test support',
executable('test-support',
'test-support.c',
'test-logger.c',
include_directories: pwtest_inc,
link_with: pwtest_lib)
link_with: [pwtest_lib, spa_support_lib])
)
test('test spa',
executable('test-spa',