forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
45 lines (37 loc) · 981 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
43
44
45
thread_dep = dependency('threads', required: false)
# mingw-w64 does not implement pthread_pfork, needed by pocket_fft
win_gcc = is_windows and meson.get_compiler('cpp').get_id() == 'gcc'
pocketfft_threads = []
fft_deps = [py3_dep]
if not win_gcc
if thread_dep.found()
pocketfft_threads += ['-DPOCKETFFT_PTHREADS']
fft_deps += [thread_dep]
endif
else
# Freezes using threading for mingw-w64 gcc:
# https://github.com/mreineck/pocketfft/issues/1
pocketfft_threads += ['-DPOCKETFFT_NO_MULTITHREADING']
endif
py3.extension_module('pypocketfft',
'pypocketfft.cxx',
cpp_args: pocketfft_threads,
include_directories: inc_pybind11,
dependencies: fft_deps,
gnu_symbol_visibility: 'hidden',
install: true,
subdir: 'scipy/fft/_pocketfft',
)
python_sources = [
'__init__.py',
'basic.py',
'helper.py',
'LICENSE.md',
'realtransforms.py'
]
py3.install_sources(
python_sources,
pure: false,
subdir: 'scipy/fft/_pocketfft'
)
subdir('tests')