Merge pull request #1843 from alvarez86/objcxx_args
Add support for objc_args and objcpp_argspull/1851/head
commit
fe84a6f43f
5 changed files with 45 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
project('objective c args', 'objc') |
||||
|
||||
exe = executable('prog', 'prog.m', objc_args : ['-DMESON_TEST']) |
||||
test('objective c args', exe) |
@ -0,0 +1,11 @@ |
||||
#import<stdio.h> |
||||
|
||||
int main(int argc, char **argv) |
||||
{ |
||||
#ifdef MESON_TEST |
||||
int x = 3; |
||||
#endif |
||||
|
||||
printf("x = %d\n", x); |
||||
return 0; |
||||
} |
@ -0,0 +1,4 @@ |
||||
project('objective c++ args', 'objcpp') |
||||
|
||||
exe = executable('prog', 'prog.mm', objcpp_args : ['-DMESON_OBJCPP_TEST']) |
||||
test('objective c++ args', exe) |
@ -0,0 +1,16 @@ |
||||
#import<stdio.h> |
||||
|
||||
class TestClass |
||||
{ |
||||
}; |
||||
|
||||
int main(int argc, char **argv) |
||||
{ |
||||
#ifdef MESON_OBJCPP_TEST |
||||
int x = 1; |
||||
#endif |
||||
|
||||
printf("x = %x\n", x); |
||||
|
||||
return 0; |
||||
} |
Loading…
Reference in new issue