Blame SOURCES/0001-meson-do-not-make-qga-vss-win32-meson.build-conditio.patch

53c30d
From 2ee0253554227bd0cd26a00467765187168dda87 Mon Sep 17 00:00:00 2001
53c30d
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
53c30d
Date: Wed, 2 Feb 2022 00:23:33 +0400
53c30d
Subject: [PATCH] meson: do not make qga/vss-win32/meson.build conditional on
53c30d
 C++ presence
53c30d
MIME-Version: 1.0
53c30d
Content-Type: text/plain; charset=UTF-8
53c30d
Content-Transfer-Encoding: 8bit
53c30d
53c30d
C++ presence is checked by the qga/ directory, so it can be assumed
53c30d
when building VSS module.
53c30d
53c30d
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
53c30d
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
53c30d
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
53c30d
---
53c30d
 qga/vss-win32/meson.build | 41 +++++++++++++++++++++++----------------
53c30d
 1 file changed, 24 insertions(+), 17 deletions(-)
53c30d
53c30d
diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
53c30d
index 90825edef3..5982a6c6d8 100644
53c30d
--- a/qga/vss-win32/meson.build
53c30d
+++ b/qga/vss-win32/meson.build
53c30d
@@ -1,22 +1,29 @@
53c30d
-if add_languages('cpp', required: false)
53c30d
-  glib_dynamic = dependency('glib-2.0', static: false)
53c30d
-  link_args = cc.get_supported_link_arguments(['-fstack-protector-all', '-fstack-protector-strong',
53c30d
-                                               '-Wl,--add-stdcall-alias', '-Wl,--enable-stdcall-fixup'])
53c30d
+glib_dynamic = dependency('glib-2.0', static: false)
53c30d
+link_args = cc.get_supported_link_arguments([
53c30d
+  '-fstack-protector-all',
53c30d
+  '-fstack-protector-strong',
53c30d
+  '-Wl,--add-stdcall-alias',
53c30d
+  '-Wl,--enable-stdcall-fixup'
53c30d
+])
53c30d
 
53c30d
-  qga_vss = shared_module('qga-vss', ['requester.cpp', 'provider.cpp', 'install.cpp'],
53c30d
-                name_prefix: '',
53c30d
-                cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
53c30d
-                link_args: link_args,
53c30d
-                vs_module_defs: 'qga-vss.def',
53c30d
-                dependencies: [glib_dynamic, socket,
53c30d
-                               cc.find_library('ole32'),
53c30d
-                               cc.find_library('oleaut32'),
53c30d
-                               cc.find_library('shlwapi'),
53c30d
-                               cc.find_library('uuid'),
53c30d
-                               cc.find_library('intl')])
53c30d
+qga_vss = shared_module(
53c30d
+  'qga-vss',
53c30d
+  ['requester.cpp', 'provider.cpp', 'install.cpp'],
53c30d
+  name_prefix: '',
53c30d
+  cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
53c30d
+  link_args: link_args,
53c30d
+  vs_module_defs: 'qga-vss.def',
53c30d
+  dependencies: [
53c30d
+    glib_dynamic, socket,
53c30d
+    cc.find_library('ole32'),
53c30d
+    cc.find_library('oleaut32'),
53c30d
+    cc.find_library('shlwapi'),
53c30d
+    cc.find_library('uuid'),
53c30d
+    cc.find_library('intl')
53c30d
+  ]
53c30d
+)
53c30d
 
53c30d
-  all_qga += qga_vss
53c30d
-endif
53c30d
+all_qga += qga_vss
53c30d
 
53c30d
 # rules to build qga-vss.tlb
53c30d
 # Currently, only native build is supported because building .tlb
53c30d
-- 
53c30d
2.25.1
53c30d