diff options
-rw-r--r-- | qga/vss-win32/meson.build | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build index 78bdf5e..8f3aff5 100644 --- a/qga/vss-win32/meson.build +++ b/qga/vss-win32/meson.build @@ -18,15 +18,18 @@ if add_languages('cpp', required: false) all_qga += qga_vss endif -# rules to build qga-vss.tlb -# Currently, only native build is supported because building .tlb -# (TypeLibrary) from .idl requires WindowsSDK and MIDL (and cl.exe in VC++). midl = find_program('midl', required: false) +widl = find_program('widl', required: false) if midl.found() gen_tlb = custom_target('gen-tlb', input: 'qga-vss.idl', output: 'qga-vss.tlb', command: [midl, '@INPUT@', '/tlb', '@OUTPUT@']) +elif widl.found() + gen_tlb = custom_target('gen-tlb', + input: 'qga-vss.idl', + output: 'qga-vss.tlb', + command: [widl, '-t', '@INPUT@', '-o', '@OUTPUT@']) else gen_tlb = custom_target('gen-tlb', input: 'qga-vss.tlb', |