forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: build contrib/plugins with meson
Tried to unify this meson.build with tests/tcg/plugins/meson.build but the resulting modules are not output in the right directory. Originally proposed by Anton Kochkov, thank you! Solves: https://gitlab.com/qemu-project/qemu/-/issues/1710 Signed-off-by: Pierrick Bouvier <[email protected]>
- Loading branch information
1 parent
f5c3f07
commit accd710
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
t = [] | ||
if get_option('plugins') | ||
foreach i : ['cache', 'drcov', 'execlog', 'hotblocks', 'hotpages', 'howvec', | ||
'hwprofile', 'ips', 'lockstep', 'stoptrigger'] | ||
if host_os == 'windows' | ||
t += shared_module(i, files(i + '.c') + '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('contrib-plugins', t) | ||
else | ||
run_target('contrib-plugins', command: find_program('true')) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters