[grilo/ebassi/subproject-variables: 6/6] build: Declare a variable for the internal grlnet dependency
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/ebassi/subproject-variables: 6/6] build: Declare a variable for the internal grlnet dependency
- Date: Wed, 28 Sep 2022 11:18:24 +0000 (UTC)
commit ca5d6c827fab1cfdd5d4b1a0a0d65f86fe6adac1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Sep 27 14:29:10 2022 +0100
build: Declare a variable for the internal grlnet dependency
When using grilo as a subproject we don't have access to the pkg-config
variables. This means any attempt at checking if grilo was built against
libsoup3 or libsoup2.4 will fail when using grilo as a subproject.
Fixes: 34d3c58 ("build: Allow building grilo as a Meson subproject")
libs/net/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libs/net/meson.build b/libs/net/meson.build
index a759c54..2168895 100644
--- a/libs/net/meson.build
+++ b/libs/net/meson.build
@@ -41,7 +41,8 @@ libgrlnet = shared_library('grlnet-@0@'.format(grl_majorminor),
libgrlnet_dep = declare_dependency(link_with: libgrlnet,
include_directories: [libgrl_inc, libgrlnet_inc],
- dependencies: [libsoup_dep, libgrl_dep])
+ dependencies: [libsoup_dep, libgrl_dep],
+ variables: {'soupapiversion': soup_api_version})
grlnet_pc = pkgconfig.generate(libgrlnet,
filebase: 'grilo-net-@0@'.format(grl_majorminor),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]