File: meson.build

package info (click to toggle)
contourpy 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,688 kB
  • sloc: python: 7,998; cpp: 6,241; makefile: 13
file content (26 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
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
project(
  'contourpy',
  'cpp',
  default_options: [
    # meson-python options are set in pyproject.toml
    'cpp_std=c++17',
    'werror=true',
  ],
  license: 'BSD-3-Clause',
  meson_version: '>= 1.2.0',
  version: '1.3.3',
)

# Check meson project version is the same as in _version.py
fs = import('fs')
version = fs.read('lib/contourpy/_version.py').strip().split(' ').get(-1).substring(1, -1)
if meson.project_version() != version
  error('ContourPy version mismatch: "@0@" != "@1@"'.format(meson.project_version(), version))
endif

py_mod = import('python')
py3 = py_mod.find_installation(pure: false)
pybind11_dep = dependency('pybind11')

subdir('lib/contourpy')
subdir('src')