forked from rigaya/AviSynthCUDAFilters
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
69 lines (65 loc) · 2.08 KB
/
meson.build
File metadata and controls
69 lines (65 loc) · 2.08 KB
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
project('AviSynthCUDAFilters', 'cpp', 'cuda',
version : '1.0.0',
default_options : [
'cpp_std=c++17',
'warning_level=0',
'buildtype=release',
'libdir=lib/avisynth' # インストール先を指定
]
)
# 依存関係の確認
avisynth_dep = dependency('avisynth', required : true)
cuda_dep = dependency('cuda', version : '>=11.0', required : true)
threads_dep = dependency('threads')
# ビルド設定
cuda_args = [ '-DENABLE_CUDA=1' ]
cpp_args = [ '-DENABLE_CUDA=1' ]
link_args = []
if host_machine.system() == 'linux'
cpp_args += [ '-std=c++17',
'-fno-operator-names',
'-Wno-unused-variable',
'-Wno-unused-function',
'-Wno-unused-value',
'-Wno-unused-label',
'-Wno-unused-parameter',
'-Wno-unused-type',
'-Wno-unknown-pragmas',
'-Wno-unused-but-set-variable',
'-Wno-reorder',
'-Wno-sign-conversion'
]
cuda_args += [ '-std=c++17',
'-Wno-deprecated-gpu-targets',
'-allow-unsupported-compiler',
'-Xcompiler=-Wno-unused-variable',
'-Xcompiler=-Wno-unused-function',
'-Xcompiler=-Wno-unused-value',
'-Xcompiler=-Wno-unused-label',
'-Xcompiler=-Wno-unused-parameter',
'-Xcompiler=-Wno-unused-type',
'-Xcompiler=-Wno-unknown-pragmas',
'-Xcompiler=-Wno-unused-but-set-variable',
'-Xcompiler=-Wno-sign-conversion',
'-Xcompiler=-Wno-maybe-uninitialized',
'-diag-suppress=177', # 未使用変数の警告
'-diag-suppress=550', # 未初期化変数の警告
'-diag-suppress=68', # 符号変換の警告
'-Xcompiler=-Wno-restrict' # restrict修飾子の警告
]
endif
# SIMD 拡張命令セット用のコンパイルフラグ
sse2_args = cpp_args + ['-msse2']
ssse3_args = cpp_args + ['-mssse3']
sse41_args = cpp_args + ['-msse4.1']
avx_args = cpp_args + ['-mavx', '-mpopcnt']
avx2_args = cpp_args + ['-mavx2', '-mfma', '-mpopcnt', '-mbmi', '-mbmi2']
avx512_args = cpp_args + ['-mavx512f', '-mavx512bw', '-mpopcnt', '-mbmi', '-mbmi2']
# サブディレクトリのビルド設定
subdir('common')
subdir('KUtil')
subdir('KFM')
subdir('NNEDI3')
subdir('masktools')
subdir('KTGMC')
subdir('AvsCUDA')