forked from Mikewando/vs-placebo
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmeson.build
More file actions
53 lines (42 loc) · 1.6 KB
/
Copy pathmeson.build
File metadata and controls
53 lines (42 loc) · 1.6 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
project('vs-placebo', ['c', 'cpp'],
default_options: ['buildtype=release', 'b_ndebug=if-release', 'c_std=c17', 'cpp_std=c++20'],
meson_version: '>=1.4.0',
version: '3.3.1'
)
cc = meson.get_compiler('c')
win32 = host_machine.system() == 'windows' or host_machine.system() == 'cygwin'
if win32 and get_option('win32-overrides')
# Use static versions of these libraries
shaderc_combined = dependency('shaderc_combined')
meson.override_dependency('shaderc', shaderc_combined)
spirv_cross_c = dependency('spirv-cross-c')
meson.override_dependency('spirv-cross-c-shared', spirv_cross_c)
endif
add_project_arguments(
cc.get_supported_arguments(
'-Werror-implicit-function-declaration',
'-Werror=discarded-qualifiers',
'-Werror=incompatible-pointer-types'
),
language: 'c'
)
placebo = dependency('libplacebo', required: true, version: '>=5.229.0', static: win32)
vapoursynth_dep = dependency('vapoursynth', static: win32).partial_dependency(includes: true, compile_args: true)
dovi = dependency('dovi', required: false, static: win32)
use_dovi = dovi.found()
config_vsplacebo = configuration_data()
config_vsplacebo.set('HAVE_DOVI', use_dovi)
configure_file(
output: 'config_vsplacebo.h',
configuration: config_vsplacebo,
)
p2p = static_library('p2p', ['libp2p/p2p_api.cpp', 'libp2p/v210.cpp'], pic: true)
sources = []
subdir('src')
shared_module('vs_placebo', sources,
dependencies: [dependency('threads'), placebo, vapoursynth_dep, dovi],
link_with: [p2p],
name_prefix: 'lib',
install_dir : join_paths(vapoursynth_dep.get_variable(pkgconfig: 'libdir'), 'vapoursynth'),
install: true
)