| 1 |
project('exe wrapper behaviour', 'c') |
| 2 |
|
| 3 |
assert(meson.is_cross_build(), 'not setup as cross build') |
| 4 |
assert(meson.has_exe_wrapper(), 'exe wrapper not defined?') # intentionally not changed to can_run_host_binaries, |
| 5 |
|
| 6 |
exe = executable('prog', 'prog.c') |
| 7 |
|
| 8 |
if get_option('custom-target') |
| 9 |
custom_target('use-exe-wrapper', |
| 10 |
build_by_default: true, |
| 11 |
output: 'out.txt', |
| 12 |
command: [exe, '@OUTPUT@']) |
| 13 |
endif |
| 14 |
|
| 15 |
test('test-prog', exe) |
| 16 |
|
| 17 |
if get_option('run-target') |
| 18 |
run_target('run-prog', command : exe) |
| 19 |
endif |