File: meson.build

package info (click to toggle)
rocketcea 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,944 kB
  • sloc: fortran: 23,152; python: 9,235; pascal: 370; makefile: 168; sh: 9
file content (35 lines) | stat: -rw-r--r-- 935 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
27
28
29
30
31
32
33
34
35
project('rocketcea', 'c',
    meson_version: '>=0.64.0',
)

add_languages('fortran')

py_mod = import('python')
py = import('python').find_installation(pure: false)
py_dep = py.dependency()


# MinGW-W64
#add_project_link_arguments( '-lquadmath', '-static', language: 'c')
if host_machine.system() == 'windows' and meson.get_compiler('c').get_id() == 'gcc'
  add_project_link_arguments( '-lquadmath', '-static', language: 'c')
#  add_project_arguments('-mlong-double-64', language: 'c')
#  add_project_arguments('-DMS_WIN64', language: 'c')
endif


incdir_numpy = run_command(py,
  ['-c', 'import os; os.chdir(".."); import numpy; print(numpy.get_include())'],
  check : true
).stdout().strip()

incdir_f2py = run_command(py,
    ['-c', 'import os; os.chdir(".."); import numpy.f2py; print(numpy.f2py.get_include())'],
    check : true
).stdout().strip()

inc_np = include_directories(incdir_numpy, incdir_f2py)

subdir('rocketcea')