mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-07-21 18:34:33 +00:00
meson: add version.o
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
71c782f5cc
commit
04c6f1e798
|
@ -49,8 +49,14 @@ targetos = host_machine.system()
|
||||||
m = cc.find_library('m', required: false)
|
m = cc.find_library('m', required: false)
|
||||||
util = cc.find_library('util', required: false)
|
util = cc.find_library('util', required: false)
|
||||||
socket = []
|
socket = []
|
||||||
|
version_res = []
|
||||||
if targetos == 'windows'
|
if targetos == 'windows'
|
||||||
socket = cc.find_library('ws2_32')
|
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
|
endif
|
||||||
glib = declare_dependency(compile_args: config_host['GLIB_CFLAGS'].split(),
|
glib = declare_dependency(compile_args: config_host['GLIB_CFLAGS'].split(),
|
||||||
link_args: config_host['GLIB_LIBS'].split())
|
link_args: config_host['GLIB_LIBS'].split())
|
||||||
|
@ -235,7 +241,7 @@ libqemuutil = static_library('qemuutil',
|
||||||
sources: util_ss.sources() + stub_ss.sources() + genh,
|
sources: util_ss.sources() + stub_ss.sources() + genh,
|
||||||
dependencies: [util_ss.dependencies(), m, glib, socket])
|
dependencies: [util_ss.dependencies(), m, glib, socket])
|
||||||
qemuutil = declare_dependency(link_with: libqemuutil,
|
qemuutil = declare_dependency(link_with: libqemuutil,
|
||||||
sources: genh)
|
sources: genh + version_res)
|
||||||
|
|
||||||
summary_info = {}
|
summary_info = {}
|
||||||
summary_info += {'Install prefix': config_host['prefix']}
|
summary_info += {'Install prefix': config_host['prefix']}
|
||||||
|
|
Loading…
Reference in a new issue