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.
19 lines
556 B
19 lines
556 B
4 years ago
|
project('foo', 'c')
|
||
|
|
||
|
if meson.is_cross_build()
|
||
|
error('MESON_SKIP_TEST Test does not make sense for cross builds')
|
||
|
endif
|
||
|
|
||
|
dep_zlib = dependency('zlib', required : false)
|
||
|
if not dep_zlib.found()
|
||
|
error('MESON_SKIP_TEST Test requires zlib')
|
||
|
endif
|
||
|
dependency('zlib', native : true, required : false)
|
||
|
dependency('zlib', native : false)
|
||
|
|
||
|
# `native: true` should not make a difference when doing a native build.
|
||
|
meson.override_dependency('expat', declare_dependency())
|
||
|
dependency('expat')
|
||
|
dependency('expat', native : true)
|
||
|
dependency('expat', native : false)
|