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.
17 lines
382 B
17 lines
382 B
9 years ago
|
project('selfbuilt custom', 'cpp')
|
||
|
|
||
|
# Build an exe and use it in a custom target
|
||
|
# whose output is used to build a different exe.
|
||
|
|
||
8 years ago
|
tool = executable('tool', 'tool.cpp', native : true)
|
||
9 years ago
|
|
||
|
hfile = custom_target('datah',
|
||
|
output : 'data.h',
|
||
|
input : 'data.dat',
|
||
|
command : [tool, '@INPUT@', '@OUTPUT@'],
|
||
|
)
|
||
|
|
||
|
main = executable('mainprog', 'mainprog.cpp', hfile)
|
||
|
|
||
|
test('maintest', main)
|