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
352 B

project('run always', 'c')
version = '1.0.0'
vgen = find_program('version_gen.py')
version_src = custom_target('Version string',
input : 'version.c.in',
output : 'version.c',
command : [vgen, '@INPUT@', '@OUTPUT@', version],
build_always : true,
)
executable('versionprinter', 'main.c', version_src,
include_directories : include_directories('.'))