-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
56 lines (39 loc) · 979 Bytes
/
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
51
52
53
54
55
56
project('AWarpSharp2', 'cpp',
version: '4',
default_options: ['cpp_std=c++11', 'buildtype=release'],
meson_version: '>=0.46')
warnings = [
'-Wall',
'-Wextra',
'-Wshadow',
]
cflags = [
warnings,
]
ldflags = [
]
sources = [
'src/awarpsharp2.cpp',
]
host_cpu_family = host_machine.cpu_family()
if host_cpu_family.startswith('x86')
cflags += ['-mfpmath=sse', '-msse2', '-DAWARPSHARP_X86=1']
sources += 'src/sse2.cpp'
endif
host_system = host_machine.system()
if host_system == 'windows' or host_system == 'cygwin'
if host_cpu_family == 'x86'
cflags += '-mstackrealign'
ldflags += '-Wl,--kill-at'
endif
endif
cxx = meson.get_compiler('cpp')
deps = [
dependency('vapoursynth').partial_dependency(includes: true, compile_args: true),
]
shared_module('awarpsharp2',
sources,
dependencies: deps,
link_args: ldflags,
cpp_args: cflags,
install: true)