aboutsummaryrefslogtreecommitdiff
path: root/tests/plugin/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugin/meson.build')
-rw-r--r--tests/plugin/meson.build18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/plugin/meson.build b/tests/plugin/meson.build
index 2bbfc4b19e..322cafcdf6 100644
--- a/tests/plugin/meson.build
+++ b/tests/plugin/meson.build
@@ -1,7 +1,13 @@
t = []
-foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall']
- t += shared_module(i, files(i + '.c'),
- include_directories: '../../include/qemu',
- dependencies: glib)
-endforeach
-alias_target('test-plugins', t)
+if get_option('plugins')
+ foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall']
+ t += shared_module(i, files(i + '.c'),
+ include_directories: '../../include/qemu',
+ dependencies: glib)
+ endforeach
+endif
+if t.length() > 0
+ alias_target('test-plugins', t)
+else
+ run_target('test-plugins', command: find_program('true'))
+endif