[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 027/150] meson: add version.o
From: |
Paolo Bonzini |
Subject: |
[PATCH 027/150] meson: add version.o |
Date: |
Fri, 14 Aug 2020 05:11:23 -0400 |
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 6550262b9b..f16add33ca 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 019/150] build-sys: add meson submodule, (continued)
- [PATCH 019/150] build-sys: add meson submodule, Paolo Bonzini, 2020/08/14
- [PATCH 021/150] meson: enable pie, Paolo Bonzini, 2020/08/14
- [PATCH 020/150] meson: move summary to meson.build, Paolo Bonzini, 2020/08/14
- [PATCH 022/150] meson: use coverage option, Paolo Bonzini, 2020/08/14
- [PATCH 023/150] meson: add sparse support, Paolo Bonzini, 2020/08/14
- [PATCH 026/150] meson: add remaining generated tcg trace helpers, Paolo Bonzini, 2020/08/14
- [PATCH 024/150] meson: add testsuite Makefile generator, Paolo Bonzini, 2020/08/14
- [PATCH 029/150] tools/virtiofsd: convert to Meson, Paolo Bonzini, 2020/08/14
- [PATCH 032/150] contrib/vhost-user-scsi: convert to Meson, Paolo Bonzini, 2020/08/14
- [PATCH 028/150] contrib/libvhost-user: convert to Meson, Paolo Bonzini, 2020/08/14
- [PATCH 027/150] meson: add version.o,
Paolo Bonzini <=
- [PATCH 025/150] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/14
- [PATCH 031/150] vhost-user-scsi: add compatibility for libiscsi 1.9.0, Paolo Bonzini, 2020/08/14
- [PATCH 030/150] contrib/vhost-user-blk: convert to Meson, Paolo Bonzini, 2020/08/14
- [PATCH 016/150] configure: integrate Meson in the build system, Paolo Bonzini, 2020/08/14
- [PATCH 037/150] contrib/elf2dmp: convert to meson, Paolo Bonzini, 2020/08/14
- [PATCH 041/150] meson: convert vss-win32, Paolo Bonzini, 2020/08/14
- [PATCH 038/150] meson: add macos dependencies, Paolo Bonzini, 2020/08/14