forked from HomeOfVapourSynthEvolution/VapourSynth-EEDI3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
84 lines (69 loc) · 2.26 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
project('EEDI3', 'cpp',
default_options : ['buildtype=release', 'b_ndebug=if-release', 'cpp_std=c++14'],
meson_version : '>=0.48.0',
version : '5'
)
add_project_arguments('/fp:fast', language : 'cpp')
sources = [
'EEDI3/EEDI3.cpp',
'EEDI3/EEDI3.hpp',
'EEDI3/shared.hpp',
'EEDI3/vectorclass/instrset.h',
'EEDI3/vectorclass/instrset_detect.cpp'
]
vapoursynth_dep = [] #dependency('vapoursynth').partial_dependency(compile_args : true, includes : true)
deps = [vapoursynth_dep]
libs = []
if host_machine.cpu_family().startswith('x86')
add_project_arguments('-DVS_TARGET_CPU_X86', '/arch:AVX', language : 'cpp')
sources += [
'EEDI3/EEDI3_SSE2.cpp',
'EEDI3/vectorclass/vectorclass.h',
'EEDI3/vectorclass/vectorf128.h',
'EEDI3/vectorclass/vectorf256.h',
'EEDI3/vectorclass/vectorf256e.h',
'EEDI3/vectorclass/vectorf512.h',
'EEDI3/vectorclass/vectorf512e.h',
'EEDI3/vectorclass/vectori128.h',
'EEDI3/vectorclass/vectori256.h',
'EEDI3/vectorclass/vectori256e.h',
'EEDI3/vectorclass/vectori512.h',
'EEDI3/vectorclass/vectori512e.h'
]
if get_option('opencl')
add_project_arguments('-DHAVE_OPENCL', language : 'cpp')
sources += [
'EEDI3/EEDI3CL.cpp',
'EEDI3/EEDI3CL.hpp',
'EEDI3/EEDI3CL_SSE2.cpp'
]
opencl_dep = dependency('OpenCL', required : false)
if not opencl_dep.found()
opencl_dep = meson.get_compiler('cpp').find_library('OpenCL')
endif
boost_dep = dependency('boost', modules : ['filesystem', 'system'])
deps += [opencl_dep, boost_dep]
endif
libs += static_library('sse4', 'EEDI3/EEDI3_SSE4.cpp',
dependencies : vapoursynth_dep,
cpp_args : ['/arch:AVX'],
gnu_symbol_visibility : 'hidden'
)
libs += static_library('avx', 'EEDI3/EEDI3_AVX.cpp',
dependencies : vapoursynth_dep,
cpp_args : ['/arch:AVX'],
gnu_symbol_visibility : 'hidden'
)
libs += static_library('avx512', 'EEDI3/EEDI3_AVX512.cpp',
dependencies : vapoursynth_dep,
cpp_args : ['/arch:AVX512'],
gnu_symbol_visibility : 'hidden'
)
endif
shared_module('eedi3m', sources,
dependencies : deps,
link_with : libs,
install : true,
#install_dir : join_paths(vapoursynth_dep.get_pkgconfig_variable('libdir'), 'vapoursynth'),
gnu_symbol_visibility : 'hidden'
)