meson.build 629 B

123456789101112131415161718
  1. project('nsstring', 'objc')
  2. if host_machine.system() == 'darwin'
  3. dep = dependency('appleframeworks', modules : 'foundation')
  4. elif host_machine.system() == 'cygwin'
  5. error('MESON_SKIP_TEST GNUstep is not packaged for Cygwin.')
  6. else
  7. dep = dependency('gnustep', required : false)
  8. if not dep.found()
  9. error('MESON_SKIP_TEST: GNUstep is not installed')
  10. endif
  11. if host_machine.system() == 'linux' and meson.get_compiler('objc').get_id() == 'clang'
  12. error('MESON_SKIP_TEST: GNUstep is broken on Linux with Clang')
  13. endif
  14. endif
  15. exe = executable('stringprog', 'stringprog.m', dependencies : dep)
  16. test('stringtest', exe)