Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
45 lines
799 B
Meson
45 lines
799 B
Meson
contrib_plugins = [
|
|
'bbv.c',
|
|
'cache.c',
|
|
'cflow.c',
|
|
'drcov.c',
|
|
'execlog.c',
|
|
'hotblocks.c',
|
|
'hotpages.c',
|
|
'howvec.c',
|
|
'hwprofile.c',
|
|
'ips.c',
|
|
'stoptrigger.c',
|
|
'traps.c',
|
|
'uftrace.c',
|
|
]
|
|
|
|
if host_os != 'windows'
|
|
# lockstep uses socket.h
|
|
contrib_plugins += 'lockstep.c'
|
|
endif
|
|
|
|
if host_os == 'linux'
|
|
# dlcall passes guest calls through to host libraries; linux-user only
|
|
contrib_plugins += 'dlcall.c'
|
|
endif
|
|
|
|
if 'cpp' in all_languages
|
|
contrib_plugins += 'cpp.cpp'
|
|
endif
|
|
|
|
t = []
|
|
if get_option('plugins')
|
|
foreach i : contrib_plugins
|
|
t += shared_module(fs.stem(i), files(i),
|
|
dependencies: plugins_deps)
|
|
endforeach
|
|
endif
|
|
if t.length() > 0
|
|
alias_target('contrib-plugins', t)
|
|
else
|
|
run_target('contrib-plugins', command: [python, '-c', ''])
|
|
endif
|
|
|
|
plugin_modules += t
|