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