qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] build improvments
@ 2022-04-29  7:13 Konstantin Kostiuk
  2022-04-29  7:13 ` [PATCH RESEND 1/2] configure: Add cross prefix for widl tool Konstantin Kostiuk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Konstantin Kostiuk @ 2022-04-29  7:13 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Daniel P . Berrangé, Michael Roth,
	Richard Henderson, Marc-André Lureau, Paolo Bonzini

Resend because the series didn't reach the mailing list.

Konstantin Kostiuk (2):
  configure: Add cross prefix for widl tool
  qga-vss: always build qga-vss.tlb when qga-vss.dll is built

 configure                 | 3 +++
 qga/vss-win32/meson.build | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

--
2.25.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH RESEND 1/2] configure: Add cross prefix for widl tool
  2022-04-29  7:13 [PATCH RESEND 0/2] build improvments Konstantin Kostiuk
@ 2022-04-29  7:13 ` Konstantin Kostiuk
  2022-04-29  7:13 ` [PATCH RESEND 2/2] qga-vss: always build qga-vss.tlb when qga-vss.dll is built Konstantin Kostiuk
  2022-04-29  7:38 ` [PATCH RESEND 0/2] build improvments Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Konstantin Kostiuk @ 2022-04-29  7:13 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Daniel P . Berrangé, Michael Roth,
	Richard Henderson, Marc-André Lureau, Paolo Bonzini

The mingw-w64-tool package in Fedora provides widl tool with a
cross prefix, so adds it automatically for cross builds.

WIDL env can be used to redefine the path to tool.
The same behavior as with windres.

Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 59c43bea05..8b775492d0 100755
--- a/configure
+++ b/configure
@@ -415,6 +415,7 @@ ranlib="${RANLIB-${cross_prefix}ranlib}"
 nm="${NM-${cross_prefix}nm}"
 smbd="$SMBD"
 strip="${STRIP-${cross_prefix}strip}"
+widl="${WIDL-${cross_prefix}widl}"
 windres="${WINDRES-${cross_prefix}windres}"
 pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
 query_pkg_config() {
@@ -2786,6 +2787,7 @@ if test "$skip_meson" = no; then
     echo "sdl2-config = [$(meson_quote $sdl2_config)]" >> $cross
   fi
   echo "strip = [$(meson_quote $strip)]" >> $cross
+  echo "widl = [$(meson_quote $widl)]" >> $cross
   echo "windres = [$(meson_quote $windres)]" >> $cross
   if test "$cross_compile" = "yes"; then
     cross_arg="--cross-file config-meson.cross"
@@ -2907,6 +2909,7 @@ preserve_env PYTHON
 preserve_env SDL2_CONFIG
 preserve_env SMBD
 preserve_env STRIP
+preserve_env WIDL
 preserve_env WINDRES

 printf "exec" >>config.status
--
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH RESEND 2/2] qga-vss: always build qga-vss.tlb when qga-vss.dll is built
  2022-04-29  7:13 [PATCH RESEND 0/2] build improvments Konstantin Kostiuk
  2022-04-29  7:13 ` [PATCH RESEND 1/2] configure: Add cross prefix for widl tool Konstantin Kostiuk
@ 2022-04-29  7:13 ` Konstantin Kostiuk
  2022-04-29  7:38 ` [PATCH RESEND 0/2] build improvments Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Konstantin Kostiuk @ 2022-04-29  7:13 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Daniel P . Berrangé, Michael Roth,
	Richard Henderson, Marc-André Lureau, Paolo Bonzini

Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
 qga/vss-win32/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
index 71c50d0866..26c5dd6e0e 100644
--- a/qga/vss-win32/meson.build
+++ b/qga/vss-win32/meson.build
@@ -23,8 +23,6 @@ qga_vss = shared_module(
   ]
 )

-all_qga += qga_vss
-
 if midl.found()
   gen_tlb = custom_target('gen-tlb',
                           input: 'qga-vss.idl',
@@ -36,3 +34,5 @@ else
                           output: 'qga-vss.tlb',
                           command: [widl, '-t', '@INPUT@', '-o', '@OUTPUT@'])
 endif
+
+all_qga += [ qga_vss, gen_tlb ]
--
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND 0/2] build improvments
  2022-04-29  7:13 [PATCH RESEND 0/2] build improvments Konstantin Kostiuk
  2022-04-29  7:13 ` [PATCH RESEND 1/2] configure: Add cross prefix for widl tool Konstantin Kostiuk
  2022-04-29  7:13 ` [PATCH RESEND 2/2] qga-vss: always build qga-vss.tlb when qga-vss.dll is built Konstantin Kostiuk
@ 2022-04-29  7:38 ` Paolo Bonzini
  2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2022-04-29  7:38 UTC (permalink / raw)
  To: Konstantin Kostiuk
  Cc: Thomas Huth, Daniel P . Berrangé, Michael Roth,
	Richard Henderson, qemu-devel, Marc-André Lureau

Queued, thanks.

Paolo




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-29  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-29  7:13 [PATCH RESEND 0/2] build improvments Konstantin Kostiuk
2022-04-29  7:13 ` [PATCH RESEND 1/2] configure: Add cross prefix for widl tool Konstantin Kostiuk
2022-04-29  7:13 ` [PATCH RESEND 2/2] qga-vss: always build qga-vss.tlb when qga-vss.dll is built Konstantin Kostiuk
2022-04-29  7:38 ` [PATCH RESEND 0/2] build improvments Paolo Bonzini

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).