mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

For now, it simply performs instruction, bb and mem count, and ensure that inline vs callback versions have the same result. Later, we'll extend it when new inline operations are added. Use existing plugins to test everything works is a bit cumbersome, as different events are treated in different plugins. Thus, this new one. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20240304130036.124418-6-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240305121005.3528075-19-alex.bennee@linaro.org>
22 lines
779 B
Meson
22 lines
779 B
Meson
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
|