meson.build 366 B

123456789101112
  1. project('statchain', 'c')
  2. host_system = host_machine.system()
  3. if host_system == 'windows' or host_system == 'darwin'
  4. error('Test only fails on Linux and BSD')
  5. endif
  6. statlib = static_library('stat', 'stat.c', pic : false)
  7. shlib2 = shared_library('shr2', 'shlib2.c', link_with : statlib)
  8. exe = executable('prog', 'prog.c', link_with : shlib2)
  9. test('runtest', exe)