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