summaryrefslogtreecommitdiffstats
path: root/test cases/failing/37 has function external dependency/meson.build
blob: 45a3bc246b32950cdef161e2486139627747c737 (plain)
1
2
3
4
5
6
7
8
project('has function ext dep', 'c')

cc = meson.get_compiler('c')

mylib = shared_library('mylib', 'mylib.c')
mylib_dep = declare_dependency(link_with : mylib)
# Only external dependencies can work here
cc.has_function('malloc', dependencies : mylib_dep)