]> git.proxmox.com Git - mirror_qemu.git/blob - tests/plugin/meson.build
configure, meson: rename targetos to host_os
[mirror_qemu.git] / tests / plugin / meson.build
1 t = []
2 if get_option('plugins')
3 foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall']
4 if host_os == 'windows'
5 t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c',
6 include_directories: '../../include/qemu',
7 link_depends: [win32_qemu_plugin_api_lib],
8 link_args: ['-Lplugins', '-lqemu_plugin_api'],
9 dependencies: glib)
10
11 else
12 t += shared_module(i, files(i + '.c'),
13 include_directories: '../../include/qemu',
14 dependencies: glib)
15 endif
16 endforeach
17 endif
18 if t.length() > 0
19 alias_target('test-plugins', t)
20 else
21 run_target('test-plugins', command: find_program('true'))
22 endif