The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
544 B
18 lines
544 B
12 years ago
|
project('pipeline test', 'c')
|
||
|
|
||
11 years ago
|
# We need to run this executable locally so build it with
|
||
|
# the host compiler.
|
||
|
e1 = executable('srcgen', 'srcgen.c', native : true)
|
||
12 years ago
|
|
||
11 years ago
|
# Generate a source file that needs to be included in the build.
|
||
12 years ago
|
gen = generator(e1, \
|
||
8 years ago
|
depfile : '@BASENAME@.d',
|
||
|
output : '@BASENAME@.c', # Line continuation inside arguments should work without needing a "\".
|
||
|
arguments : ['@INPUT@', '@OUTPUT@', '@DEPFILE@'])
|
||
12 years ago
|
|
||
9 years ago
|
generated = gen.process(['input_src.dat'])
|
||
12 years ago
|
|
||
12 years ago
|
e2 = executable('prog', 'prog.c', generated)
|
||
12 years ago
|
|
||
12 years ago
|
test('pipelined', e2)
|