File: meson.build

package info (click to toggle)
meson-python 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,328 kB
  • sloc: python: 3,114; ansic: 304; cpp: 16; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 698 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
# SPDX-FileCopyrightText: 2024 The meson-python developers
#
# SPDX-License-Identifier: MIT

project('cmake-subproject', ['c', 'cpp', 'cython'], version: '1')

if host_machine.system() == 'linux' and meson.version().version_compare('< 1.9.99')
    error('support for CMake subprojects rerquires Meson >= 1.10 on Linux')
endif

if meson.version().version_compare('< 1.3.0')
    dep = import('cmake').subproject('cmaketest').dependency('cmaketest')
else
    dep = dependency('cmaketest')
endif

py = import('python').find_installation()

py.extension_module(
    'cmakesubproject',
    'cmakesubproject.pyx',
    dependencies: dep,
    override_options: ['cython_language=cpp'],
    install: true,
)