test cases/native/10 native subproject/subprojects/buildtool/meson.build
raw| 1 | project('buildtool', 'c', meson_version : '>= 1.12.0') |
| 2 | |
| 3 | maingen = find_program('maingen') |
| 4 | |
| 5 | ct = custom_target( |
| 6 | 'gen', |
| 7 | command : [maingen], |
| 8 | output : 'gen.c', |
| 9 | capture : true, |
| 10 | ) |
| 11 | |
| 12 | e = executable('buildtool', 'buildtool.c', ct) |
| 13 | |
| 14 | meson.override_find_program('buildtool', e) |
| 15 | |
| 16 | subproject('hostp', native : false) |