File: meson.build

package info (click to toggle)
matplotlib 3.10.1%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 78,340 kB
  • sloc: python: 147,118; cpp: 62,988; objc: 1,679; ansic: 1,426; javascript: 786; makefile: 92; sh: 53
file content (33 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (2)
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