aboutsummaryrefslogtreecommitdiff
path: root/tests/plugin/meson.build
blob: 9eece5bab510273ab51fc4ab2b370df3f55741cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
t = []
if get_option('plugins')
  foreach i : ['bb', 'empty', 'inline', 'insn', 'mem', 'syscall']
    if host_os == 'windows'
      t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c',
                        include_directories: '../../include/qemu',
                        link_depends: [win32_qemu_plugin_api_lib],
                        link_args: ['-Lplugins', '-lqemu_plugin_api'],
                        dependencies: glib)

    else
      t += shared_module(i, files(i + '.c'),
                        include_directories: '../../include/qemu',
                        dependencies: glib)
    endif
  endforeach
endif
if t.length() > 0
  alias_target('test-plugins', t)
else
  run_target('test-plugins', command: find_program('true'))
endif