2020-02-04 18:09:05 +03:00
|
|
|
t = []
|
2023-09-28 10:53:55 +03:00
|
|
|
if get_option('plugins')
|
2024-03-05 15:09:54 +03:00
|
|
|
foreach i : ['bb', 'empty', 'inline', 'insn', 'mem', 'syscall']
|
2023-11-03 11:17:48 +03:00
|
|
|
if host_os == 'windows'
|
2023-11-06 21:51:04 +03:00
|
|
|
t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c',
|
|
|
|
include_directories: '../../include/qemu',
|
2023-11-20 18:08:23 +03:00
|
|
|
link_depends: [win32_qemu_plugin_api_lib],
|
|
|
|
link_args: ['-Lplugins', '-lqemu_plugin_api'],
|
2023-11-06 21:51:04 +03:00
|
|
|
dependencies: glib)
|
|
|
|
|
|
|
|
else
|
|
|
|
t += shared_module(i, files(i + '.c'),
|
|
|
|
include_directories: '../../include/qemu',
|
|
|
|
dependencies: glib)
|
|
|
|
endif
|
2023-09-28 10:53:55 +03:00
|
|
|
endforeach
|
|
|
|
endif
|
|
|
|
if t.length() > 0
|
|
|
|
alias_target('test-plugins', t)
|
|
|
|
else
|
|
|
|
run_target('test-plugins', command: find_program('true'))
|
|
|
|
endif
|