Co-Authored-By: L. E. Segovia <amy@amyspark.me>pull/10674/merge
parent
43b80e02ce
commit
81b151f611
18 changed files with 60 additions and 3 deletions
@ -1,4 +1,8 @@ |
||||
project('objective c', 'objc', default_options: ['c_std=c99']) |
||||
|
||||
if get_option('backend').startswith('vs') |
||||
error('MESON_SKIP_TEST: objc is not supported by vs backend') |
||||
endif |
||||
|
||||
exe = executable('prog', 'prog.m') |
||||
test('objctest', exe) |
||||
|
@ -1,4 +1,8 @@ |
||||
project('objective c args', 'objc') |
||||
|
||||
if get_option('backend').startswith('vs') |
||||
error('MESON_SKIP_TEST: objc is not supported by vs backend') |
||||
endif |
||||
|
||||
exe = executable('prog', 'prog.m', objc_args : ['-DMESON_TEST']) |
||||
test('objective c args', exe) |
||||
|
@ -1,5 +1,9 @@ |
||||
project('foo', ['objc']) |
||||
|
||||
if get_option('backend').startswith('vs') |
||||
error('MESON_SKIP_TEST: objc is not supported by vs backend') |
||||
endif |
||||
|
||||
l = static_library('foo', 'foo.m') |
||||
|
||||
foo_dep = declare_dependency(link_with : l) |
||||
|
@ -1,4 +1,8 @@ |
||||
project('Objective C++', 'objcpp', default_options: 'cpp_std=c++14') |
||||
|
||||
if get_option('backend').startswith('vs') |
||||
error('MESON_SKIP_TEST: objcpp is not supported by vs backend') |
||||
endif |
||||
|
||||
exe = executable('objcppprog', 'prog.mm') |
||||
test('objcpp', exe) |
||||
|
@ -1,4 +1,8 @@ |
||||
project('objective c++ args', 'objcpp') |
||||
|
||||
if get_option('backend').startswith('vs') |
||||
error('MESON_SKIP_TEST: objcpp is not supported by vs backend') |
||||
endif |
||||
|
||||
exe = executable('prog', 'prog.mm', objcpp_args : ['-DMESON_OBJCPP_TEST']) |
||||
test('objective c++ args', exe) |
||||
|
Loading…
Reference in new issue