-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
32 lines (26 loc) · 704 Bytes
/
meson.build
File metadata and controls
32 lines (26 loc) · 704 Bytes
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
# SPDX-FileCopyrightText: Daniele Nicolodi <daniele@grinta.net>
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
project(
'python-siphash24', 'c', 'cython',
license: 'Apache-2.0 or LGPL-2.1-or-later',
meson_version: '>= 1.0.0',
default_options: [
'buildtype=release',
'c_std=c11',
]
)
libcsiphash = dependency('libcsiphash-1', version: '>= 1.1.0', static: true)
py = import('python').find_installation()
tempita = files('tempita.py')
pyx = custom_target(
'siphash24.pyx',
input: 'siphash24.pyx.in',
output: 'siphash24.pyx',
command: [py, tempita, '@INPUT@', '@OUTPUT@']
)
py.extension_module(
'siphash24',
pyx,
dependencies: libcsiphash,
install: true
)