| 1 |
project( |
| 2 |
'nested folders', |
| 3 |
['c', 'cpp', 'cython'], |
| 4 |
default_options : ['buildtype=release'], |
| 5 |
) |
| 6 |
|
| 7 |
if meson.backend() != 'ninja' |
| 8 |
error('MESON_SKIP_TEST: Ninja backend required') |
| 9 |
endif |
| 10 |
|
| 11 |
py = import('python').find_installation() |
| 12 |
py_dep = py.dependency(required: false) |
| 13 |
|
| 14 |
if not py_dep.found() |
| 15 |
error('MESON_SKIP_TEST: Python library not found.') |
| 16 |
endif |
| 17 |
|
| 18 |
metric = py.extension_module( |
| 19 |
'metric', |
| 20 |
'package/metrics/metric.pyx', |
| 21 |
subdir: 'package/metrics', |
| 22 |
install: true |
| 23 |
) |
| 24 |
|
| 25 |
subdir('package') |