| 1 |
project('bob', 'c') |
| 2 |
|
| 3 |
gensrc_py = find_program('genbob.py') |
| 4 |
genbob_h = custom_target('genbob.h', |
| 5 |
output : 'genbob.h', |
| 6 |
command : [gensrc_py, '@OUTPUT@']) |
| 7 |
genbob_c = custom_target('genbob.c', |
| 8 |
output : 'genbob.c', |
| 9 |
command : [gensrc_py, '@OUTPUT@']) |
| 10 |
|
| 11 |
boblib = library('bob', ['bob.c', genbob_c]) |
| 12 |
bobinc = include_directories('.') |
| 13 |
|
| 14 |
bob_dep = declare_dependency(link_with : boblib, |
| 15 |
sources : [genbob_h], |
| 16 |
include_directories : bobinc) |
| 17 |
|
| 18 |
notfound_dep = dependency('', required: false) |