xref: /openbmc/qemu/contrib/plugins/meson.build (revision f7ceab1e)
1contrib_plugins = ['bbv', 'cache', 'cflow', 'drcov', 'execlog', 'hotblocks',
2                   'hotpages', 'howvec', 'hwprofile', 'ips', 'stoptrigger']
3if host_os != 'windows'
4  # lockstep uses socket.h
5  contrib_plugins += 'lockstep'
6endif
7
8t = []
9if get_option('plugins')
10  foreach i : contrib_plugins
11    if host_os == 'windows'
12      t += shared_module(i, files(i + '.c') + 'win32_linker.c',
13                        include_directories: '../../include/qemu',
14                        link_depends: [win32_qemu_plugin_api_lib],
15                        link_args: ['-Lplugins', '-lqemu_plugin_api'],
16                        dependencies: glib)
17    else
18      t += shared_module(i, files(i + '.c'),
19                        include_directories: '../../include/qemu',
20                        dependencies: glib)
21    endif
22  endforeach
23endif
24if t.length() > 0
25  alias_target('contrib-plugins', t)
26else
27  run_target('contrib-plugins', command: find_program('true'))
28endif
29