summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-03-24 14:57:51 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-03-24 15:00:53 +0100
commitf2003f80d1964e920e3c80120fa2c8b162f19257 (patch)
treee04c66e1cdd4a440ced8ee4b71a28a5a391becb7
parent301110c655d38a3d3724ae21397ddf6831b5b5d0 (diff)
downloadwebrtc-audio-processing-f2003f80d1964e920e3c80120fa2c8b162f19257.tar.gz
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.
-rw-r--r--meson.build6
1 files 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,
)