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
439 B
17 lines
439 B
9 years ago
|
project('bob', 'c')
|
||
|
|
||
8 years ago
|
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])
|
||
9 years ago
|
bobinc = include_directories('.')
|
||
|
|
||
|
bob_dep = declare_dependency(link_with : boblib,
|
||
8 years ago
|
sources : [genbob_h],
|
||
9 years ago
|
include_directories : bobinc)
|