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
426 B
17 lines
426 B
9 years ago
|
project('custom target', 'c')
|
||
|
|
||
|
python = find_program('python3')
|
||
|
|
||
|
# Note that this will not add a dependency to the compiler executable.
|
||
|
# Code will not be rebuilt if it changes.
|
||
|
comp = '@0@/@1@'.format(meson.current_source_dir(), 'my_compiler.py')
|
||
|
|
||
|
mytarget = custom_target('bindat',
|
||
|
output : 'data.dat',
|
||
|
input : 'data_source.txt',
|
||
|
capture : true,
|
||
|
command : [python, comp, '@INPUT@'],
|
||
|
install : true,
|
||
|
install_dir : 'subdir'
|
||
|
)
|