-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
50 lines (37 loc) · 1.03 KB
/
meson.build
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
45
46
47
48
49
50
# ----------------------------------------------|
project('turbopipe', 'cpp',
version: run_command(
['turbopipe/version.py'],
check: true
).stdout().strip(),
default_options: [
'warning_level=3',
'cpp_std=c++14',
'buildtype=release',
'optimization=3'
]
)
message('C++ compiler: ' + meson.get_compiler('cpp').get_id())
# ----------------------------------------------|
# Platform flags
cpp_args = ['-fpermissive']
if host_machine.system() == 'darwin'
cpp_args += ['-Wno-deprecated-declarations']
endif
# ----------------------------------------------|
# Source files
source = files('turbopipe/_turbopipe.cpp')
# ----------------------------------------------|
python = import('python').find_installation()
python.extension_module(
'_turbopipe', source,
cpp_args: cpp_args,
install: true,
subdir: 'turbopipe'
)
python.install_sources(
['turbopipe/__init__.py'],
subdir: 'turbopipe',
pure: false
)
# ----------------------------------------------|