xref: /openbmc/qemu/qga/vss-win32/meson.build (revision 90f9e35b)
1link_args = cc.get_supported_link_arguments([
2  '-fstack-protector-all',
3  '-fstack-protector-strong',
4  '-Wl,--add-stdcall-alias',
5  '-Wl,--enable-stdcall-fixup'
6])
7
8qga_vss = shared_module(
9  'qga-vss',
10  ['requester.cpp', 'provider.cpp', 'install.cpp'],
11  name_prefix: '',
12  cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
13  link_args: link_args,
14  vs_module_defs: 'qga-vss.def',
15  dependencies: [
16    glib,
17    socket,
18    cc.find_library('ole32'),
19    cc.find_library('oleaut32'),
20    cc.find_library('shlwapi'),
21    cc.find_library('uuid'),
22    cc.find_library('intl')
23  ]
24)
25
26all_qga += qga_vss
27
28if midl.found()
29  gen_tlb = custom_target('gen-tlb',
30                          input: 'qga-vss.idl',
31                          output: 'qga-vss.tlb',
32                          command: [midl, '@INPUT@', '/tlb', '@OUTPUT@'])
33else
34  gen_tlb = custom_target('gen-tlb',
35                          input: 'qga-vss.idl',
36                          output: 'qga-vss.tlb',
37                          command: [widl, '-t', '@INPUT@', '-o', '@OUTPUT@'])
38endif
39