test cases/unit/107 subproject symlink/meson.build
raw| 1 | project('foo', 'c') |
| 2 | |
| 3 | symlinked_subproject = subproject('symlinked_subproject').get_variable('dep') |
| 4 | |
| 5 | executable('foo', |
| 6 | sources : 'main.c', |
| 7 | dependencies : symlinked_subproject |
| 8 | ) |
| 9 | |
| 10 | custom_target( |
| 11 | input : symlinked_subproject.get_variable('datadir') / 'datafile', |
| 12 | output : 'datafile_copy', |
| 13 | command : [find_program('cp.py'), '@INPUT@', '@OUTPUT@'], |
| 14 | build_always : true |
| 15 | ) |