xref: /openbmc/qemu/tests/tcg/plugins/meson.build (revision 2e1cacfb)
1t = []
2if get_option('plugins')
3  foreach i : ['bb', 'empty', 'inline', '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
17endif
18if t.length() > 0
19  alias_target('test-plugins', t)
20else
21  run_target('test-plugins', command: find_program('true'))
22endif
23