[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/41] build-sys: simplify MSI's QEMU_GA_MANUFACTURER
From: |
marcandre . lureau |
Subject: |
[PATCH 08/41] build-sys: simplify MSI's QEMU_GA_MANUFACTURER |
Date: |
Wed, 20 Apr 2022 17:25:51 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
If there is any reason to allow customization of this variable, we
should provide a proper configure option.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
configure | 4 ----
qga/installer/qemu-ga.wxs | 10 ++++------
qga/meson.build | 1 -
3 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/configure b/configure
index 8cbe55ac82e8..5ac653b21351 100755
--- a/configure
+++ b/configure
@@ -2694,9 +2694,6 @@ fi
# Guest agent Windows MSI package
-if test "$QEMU_GA_MANUFACTURER" = ""; then
- QEMU_GA_MANUFACTURER=QEMU
-fi
if test "$QEMU_GA_DISTRO" = ""; then
QEMU_GA_DISTRO=Linux
fi
@@ -2790,7 +2787,6 @@ if test "$debug_tcg" = "yes" ; then
fi
if test "$mingw32" = "yes" ; then
echo "CONFIG_WIN32=y" >> $config_host_mak
- echo "QEMU_GA_MANUFACTURER=${QEMU_GA_MANUFACTURER}" >> $config_host_mak
echo "QEMU_GA_DISTRO=${QEMU_GA_DISTRO}" >> $config_host_mak
echo "QEMU_GA_VERSION=${QEMU_GA_VERSION}" >> $config_host_mak
else
diff --git a/qga/installer/qemu-ga.wxs b/qga/installer/qemu-ga.wxs
index 0950e8c6becc..53d836c06a96 100644
--- a/qga/installer/qemu-ga.wxs
+++ b/qga/installer/qemu-ga.wxs
@@ -8,9 +8,7 @@
<?error Environment variable QEMU_GA_DISTRO undefined?>
<?endif?>
- <?ifndef env.QEMU_GA_MANUFACTURER ?>
- <?error Environment variable QEMU_GA_MANUFACTURER undefined?>
- <?endif?>
+ <?define QEMU_GA_MANUFACTURER = "QEMU" ?>
<?ifndef var.Arch?>
<?error Define Arch to 32 or 64?>
@@ -43,14 +41,14 @@
Name="QEMU guest agent"
Id="*"
UpgradeCode="{EB6B8302-C06E-4BEC-ADAC-932C68A3A98D}"
- Manufacturer="$(env.QEMU_GA_MANUFACTURER)"
+ Manufacturer="$(var.QEMU_GA_MANUFACTURER)"
Version="$(env.QEMU_GA_VERSION)"
Language="1033">
<?if $(var.Arch) = 32 ?>
<Condition Message="Error: 32-bit version of Qemu GA can not be installed
on 64-bit Windows.">NOT VersionNT64</Condition>
<?endif?>
<Package
- Manufacturer="$(env.QEMU_GA_MANUFACTURER)"
+ Manufacturer="$(var.QEMU_GA_MANUFACTURER)"
InstallerVersion="200"
Languages="1033"
Compressed="yes"
@@ -133,7 +131,7 @@
</Component>
<Component Id="registry_entries"
Guid="{D075D109-51CA-11E3-9F8B-000C29858960}">
<RegistryKey Root="HKLM"
-
Key="Software\$(env.QEMU_GA_MANUFACTURER)\$(env.QEMU_GA_DISTRO)\Tools\QemuGA">
+
Key="Software\$(var.QEMU_GA_MANUFACTURER)\$(env.QEMU_GA_DISTRO)\Tools\QemuGA">
<RegistryValue Type="string" Name="ProductID"
Value="fb0a0d66-c7fb-4e2e-a16b-c4a3bfe8d13b" />
<RegistryValue Type="string" Name="Version"
Value="$(env.QEMU_GA_VERSION)" />
</RegistryKey>
diff --git a/qga/meson.build b/qga/meson.build
index da5e5efb19e8..6e57de430d29 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -123,7 +123,6 @@ if targetos == 'windows'
command: [
find_program('env'),
'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@',
--
2.35.1.693.g805e0a68082a
[PATCH 10/41] build-sys: drop MSI's QEMU_GA_DISTRO, marcandre . lureau, 2022/04/20
[PATCH 09/41] build-sys: simplify MSI's QEMU_GA_VERSION, marcandre . lureau, 2022/04/20
[PATCH 11/41] qga: replace usleep() with g_usleep(), marcandre . lureau, 2022/04/20
[PATCH 12/41] docs: trace-events-all is installed without renaming, marcandre . lureau, 2022/04/20
[PATCH 14/41] arm/allwinner-a10: replace snprintf() with g_strdup_printf(), marcandre . lureau, 2022/04/20