test cases/common/262 generator chain/meson.build
raw| 1 | project('Generator Chain', 'c') |
| 2 | |
| 3 | stage1_exe = find_program('stage1.py') |
| 4 | |
| 5 | stage2_exe = find_program('stage2.py') |
| 6 | |
| 7 | stage1_gen = generator(stage1_exe, |
| 8 | output : '@[email protected]', |
| 9 | arguments : ['@INPUT@', '@OUTPUT@']) |
| 10 | |
| 11 | stage2_gen = generator(stage2_exe, |
| 12 | output : '@[email protected]', |
| 13 | arguments : ['@INPUT@', '@OUTPUT@']) |
| 14 | |
| 15 | out = stage2_gen.process(stage1_gen.process('data.txt')) |
| 16 | |
| 17 | hello = executable('hello', out) |
| 18 | |
| 19 | test('basic', hello) |