File: meson.build

package info (click to toggle)
xraylib 4.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,988 kB
  • sloc: ansic: 16,363; f90: 9,202; java: 6,998; python: 1,580; cpp: 1,317; pascal: 1,139; makefile: 810; ruby: 622; php: 594; perl: 573; cs: 193; sh: 160
file content (44 lines) | stat: -rw-r--r-- 1,218 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
36
37
38
39
40
41
42
43
44
windows_installer_example_files = files(
    'xrlexample1.c',
    'xrlexample6.cpp',
    'xrlexample8.cs',
    'xrlexample14.pas',
)

# xrlexample1 -> C
xrlexample1_exec = executable('xrlexample1', files('xrlexample1.c'), c_args: core_c_args, dependencies: [xraylib_lib_dep, ])
test('xrlexample1', xrlexample1_exec, timeout: 30)

# xrlexample3 -> Fortran
if fortran_enabled
  xrlexample3_exec = executable('xrlexample3', files('xrlexample3.f90'), dependencies: [xraylib_fortran_lib_dep, ])
  test('xrlexample3', xrlexample3_exec, timeout: 30)
endif

# xrlexample5 -> Python (swig)
if python_enabled
  test('xrlexample5',
    python,
    args : files('xrlexample5.py'),
    env : python_test_env,
    timeout: 10,
    depends: [xraylib_ext]
  )
endif

# xrlexample6.cpp -> C++
if cplusplus_enabled
  xrlexample6_exec = executable('xrlexample6', files('xrlexample6.cpp'),  dependencies: [xraylib_lib_dep, ], include_directories: ['../cplusplus'])
  test('xrlexample6', xrlexample6_exec, timeout: 30)
endif

# xrlexample13 -> Python (cython)
if python_numpy_enabled
  test('xrlexample13',
    python,
    args : files('xrlexample13.py'),
    env : python_test_env,
    timeout: 10,
    depends: [xraylib_np_ext]
  )
endif