meson.build 527 B

123456789101112131415
  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')
  8. if host_machine.system() == 'linux' and meson.get_compiler('objc').get_id() == 'clang'
  9. error('MESON_SKIP_TEST: GNUstep is broken on Linux with Clang')
  10. endif
  11. endif
  12. exe = executable('stringprog', 'stringprog.m', dependencies : dep)
  13. test('stringtest', exe)