[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 026/150] meson: add version.o
From: |
Paolo Bonzini |
Subject: |
[PATCH 026/150] meson: add version.o |
Date: |
Mon, 17 Aug 2020 16:35:19 +0200 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 16f92c4c60..d70c98bd9c 100644
--- a/meson.build
+++ b/meson.build
@@ -45,8 +45,14 @@ targetos = host_machine.system()
m = cc.find_library('m', required: false)
util = cc.find_library('util', required: false)
socket = []
+version_res = []
if host_machine.system() == 'windows'
socket = cc.find_library('ws2_32')
+
+ win = import('windows')
+ version_res = win.compile_resources('version.rc',
+ depend_files:
files('pc-bios/qemu-nsis.ico'),
+ include_directories:
include_directories('.'))
endif
glib = declare_dependency(compile_args: config_host['GLIB_CFLAGS'].split(),
link_args: config_host['GLIB_LIBS'].split())
@@ -231,7 +237,7 @@ libqemuutil = static_library('qemuutil',
sources: util_ss.sources() + stub_ss.sources() +
genh,
dependencies: [util_ss.dependencies(), m, glib,
socket])
qemuutil = declare_dependency(link_with: libqemuutil,
- sources: genh)
+ sources: genh + version_res)
summary_info = {}
summary_info += {'Install prefix': config_host['prefix']}
--
2.26.2
- [PATCH 020/150] meson: enable pie, (continued)
- [PATCH 020/150] meson: enable pie, Paolo Bonzini, 2020/08/17
- [PATCH 018/150] build-sys: add meson submodule, Paolo Bonzini, 2020/08/17
- [PATCH 022/150] meson: add sparse support, Paolo Bonzini, 2020/08/17
- [PATCH 019/150] meson: move summary to meson.build, Paolo Bonzini, 2020/08/17
- [PATCH 021/150] meson: use coverage option, Paolo Bonzini, 2020/08/17
- [PATCH 023/150] meson: add testsuite Makefile generator, Paolo Bonzini, 2020/08/17
- [PATCH 025/150] meson: add remaining generated tcg trace helpers, Paolo Bonzini, 2020/08/17
- [PATCH 027/150] contrib/libvhost-user: convert to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 028/150] tools/virtiofsd: convert to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 024/150] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 026/150] meson: add version.o,
Paolo Bonzini <=
- [PATCH 029/150] contrib/vhost-user-blk: convert to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 030/150] vhost-user-scsi: add compatibility for libiscsi 1.9.0, Paolo Bonzini, 2020/08/17
- [PATCH 032/150] contrib/rdmacm-mux: convert to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 031/150] contrib/vhost-user-scsi: convert to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 036/150] contrib/elf2dmp: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 033/150] contrib/vhost-user-input: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 034/150] contrib/vhost-user-gpu: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 035/150] contrib/ivshmem: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 041/150] meson: add msi generation, Paolo Bonzini, 2020/08/17
- [PATCH 040/150] meson: convert vss-win32, Paolo Bonzini, 2020/08/17