2022-02-01 23:23:33 +03:00
|
|
|
link_args = cc.get_supported_link_arguments([
|
|
|
|
'-fstack-protector-all',
|
|
|
|
'-fstack-protector-strong',
|
|
|
|
'-Wl,--add-stdcall-alias',
|
|
|
|
'-Wl,--enable-stdcall-fixup'
|
|
|
|
])
|
2019-07-15 12:06:20 +03:00
|
|
|
|
2022-02-01 23:23:33 +03:00
|
|
|
qga_vss = shared_module(
|
|
|
|
'qga-vss',
|
2023-07-10 12:14:36 +03:00
|
|
|
['requester.cpp', 'provider.cpp', 'install.cpp', 'vss-debug.cpp', genh],
|
2022-02-01 23:23:33 +03:00
|
|
|
name_prefix: '',
|
|
|
|
cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
|
|
|
|
link_args: link_args,
|
|
|
|
vs_module_defs: 'qga-vss.def',
|
|
|
|
dependencies: [
|
2022-02-02 12:14:49 +03:00
|
|
|
glib,
|
|
|
|
socket,
|
2022-02-01 23:23:33 +03:00
|
|
|
cc.find_library('ole32'),
|
|
|
|
cc.find_library('oleaut32'),
|
|
|
|
cc.find_library('shlwapi'),
|
|
|
|
cc.find_library('uuid'),
|
|
|
|
cc.find_library('intl')
|
|
|
|
]
|
|
|
|
)
|
2020-01-28 17:06:16 +03:00
|
|
|
|
2019-07-15 10:39:13 +03:00
|
|
|
if midl.found()
|
|
|
|
gen_tlb = custom_target('gen-tlb',
|
|
|
|
input: 'qga-vss.idl',
|
|
|
|
output: 'qga-vss.tlb',
|
2022-02-01 15:21:47 +03:00
|
|
|
command: [midl, '@INPUT@', '/tlb', '@OUTPUT@'])
|
2022-02-01 11:55:21 +03:00
|
|
|
else
|
2022-02-01 11:53:15 +03:00
|
|
|
gen_tlb = custom_target('gen-tlb',
|
|
|
|
input: 'qga-vss.idl',
|
|
|
|
output: 'qga-vss.tlb',
|
|
|
|
command: [widl, '-t', '@INPUT@', '-o', '@OUTPUT@'])
|
2019-07-15 10:39:13 +03:00
|
|
|
endif
|
2022-04-28 21:15:41 +03:00
|
|
|
|
|
|
|
all_qga += [ qga_vss, gen_tlb ]
|