tests/project/unit/65 alias target/meson.build
raw| 1 | project('alias target', 'c') |
| 2 | |
| 3 | python3 = import('python').find_installation() |
| 4 | |
| 5 | exe_target = executable('prog', 'main.c', build_by_default: false) |
| 6 | |
| 7 | custom_target = custom_target( |
| 8 | 'custom-target', |
| 9 | output: 'hello.txt', |
| 10 | command: [python3, '-c', 'print("hello")'], |
| 11 | capture: true, |
| 12 | build_by_default: false, |
| 13 | ) |
| 14 | |
| 15 | alias_target('build-all', [exe_target, custom_target]) |
| 16 | |
| 17 | subdir('subdir') |