diff --git a/spa/plugins/alsa/acp/meson.build b/spa/plugins/alsa/acp/meson.build index 28330890a..3686aec82 100644 --- a/spa/plugins/alsa/acp/meson.build +++ b/spa/plugins/alsa/acp/meson.build @@ -19,3 +19,4 @@ acp_lib = static_library( include_directories : [configinc, spa_inc, includes_inc ], dependencies : [ alsa_dep, mathlib, ] ) +acp_dep = declare_dependency(link_with: acp_lib) diff --git a/spa/plugins/alsa/meson.build b/spa/plugins/alsa/meson.build index 38de50285..c0977f15d 100644 --- a/spa/plugins/alsa/meson.build +++ b/spa/plugins/alsa/meson.build @@ -30,8 +30,7 @@ executable('spa-acp-tool', [ 'acp-tool.c' ], c_args : acp_c_args, include_directories : [spa_inc ], - dependencies : [ alsa_dep, mathlib ], - link_with : [ acp_lib ], + dependencies : [ alsa_dep, mathlib, acp_dep ], install : true, ) diff --git a/spa/plugins/audioconvert/meson.build b/spa/plugins/audioconvert/meson.build index 620960090..6f4fd968b 100644 --- a/spa/plugins/audioconvert/meson.build +++ b/spa/plugins/audioconvert/meson.build @@ -87,7 +87,7 @@ if have_neon simd_dependencies += audioconvert_neon endif -audioconvert = static_library('audioconvert', +audioconvert_lib = static_library('audioconvert', ['fmt-ops.c', 'biquad.c', 'crossover.c', @@ -103,15 +103,16 @@ audioconvert = static_library('audioconvert', include_directories : [configinc, spa_inc], install : false ) +audioconvert_dep = declare_dependency(link_with: audioconvert_lib) -audioconvertlib = shared_library('spa-audioconvert', +spa_audioconvert_lib = shared_library('spa-audioconvert', audioconvert_sources, c_args : simd_cargs, include_directories : [spa_inc], - dependencies : [ mathlib ], - link_with : audioconvert, + dependencies : [ mathlib, audioconvert_dep ], install : true, install_dir : spa_plugindir / 'audioconvert') +spa_audioconvert_dep = declare_dependency(link_with: spa_audioconvert_lib) test_lib = static_library('test_lib', ['test-source.c' ], @@ -131,9 +132,9 @@ test_apps = [ foreach a : test_apps test(a, executable(a, a + '.c', - dependencies : [dl_lib, pthread_lib, mathlib ], + dependencies : [ dl_lib, pthread_lib, mathlib, audioconvert_dep, spa_audioconvert_dep ], include_directories : [ configinc, spa_inc ], - link_with : [ audioconvert, test_lib, audioconvertlib ], + link_with : [ test_lib ], install_rpath : spa_plugindir / 'audioconvert', c_args : [ simd_cargs ], install : installed_tests_enabled, @@ -162,10 +163,9 @@ benchmark_apps = [ foreach a : benchmark_apps benchmark(a, executable(a, a + '.c', - dependencies : [dl_lib, pthread_lib, mathlib, ], + dependencies : [ dl_lib, pthread_lib, mathlib, audioconvert_dep, spa_audioconvert_dep ], include_directories : [ configinc, spa_inc ], c_args : [ simd_cargs ], - link_with : [ audioconvert, audioconvertlib ], install_rpath : spa_plugindir / 'audioconvert', install : installed_tests_enabled, install_dir : installed_tests_execdir / 'audioconvert'), @@ -193,8 +193,8 @@ if sndfile_dep.found() sparesample_sources, c_args : [ simd_cargs ], include_directories : [spa_inc ], - link_with : [ audioconvert, test_lib ], - dependencies : [sndfile_dep, mathlib], + link_with : [ test_lib ], + dependencies : [sndfile_dep, mathlib, audioconvert_dep], install : true, ) endif diff --git a/spa/plugins/support/meson.build b/spa/plugins/support/meson.build index 9fd6efd61..435a49fc2 100644 --- a/spa/plugins/support/meson.build +++ b/spa/plugins/support/meson.build @@ -14,6 +14,7 @@ spa_support_lib = shared_library('spa-support', dependencies : [ pthread_lib, epoll_shim_dep ], install : true, install_dir : spa_plugindir / 'support') +spa_support_dep = declare_dependency(link_with: spa_support_lib) if not get_option('evl').disabled() diff --git a/test/meson.build b/test/meson.build index bbef49de7..98e2b8dbe 100644 --- a/test/meson.build +++ b/test/meson.build @@ -87,7 +87,8 @@ test('test support', 'test-support.c', 'test-logger.c', include_directories: pwtest_inc, - link_with: [pwtest_lib, spa_support_lib]) + dependencies: [systemd_dep, spa_support_dep], + link_with: [pwtest_lib]) ) test('test spa', executable('test-spa',