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.
 
 
 
 
 
 

33 lines
607 B

project('comparison', 'c')
var1 = 'foo'
var2 = 'bar'
if var1 == var2
exe1 = executable('broken', 'broken.c')
else
exe1 = executable('prog1', 'prog.c')
endif
if var1 == var1
exe2 = executable('prog2', 'prog.c')
else
exe2 = executable('broken', 'broken.c')
endif
if var1 != var2
exe3 = executable('prog3', 'prog.c')
else
exe3 = executable('broken', 'broken.c')
endif
if var1 != var1
exe4 = executable('broken', 'broken.c')
else
exe4 = executable('prog4', 'prog.c')
endif
add_test('equalfalse', exe1)
add_test('equaltrue', exe2)
add_test('nequaltrue', exe3)
add_test('nequalfalse', exe4)