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
416 B
17 lines
416 B
project('b', 'c') |
|
|
|
c_dep = dependency('c', version:'2', fallback: ['c', 'c_dep'], required: false) |
|
|
|
assert(c_dep.found() == false, 'C project has the wrong version and should not be found') |
|
|
|
if c_dep.found() |
|
add_global_arguments('-DWITH_C', language: 'c') |
|
endif |
|
|
|
blib = library('b', 'b.c', |
|
dependencies: c_dep) |
|
|
|
b_dep = declare_dependency( |
|
link_with: blib, |
|
include_directories: include_directories('.'), |
|
)
|
|
|