meson.build 256 B

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