| 1 |
gen = find_program('codegen') # Should use overridden value set in "subdir". |
| 2 |
|
| 3 |
src = custom_target('arrival', |
| 4 |
input : 'source.desc', |
| 5 |
output : 'file.c', |
| 6 |
command : [gen, '@INPUT@', '@OUTPUT@'] |
| 7 |
) |
| 8 |
|
| 9 |
e = executable('six', 'main.c', src) |
| 10 |
|
| 11 |
test('six', e) |
| 12 |
|
| 13 |
# Override stuff with an executables |
| 14 |
meson.override_find_program('six_meson_exe', e) |
| 15 |
|
| 16 |
|
| 17 |
# The same again, but this time with a program that was generated |
| 18 |
# with configure_file. |
| 19 |
|
| 20 |
gen = find_program('gencodegen') |
| 21 |
|
| 22 |
src = custom_target('hundred', |
| 23 |
input : 'source2.desc', |
| 24 |
output : 'file2.c', |
| 25 |
command : [gen, '@INPUT@', '@OUTPUT@'] |
| 26 |
) |
| 27 |
|
| 28 |
e = executable('hundred', 'main2.c', src) |
| 29 |
|
| 30 |
test('hundred', e) |