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