Debian Codegraph @

test cases/common/186 test depends/meson.build

raw
1 project('test depends', 'c')
2
3 gen = find_program('gen.py')
4
5 custom_dep = custom_target('custom_dep',
6 build_by_default : false,
7 output : 'custom_dep.txt',
8 command : [gen, '@OUTPUT@', 'custom_dep'],
9 )
10
11 exe_dep = executable('exe_dep', 'main.c',
12 build_by_default : false,
13 )
14
15 test_prog = find_program('test.py')
16 test('string dependencies', test_prog,
17 args : [
18 # This is declared for convenience,
19 # real use case might have some obscure method
20 # to find these dependencies, e.g. automatic plugin loading.
21 'custom_dep.txt',
22 exe_dep.full_path(),
23 ],
24 depends : [custom_dep, exe_dep],
25 workdir : meson.current_build_dir(),
26 )