[grilo/ebassi/subproject-variables: 8/8] 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: 8/8] build: Declare a variable for the internal grlnet dependency
- Date: Tue, 27 Sep 2022 13:32:15 +0000 (UTC)
commit c526364fb60823bc95ea2d3e0bfd16a320ed72d2
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 miserably fail when using grilo as a
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]