The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
455 B
17 lines
455 B
5 years ago
|
project('global arg test', 'cpp', 'c')
|
||
|
|
||
5 years ago
|
add_global_arguments('-DMYTHING', language : 'c')
|
||
|
add_global_arguments('-DMYCPPTHING', language : 'cpp')
|
||
|
add_global_arguments('-DGLOBAL_HOST', language : 'c')
|
||
5 years ago
|
|
||
|
build_c_args = ['-DARG_BUILD']
|
||
|
c_args = ['-DARG_HOST']
|
||
|
|
||
5 years ago
|
add_global_arguments('-DMYCANDCPPTHING', language: ['c', 'cpp'])
|
||
5 years ago
|
|
||
5 years ago
|
exe2 = executable('prog2', 'prog.c', c_args : c_args)
|
||
5 years ago
|
exe3 = executable('prog3', 'prog.cc')
|
||
|
|
||
|
test('prog2', exe2)
|
||
|
test('prog3', exe3)
|