[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/26] meson: store dependency('threads') in a variable
From: |
Paolo Bonzini |
Subject: |
[PATCH 20/26] meson: store dependency('threads') in a variable |
Date: |
Tue, 8 Jun 2021 13:22:55 +0200 |
It can be useful for has_function checks.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 3 ++-
util/meson.build | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index fe8f64763b..0f2b05eef6 100644
--- a/meson.build
+++ b/meson.build
@@ -164,6 +164,7 @@ endif
multiprocess_allowed = targetos == 'linux' and not
get_option('multiprocess').disabled()
libm = cc.find_library('m', required: false)
+threads = dependency('threads')
util = cc.find_library('util', required: false)
winmm = []
socket = []
@@ -2045,7 +2046,7 @@ util_ss.add_all(trace_ss)
util_ss = util_ss.apply(config_all, strict: false)
libqemuutil = static_library('qemuutil',
sources: util_ss.sources() + stub_ss.sources() +
genh,
- dependencies: [util_ss.dependencies(), libm,
glib, socket, malloc, pixman])
+ dependencies: [util_ss.dependencies(), libm,
threads, glib, socket, malloc, pixman])
qemuutil = declare_dependency(link_with: libqemuutil,
sources: genh + version_res)
diff --git a/util/meson.build b/util/meson.build
index 7fe9da60ab..0ffd7f4bde 100644
--- a/util/meson.build
+++ b/util/meson.build
@@ -1,4 +1,3 @@
-util_ss.add(dependency('threads'))
util_ss.add(files('osdep.c', 'cutils.c', 'unicode.c', 'qemu-timer-common.c'))
util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c'))
util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c'))
--
2.31.1
- Re: [PATCH 18/26] configure: convert HAVE_BROKEN_SIZE_MAX to meson, (continued)
- [PATCH 12/26] configure, meson: convert libpmem detection to meson, Paolo Bonzini, 2021/06/08
- [PATCH 20/26] meson: store dependency('threads') in a variable,
Paolo Bonzini <=
- [PATCH 17/26] configure, meson: move CONFIG_IVSHMEM to meson, Paolo Bonzini, 2021/06/08
- [PATCH 21/26] configure: convert compiler tests to meson, part 2, Paolo Bonzini, 2021/06/08
- [PATCH 23/26] configure: convert CONFIG_STATIC_ASSERT tests to meson, Paolo Bonzini, 2021/06/08
- [PATCH 22/26] configure: convert compiler tests to meson, part 3, Paolo Bonzini, 2021/06/08