test cases/unit/99 custom target name/meson.build
raw| 1 | project('custom target name', 'c') |
| 2 | |
| 3 | python = find_program('python3') |
| 4 | |
| 5 | # Name argument is optional and should default to 'file.txt' |
| 6 | custom_target( |
| 7 | input: 'file.txt.in', |
| 8 | output: '@BASENAME@', |
| 9 | command: [python, '--version'], |
| 10 | build_by_default: true, |
| 11 | capture: true, |
| 12 | ) |
| 13 | |
| 14 | subdir('subdir') |