| 1 | test_plugins = [ |
| 2 | 'bb.c', |
| 3 | 'discons.c', |
| 4 | 'empty.c', |
| 5 | 'inline.c', |
| 6 | 'insn.c', |
| 7 | 'mem.c', |
| 8 | 'patch.c', |
| 9 | 'registers.c', |
| 10 | 'reset.c', |
| 11 | 'setpc.c', |
| 12 | 'syscall.c', |
| 13 | ] |
| 14 | |
| 15 | t = [] |
| 16 | if get_option('plugins') |
| 17 | foreach i : test_plugins |
| 18 | t += shared_module(fs.stem(i), files(i), |
| 19 | dependencies: plugins_deps) |
| 20 | endforeach |
| 21 | endif |
| 22 | if t.length() > 0 |
| 23 | alias_target('test-plugins', t) |
| 24 | else |
| 25 | run_target('test-plugins', command: [python, '-c', '']) |
| 26 | endif |
| 27 | |
| 28 | plugin_modules += t |