| 1 |
project('has function ext dep', 'c') |
| 2 |
|
| 3 |
cc = meson.get_compiler('c') |
| 4 |
|
| 5 |
mylib = shared_library('mylib', 'mylib.c') |
| 6 |
mylib_dep = declare_dependency(link_with : mylib) |
| 7 |
# Only external dependencies can work here |
| 8 |
cc.has_function('malloc', dependencies : mylib_dep) |