-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
30 lines (25 loc) · 1.02 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
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/ED_INPUT_VARS.f90',
'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('edi2py',
fortran_src,
fortran_args: ['-ffree-line-length-none', '-cpp', '-D_MPI'],
dependencies: [scifor_dep,edipack_dep],
install: true,
install_dir: python.get_install_dir() / 'edipy2'
)
python.install_sources(
python_src,
subdir: 'edipy2'
)