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