diff options
Diffstat (limited to 'meson/test cases/native/2 global arg/meson.build')
-rw-r--r-- | meson/test cases/native/2 global arg/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson/test cases/native/2 global arg/meson.build b/meson/test cases/native/2 global arg/meson.build new file mode 100644 index 000000000..c303a02da --- /dev/null +++ b/meson/test cases/native/2 global arg/meson.build @@ -0,0 +1,14 @@ +project('global arg test', 'cpp', 'c') + +add_global_arguments('-DMYTHING', language : 'c', native : true) +add_global_arguments('-DMYCPPTHING', language : 'cpp', native : true) +add_global_arguments('-DGLOBAL_BUILD', language : 'c', native : true) + +build_c_args = ['-DARG_BUILD'] +c_args = ['-DARG_HOST'] + +add_global_arguments('-DMYCANDCPPTHING', language: ['c', 'cpp'], native: true) + +exe1 = executable('prog1', 'prog.c', c_args : build_c_args, native : true) + +test('prog1', exe1) |