| 1 |
project('pipeline test', 'c') |
| 2 |
|
| 3 |
# We need to run this executable locally so build it with |
| 4 |
# the host compiler. |
| 5 |
e1 = executable('srcgen', 'srcgen.c', native : true) |
| 6 |
|
| 7 |
# Generate a source file that needs to be included in the build. |
| 8 |
gen = generator(e1, \ |
| 9 |
depfile : '@[email protected]', |
| 10 |
output : '@[email protected]', # Line continuation inside arguments should work without needing a "\". |
| 11 |
arguments : ['@INPUT@', '@OUTPUT@', '@DEPFILE@']) |
| 12 |
|
| 13 |
generated = gen.process(['input_src.dat']) |
| 14 |
|
| 15 |
e2 = executable('prog', 'prog.c', generated) |
| 16 |
|
| 17 |
test('pipelined', e2) |
| 18 |
|
| 19 |
# This is in a subdirectory to make sure |
| 20 |
# we write proper subdir paths to output. |
| 21 |
subdir('src') |
| 22 |
|
| 23 |
subdir('depends') |