test cases/common/182 find override/subdir/meson.build
raw| 1 | x = find_program('converter.py') |
| 2 | |
| 3 | meson.override_find_program('codegen', x) |
| 4 | |
| 5 | # Override a command with a generated script |
| 6 | |
| 7 | cdata = configuration_data() |
| 8 | |
| 9 | cdata.set('NUMBER', 100) |
| 10 | numprog = configure_file(input : 'gencodegen.py.in', |
| 11 | output : 'gencodegen.py', |
| 12 | configuration : cdata) |
| 13 | |
| 14 | meson.override_find_program('gencodegen', numprog) |