Debian Codegraph @

test cases/objc/2 nsstring/meson.build

raw
1 project('nsstring', 'objc')
2
3 if get_option('backend').startswith('vs')
4 error('MESON_SKIP_TEST: objc is not supported by vs backend')
5 endif
6
7 if host_machine.system() == 'darwin'
8 dep = dependency('appleframeworks', modules : 'Foundation')
9 elif host_machine.system() == 'cygwin'
10 error('MESON_SKIP_TEST GNUstep is not packaged for Cygwin.')
11 else
12 dep = dependency('gnustep', required : false)
13 if not dep.found()
14 error('MESON_SKIP_TEST: GNUstep is not installed')
15 endif
16 if host_machine.system() == 'linux' and meson.get_compiler('objc').get_id() == 'clang'
17 error('MESON_SKIP_TEST: GNUstep is broken on Linux with Clang')
18 endif
19 endif
20 exe = executable('stringprog', 'stringprog.m', dependencies : dep)
21 test('stringtest', exe)
22
23 # Ensure that a non-required dep that is not found does not cause an error
24 dependency('appleframeworks', modules: 'nonexisting', required: false)