[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 041/150] meson: add msi generation
From: |
Paolo Bonzini |
Subject: |
[PATCH 041/150] meson: add msi generation |
Date: |
Mon, 17 Aug 2020 16:35:34 +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>
---
Makefile | 18 ------------------
qga/meson.build | 25 +++++++++++++++++++++++++
qga/vss-win32/meson.build | 3 ++-
3 files changed, 27 insertions(+), 19 deletions(-)
diff --git a/Makefile b/Makefile
index 9b35c0d00a..a46b31b907 100644
--- a/Makefile
+++ b/Makefile
@@ -439,23 +439,6 @@ qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
$(SRC_PATH)/scripts/hxtool
qemu-keymap$(EXESUF): LIBS += $(XKBCOMMON_LIBS)
qemu-keymap$(EXESUF): QEMU_CFLAGS += $(XKBCOMMON_CFLAGS)
-ifdef QEMU_GA_MSI_ENABLED
-QEMU_GA_MSI=qemu-ga-$(ARCH).msi
-
-msi: $(QEMU_GA_MSI)
-
-$(QEMU_GA_MSI): qga/qemu-ga.exe $(QGA_VSS_PROVIDER)
-
-$(QEMU_GA_MSI): config-host.mak
-
-$(QEMU_GA_MSI): $(SRC_PATH)/qga/installer/qemu-ga.wxs
- $(call quiet-command,QEMU_GA_VERSION="$(QEMU_GA_VERSION)"
QEMU_GA_MANUFACTURER="$(QEMU_GA_MANUFACTURER)"
QEMU_GA_DISTRO="$(QEMU_GA_DISTRO)" BUILD_DIR="$(BUILD_DIR)" \
- wixl -o $@ $(QEMU_GA_MSI_ARCH) $(QEMU_GA_MSI_WITH_VSS)
$(QEMU_GA_MSI_MINGW_DLL_PATH) $<,"WIXL","$@")
-else
-msi:
- @echo "MSI build not configured or dependency resolution failed
(reconfigure with --enable-guest-agent-msi option)"
-endif
-
ifneq ($(EXESUF),)
.PHONY: qga/qemu-ga
qga/qemu-ga: qga/qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI)
@@ -471,7 +454,6 @@ clean: recurse-clean ninja-clean clean-ctlist
# avoid old build problems by removing potentially incorrect old files
rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h
gen-op-arm.h
rm -f qemu-options.def
- rm -f *.msi
find . \( -name '*.so' -o -name '*.dll' -o -name '*.mo' -o -name
'*.[oda]' \) -type f \
! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
diff --git a/qga/meson.build b/qga/meson.build
index 948302e06d..2d33c09fe6 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -48,5 +48,30 @@ qga = executable('qemu-ga', qga_ss.sources(),
if host_machine.system() == 'windows'
if 'CONFIG_QGA_VSS' in config_host
subdir('vss-win32')
+ else
+ gen_tlb = []
+ endif
+
+ wixl = find_program('wixl', required: false)
+ if wixl.found()
+ deps = [gen_tlb, qga]
+ if 'QEMU_GA_MSI_WITH_VSS' in config_host
+ deps += qga_vss
+ endif
+ qga_msi = custom_target('QGA MSI',
+ input: files('installer/qemu-ga.wxs'),
+ output:
'qemu-ga-@0@.msi'.format(config_host['ARCH']),
+ depends: deps,
+ command: [
+ 'QEMU_GA_VERSION=' +
config_host['QEMU_GA_VERSION'],
+ 'QEMU_GA_MANUFACTURER=' +
config_host['QEMU_GA_MANUFACTURER'],
+ 'QEMU_GA_DISTRO=' +
config_host['QEMU_GA_DISTRO'],
+ 'BUILD_DIR=' + meson.build_root(),
+ wixl, '-o', '@OUTPUT0@', '@INPUT0@',
+ config_host['QEMU_GA_MSI_ARCH'].split(),
+ config_host['QEMU_GA_MSI_WITH_VSS'].split(),
+
config_host['QEMU_GA_MSI_MINGW_DLL_PATH'].split(),
+ ])
+ alias_target('msi', qga_msi)
endif
endif
diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
index 42c8d31a3d..1f39e05335 100644
--- a/qga/vss-win32/meson.build
+++ b/qga/vss-win32/meson.build
@@ -2,7 +2,8 @@ if add_languages('cpp', required: false)
glib_static = dependency('glib-2.0', static: true)
link_args = cc.get_supported_link_arguments(['-fstack-protector-all',
'-fstack-protector-strong',
'-Wl,--add-stdcall-alias',
'-Wl,--enable-stdcall-fixup'])
- shared_module('qga-vss', ['requester.cpp', 'provider.cpp', 'install.cpp'],
+
+ qga_vss = shared_module('qga-vss', ['requester.cpp', 'provider.cpp',
'install.cpp'],
name_prefix: '',
cpp_args: ['-Wno-unknown-pragmas',
'-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
link_args: link_args,
--
2.26.2
- [PATCH 024/150] libqemuutil, qapi, trace: convert to meson, (continued)
- [PATCH 024/150] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/17
- [PATCH 026/150] meson: add version.o, Paolo Bonzini, 2020/08/17
- [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 <=
- [PATCH 040/150] meson: convert vss-win32, Paolo Bonzini, 2020/08/17
- [PATCH 042/150] meson: convert dummy Windows qga/qemu-ga target, Paolo Bonzini, 2020/08/17
- [PATCH 043/150] meson: add qemu-bridge-helper, Paolo Bonzini, 2020/08/17
- [PATCH 047/150] meson: keymap-gen, Paolo Bonzini, 2020/08/17
- [PATCH 044/150] meson: add qemu-keymap, Paolo Bonzini, 2020/08/17
- [PATCH 038/150] meson: add solaris and Haiku libraries, Paolo Bonzini, 2020/08/17
- [PATCH 037/150] meson: add macos dependencies, Paolo Bonzini, 2020/08/17
- [PATCH 039/150] meson: convert qemu-ga, Paolo Bonzini, 2020/08/17
- [PATCH 045/150] meson: add qemu-edid, Paolo Bonzini, 2020/08/17
- [PATCH 046/150] meson: add virtfs-proxy-helper, Paolo Bonzini, 2020/08/17