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.
23 lines
656 B
23 lines
656 B
11 years ago
|
project('custom target', 'c')
|
||
|
|
||
8 years ago
|
python = find_program('python3', required : false)
|
||
|
if not python.found()
|
||
|
python = find_program('python')
|
||
|
endif
|
||
11 years ago
|
|
||
11 years ago
|
# Note that this will not add a dependency to the compiler executable.
|
||
11 years ago
|
# Code will not be rebuilt if it changes.
|
||
11 years ago
|
comp = '@0@/@1@'.format(meson.current_source_dir(), 'my_compiler.py')
|
||
8 years ago
|
# Test that files() in command: works. The compiler just discards it.
|
||
|
useless = files('installed_files.txt')
|
||
11 years ago
|
|
||
|
mytarget = custom_target('bindat',
|
||
|
output : 'data.dat',
|
||
11 years ago
|
input : 'data_source.txt',
|
||
8 years ago
|
command : [python, comp, '--input=@INPUT@', '--output=@OUTPUT@', useless],
|
||
11 years ago
|
install : true,
|
||
|
install_dir : 'subdir'
|
||
|
)
|
||
8 years ago
|
|
||
|
subdir('depfile')
|