1 if add_languages('cpp', required: false)
2 glib_dynamic = dependency('glib-2.0', static: false)
3 link_args = cc.get_supported_link_arguments(['-fstack-protector-all', '-fstack-protector-strong',
4 '-Wl,--add-stdcall-alias', '-Wl,--enable-stdcall-fixup'])
6 qga_vss = shared_module('qga-vss', ['requester.cpp', 'provider.cpp', 'install.cpp'],
8 cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
10 vs_module_defs: 'qga-vss.def',
11 dependencies: [glib_dynamic, socket,
12 cc.find_library('ole32'),
13 cc.find_library('oleaut32'),
14 cc.find_library('shlwapi'),
15 cc.find_library('uuid'),
16 cc.find_library('intl')])
21 # rules to build qga-vss.tlb
22 # Currently, only native build is supported because building .tlb
23 # (TypeLibrary) from .idl requires WindowsSDK and MIDL (and cl.exe in VC++).
24 midl = find_program('midl', required: false)
26 gen_tlb = custom_target('gen-tlb',
28 output: 'qga-vss.tlb',
29 command: [midl, '-tlb', '-I' + config_host['WIN_SDK'],
30 '@INPUT@', '@OUTPUT@'])
32 gen_tlb = custom_target('gen-tlb',
34 output: 'qga-vss.tlb',
35 command: ['cp', '@INPUT@', '@OUTPUT@'])