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.
 
 
 
 
 
 

18 lines
487 B

project('bob', 'c')
gensrc_py = find_program('genbob.py')
genbob_h = custom_target('genbob.h',
output : 'genbob.h',
command : [gensrc_py, '@OUTPUT@'])
genbob_c = custom_target('genbob.c',
output : 'genbob.c',
command : [gensrc_py, '@OUTPUT@'])
boblib = library('bob', ['bob.c', genbob_c])
bobinc = include_directories('.')
bob_dep = declare_dependency(link_with : boblib,
sources : [genbob_h],
include_directories : bobinc)
notfound_dep = dependency('', required: false)