[libvirt PATCHv2 08/15] build: link with json_c

Ján Tomko posted 15 patches 1 year, 5 months ago
[libvirt PATCHv2 08/15] build: link with json_c
Posted by Ján Tomko 1 year, 5 months ago
Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
 src/meson.build       | 1 +
 src/util/meson.build  | 1 +
 tests/meson.build     | 1 +
 tools/nss/meson.build | 2 ++
 4 files changed, 5 insertions(+)

diff --git a/src/meson.build b/src/meson.build
index 8cce42c7ad..b9652785dd 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -552,6 +552,7 @@ if conf.has('WITH_REMOTE')
       capng_dep,
       devmapper_dep,
       gnutls_dep,
+      json_c_dep,
       libssh2_dep,
       libssh_dep,
       sasl_dep,
diff --git a/src/util/meson.build b/src/util/meson.build
index 896c795150..ab6942fa81 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -193,6 +193,7 @@ virt_util_lib = static_library(
     capng_dep,
     devmapper_dep,
     gnutls_dep,
+    json_c_dep,
     intl_dep,
     libm_dep,
     libnl_dep,
diff --git a/tests/meson.build b/tests/meson.build
index 700a5d4049..e8fd9bac0c 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -10,6 +10,7 @@ tests_dep = declare_dependency(
     dlopen_dep,
     glib_dep,
     gnutls_dep,
+    json_c_dep,
     libnl_dep,
     libxml_dep,
     rpc_dep,
diff --git a/tools/nss/meson.build b/tools/nss/meson.build
index 85e2838fb7..1cae93ac67 100644
--- a/tools/nss/meson.build
+++ b/tools/nss/meson.build
@@ -28,6 +28,7 @@ nss_libvirt_impl = static_library(
     '-DLIBVIRT_NSS'
   ],
   dependencies: [
+    json_c_dep,
     tools_dep,
     yajl_dep,
   ],
@@ -44,6 +45,7 @@ nss_libvirt_guest_impl = static_library(
     '-DLIBVIRT_NSS_GUEST',
   ],
   dependencies: [
+    json_c_dep,
     tools_dep,
     yajl_dep,
   ],
-- 
2.46.0
Re: [libvirt PATCHv2 08/15] build: link with json_c
Posted by Peter Krempa 1 year, 5 months ago
On Thu, Sep 05, 2024 at 15:49:35 +0200, Ján Tomko wrote:
> Signed-off-by: Ján Tomko <jtomko@redhat.com>
> ---
>  src/meson.build       | 1 +
>  src/util/meson.build  | 1 +
>  tests/meson.build     | 1 +
>  tools/nss/meson.build | 2 ++
>  4 files changed, 5 insertions(+)

I'd squash this into 6/15 as you enable it there, or in the appropriate
commits adding the code. But as a standalone commit it doesn't make too
much sense IMO.