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.
12 lines
280 B
12 lines
280 B
12 years ago
|
project('has function', 'c')
|
||
|
|
||
|
cc = meson.get_compiler('c')
|
||
|
|
||
|
if not cc.has_function('printf', prefix : '#include<stdio.h>')
|
||
|
error('Existing function not found.')
|
||
|
endif
|
||
|
|
||
|
if cc.has_function('hfkerhisadf', prefix : '#include<stdio.h>')
|
||
|
error('Found non-existant function.')
|
||
|
endif
|