summaryrefslogtreecommitdiffstats
path: root/test cases/common/71 ctarget dependency/meson.build
blob: 40f7398fbd205244561c96b58ca519bdd0bacc29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
project('custom target dependency')

# Sometimes custom targets do not take input files
# but instead do globbing or some similar wackiness.
# In this case we need to be able to specify a
# manual dependency between two custom targets,
# if one needs to be run before the other.

g1 = find_program('gen1.py')
g2 = find_program('gen2.py')

c1 = custom_target('medput',
input : 'input.dat',
output : 'medput.tmp',
command : [g1, '@INPUT@', '@OUTPUT@'])

custom_target('output',
output : 'output.dat',
command : [g2, '@OUTDIR@', '@OUTPUT@'],
depends : c1)