2021-05-27 00:05:19 +00:00
|
|
|
pwtest_sources = [
|
|
|
|
'pwtest.h',
|
|
|
|
'pwtest-implementation.h',
|
|
|
|
'pwtest.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
pwtest_deps = [
|
|
|
|
pipewire_dep,
|
|
|
|
mathlib,
|
2021-06-07 03:13:52 +00:00
|
|
|
dl_lib,
|
2021-05-27 00:05:19 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
pwtest_c_args = [
|
|
|
|
'-DHAVE_CONFIG_H',
|
|
|
|
'-DBUILD_ROOT="@0@"'.format(meson.build_root()),
|
|
|
|
'-DSOURCE_ROOT="@0@"'.format(meson.source_root()),
|
|
|
|
]
|
|
|
|
|
|
|
|
pwtest_inc = [
|
|
|
|
spa_inc,
|
|
|
|
pipewire_inc,
|
|
|
|
configinc,
|
|
|
|
includes_inc,
|
|
|
|
]
|
|
|
|
|
|
|
|
pwtest_lib = static_library(
|
|
|
|
'pwtest',
|
|
|
|
pwtest_sources,
|
|
|
|
c_args: pwtest_c_args,
|
|
|
|
dependencies: pwtest_deps,
|
|
|
|
include_directories: pwtest_inc,
|
|
|
|
)
|
|
|
|
|
|
|
|
# Compilation only, this is the example file for how pwtest works and most
|
|
|
|
# of its tests will fail.
|
|
|
|
executable('test-example',
|
|
|
|
'test-example.c',
|
|
|
|
include_directories: pwtest_inc,
|
|
|
|
link_with: pwtest_lib)
|
2021-05-31 05:09:45 +00:00
|
|
|
|
|
|
|
test('test properties',
|
|
|
|
executable('test-properties',
|
|
|
|
'test-properties.c',
|
|
|
|
include_directories: pwtest_inc,
|
|
|
|
link_with: pwtest_lib)
|
|
|
|
)
|