summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-10-28 15:57:44 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-10-28 16:03:08 +0100
commitd938d2cf521741f2bf87e97157f92a4de075dcff (patch)
treef5bc7af477b7b1a132a1e033157e973cfa7e781c
parent593986ec5ebba49c3110e9f77a3be290ce0db2c2 (diff)
meson: override dependency
Will allow us to build the libs as part of gst-build as subprojects.
-rw-r--r--meson.build12
1 files changed, 11 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 6284262..de8cd75 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('webrtc-audio-processing-1', 'c', 'cpp',
version : '1.0',
- meson_version : '>= 0.52',
+ meson_version : '>= 0.54',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized',
'c_std=c11',
@@ -161,6 +161,11 @@ pkgconfig.generate(
libraries: libwebrtc_audio_processing,
)
+audio_processing_dep = declare_dependency(link_with : libwebrtc_audio_processing,
+ include_directories : [webrtc_inc])
+
+meson.override_dependency(apm_project_name, audio_processing_dep)
+
pkgconfig.generate(
name: ac_project_name,
description: 'WebRTC Audio Coding library',
@@ -172,3 +177,8 @@ pkgconfig.generate(
] + platform_cflags,
libraries: libwebrtc_audio_coding,
)
+
+audio_coding_dep = declare_dependency(link_with : libwebrtc_audio_coding,
+ include_directories : [webrtc_inc])
+
+meson.override_dependency(ac_project_name, audio_coding_dep)