-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathmeson.build
33 lines (29 loc) · 1.14 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Bundled code.
subdir('agg24-svn')
# External code.
# FreeType 2.3 has libtool version 9.11.3 as can be checked from the tarball.
# For FreeType>=2.4, there is a conversion table in docs/VERSIONS.txt in the
# FreeType source tree.
if get_option('system-freetype')
freetype_dep = dependency('freetype2', version: '>=9.11.3')
else
# This is the version of FreeType to use when building a local version. It
# must match the value in `lib/matplotlib.__init__.py`. Also update the docs
# in `docs/devel/dependencies.rst`. Bump the cache key in
# `.circleci/config.yml` when changing requirements.
LOCAL_FREETYPE_VERSION = '2.6.1'
freetype_proj = subproject(
f'freetype-@LOCAL_FREETYPE_VERSION@',
default_options: ['default_library=static'])
freetype_dep = freetype_proj.get_variable('freetype_dep')
endif
if get_option('system-qhull')
qhull_dep = dependency('qhull_r', version: '>=8.0.2', required: false)
if not qhull_dep.found()
cc.check_header('libqhull_r/qhull_ra.h', required: true)
qhull_dep = cc.find_library('qhull_r')
endif
else
qhull_proj = subproject('qhull')
qhull_dep = qhull_proj.get_variable('qhull_dep')
endif