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.
 
 
 
 
 
 

10 lines
351 B

cdata = configuration_data()
parts = meson.project_version().split('.')
cdata.set('FOO_MAJOR_VERSION', parts[0])
cdata.set('FOO_MINOR_VERSION', parts[1])
cdata.set('FOO_MICRO_VERSION', parts[2])
configure_file(input : 'foo-version.h.in',
output : 'foo-version.h',
configuration : cdata,
install : true,
install_dir : get_option('includedir'))