-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
35 lines (29 loc) · 1.13 KB
/
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
project('edipy2', 'fortran')
python = import('python').find_installation(pure: false)
scifor_dep= dependency('scifor', required:true)
edipack_dep= dependency('edipack2', required:true)
fortran_src = ['src/python/c_bindings/edi2py.f90']
python_src = ['src/python/edipy2/edi2py.py',
'src/python/edipy2/func_read_input.py',
'src/python/edipy2/func_aux_funx.py',
'src/python/edipy2/func_bath.py',
'src/python/edipy2/func_main.py',
'src/python/edipy2/func_io.py',
'src/python/edipy2/func_bath_fit.py',
'src/python/edipy2/__init__.py']
library_flags = []
if host_machine.system() == 'linux'
library_flags += ['-Wl,-z,noexecstack']
endif
library('edi2py',
fortran_src,
fortran_args: ['-ffree-line-length-none', '-cpp', '-D_MPI'],
link_args: library_flags,
dependencies: [scifor_dep,edipack_dep],
install: true,
install_dir: python.get_install_dir() / 'edipy2'
)
python.install_sources(
python_src,
subdir: 'edipy2'
)