From f2003f80d1964e920e3c80120fa2c8b162f19257 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 24 Mar 2020 14:57:51 +0100 Subject: [PATCH] meson: fix pkgconfig generation The bug preventing us to pass the library object to pkgconfig.generate() has been fixed in meson 0.52. By doing so the generated pc file has the right -L linker flag, making it easier to test the lib from non standard location. We also no longer have to pass libraries_private, it will handle it automatically. --- meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 37990ea..ca3ce8d 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('webrtc-audio-processing', 'c', 'cpp', version : '0.3.1', - meson_version : '>= 0.47', + meson_version : '>= 0.52', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) @@ -109,7 +109,5 @@ pkgconfig.generate( extra_cflags: [ '-DWEBRTC_AUDIO_PROCESSING_ONLY_BUILD', ] + platform_cflags, - # XXX: passing the libwebrtc_audio_processing object result in adding not-installed libraries to Libs.private - libraries: '-lwebrtc_audio_processing', - libraries_private: common_deps, + libraries: libwebrtc_audio_processing, )