aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/106 subproject symlink/meson.build
blob: 6766c8e4a4020887018225e5376b31d9ff3b2f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
project('foo', 'c')

symlinked_subproject = subproject('symlinked_subproject').get_variable('dep')

executable('foo',
    sources : 'main.c',
    dependencies : symlinked_subproject
)

custom_target(
    input : symlinked_subproject.get_variable('datadir') / 'datafile',
    output : 'datafile_copy',
    command : [find_program('cp.py'), '@INPUT@', '@OUTPUT@'],
    build_always : true
)