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.
21 lines
465 B
21 lines
465 B
5 years ago
|
# Must have two languages here to exercise linker language
|
||
|
# selection bug
|
||
|
project('all sources generated', 'c', 'cpp')
|
||
|
|
||
|
comp = find_program('converter.py')
|
||
|
|
||
|
g = generator(comp,
|
||
|
output : '@BASENAME@',
|
||
|
arguments : ['@INPUT@', '@OUTPUT@'])
|
||
|
|
||
|
c = g.process('foobar.cpp.in')
|
||
|
|
||
|
prog = executable('genexe', c)
|
||
|
|
||
|
c2 = custom_target('c2gen',
|
||
|
output : '@BASENAME@',
|
||
|
input : 'foobar.cpp.in',
|
||
|
command : [comp, '@INPUT@', '@OUTPUT@'])
|
||
|
|
||
|
prog2 = executable('genexe2', c2)
|