-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
42 lines (36 loc) · 965 Bytes
/
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
34
35
36
37
38
39
40
41
42
project(
'cherab-inversion',
# 'c',
# 'cython',
version: run_command(
['cherab/inversion/_build_utils/gitversion.py'],
check: true
).stdout().strip(),
meson_version: '>= 0.64.0',
default_options: [
'c_std=c99',
'buildtype=debugoptimized',
],
)
fs = import('fs')
py = import('python').find_installation(pure: true)
# Python dependency
py_dep = py.dependency()
# OpenMP dependency
# NOTE: uncomment if you want to use prange in cython
# omp_dep = dependency('openmp')
# NumPy dependency
# incdir_numpy = run_command(
# py,
# [
# '-c',
# 'import numpy; print(numpy.get_include())'
# ],
# check: true
# ).stdout().strip()
# inc_np = include_directories(incdir_numpy)
# np_dep = declare_dependency(include_directories: inc_np)
# Numpy deprecated api (if errors is occurred, comment out in module section)
# numpy_nodepr_api = '-DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION'
# subdirectories
subdir('cherab/inversion')