From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, Stefan Weil <sw@weilnetz.de>,
qemu-devel@nongnu.org, Michael Roth <mdroth@linux.vnet.ibm.com>
Subject: Re: [PATCH for-5.2] meson: Fix build with --disable-guest-agent-msi
Date: Wed, 18 Nov 2020 12:16:52 +0100 [thread overview]
Message-ID: <025997f1-ac8c-d1fe-7e7b-ae7668ddc59e@redhat.com> (raw)
In-Reply-To: <f631a213-1e8c-3ca7-5adc-5590b5897bbc@redhat.com>
On 11/18/20 9:30 AM, Paolo Bonzini wrote:
> On 17/11/20 21:18, Stefan Weil wrote:
>> The QGA MSI target requires several macros which are only available
>> without --disable-guest-agent-msi.
>>
>> Don't define that target if configure was called with
>> --disable-guest-agent-msi.
Can we have a CI job to avoid further regressions?
>>
>> Signed-off-by: Stefan Weil <sw@weilnetz.de>
>> ---
>> qga/meson.build | 36 +++++++++++++++++++-----------------
>> 1 file changed, 19 insertions(+), 17 deletions(-)
>>
>> diff --git a/qga/meson.build b/qga/meson.build
>> index 53ba6de5f8..520af6ce9b 100644
>> --- a/qga/meson.build
>> +++ b/qga/meson.build
>> @@ -61,23 +61,25 @@ if targetos == 'windows'
>> if 'CONFIG_QGA_VSS' in config_host and '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: [
>> - 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@',
>> - config_host['QEMU_GA_MSI_ARCH'].split(),
>> -
>> config_host['QEMU_GA_MSI_WITH_VSS'].split(),
>> -
>> config_host['QEMU_GA_MSI_MINGW_DLL_PATH'].split(),
>> - ])
>> - all_qga += [qga_msi]
>> - alias_target('msi', qga_msi)
>> + if 'CONFIG_QGA_MSI' in config_host
>> + qga_msi = custom_target('QGA MSI',
>> + input: files('installer/qemu-ga.wxs'),
>> + output:
>> 'qemu-ga-@0@.msi'.format(config_host['ARCH']),
>> + depends: deps,
>> + 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@',
>> + config_host['QEMU_GA_MSI_ARCH'].split(),
>> +
>> config_host['QEMU_GA_MSI_WITH_VSS'].split(),
>> +
>> config_host['QEMU_GA_MSI_MINGW_DLL_PATH'].split(),
>> + ])
>> + all_qga += [qga_msi]
>> + alias_target('msi', qga_msi)
>> + endif
>> endif
>> else
>> install_subdir('run', install_dir: get_option('localstatedir'))
>>
>
> Queued, thanks.
>
> Paolo
>
>
prev parent reply other threads:[~2020-11-18 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-17 20:18 [PATCH for-5.2] meson: Fix build with --disable-guest-agent-msi Stefan Weil
2020-11-18 8:30 ` Paolo Bonzini
2020-11-18 11:16 ` Philippe Mathieu-Daudé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=025997f1-ac8c-d1fe-7e7b-ae7668ddc59e@redhat.com \
--to=philmd@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).