Debian Codegraph @

test cases/common/71 ctarget dependency/meson.build

raw
1 project('custom target dependency')
2
3 # Sometimes custom targets do not take input files
4 # but instead do globbing or some similar wackiness.
5 # In this case we need to be able to specify a
6 # manual dependency between two custom targets,
7 # if one needs to be run before the other.
8
9 g1 = find_program('gen1.py')
10 g2 = find_program('gen2.py')
11
12 c1 = custom_target('medput',
13 input : 'input.dat',
14 output : 'medput.tmp',
15 command : [g1, '@INPUT@', '@OUTPUT@'])
16
17 custom_target('output',
18 output : 'output.dat',
19 command : [g2, '@OUTDIR@', '@OUTPUT@'],
20 depends : c1)
21
22 custom_target('output2',
23 output : 'output2.dat',
24 command : [g2, '@OUTDIR@', '@OUTPUT@'],
25 depends : c1[0])