blob: 347b1f6f98b29415e3c00788f9ac936773f7ffbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
project('foo')
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)
|