forked from Drakulix/VK_hdr_layer
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmeson.build
42 lines (35 loc) · 954 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
project(
'vk_hdr_layer',
'c',
'cpp',
meson_version: '>=0.58.0',
default_options: [
'cpp_std=c++20',
'warning_level=2',
],
)
cppc = meson.get_compiler('cpp')
data_dir = get_option('datadir')
prefix = get_option('prefix')
lib_dir = get_option('libdir')
add_project_arguments(cppc.get_supported_arguments([
'-Wno-unused-parameter',
'-Wno-missing-field-initializers',
'-Wno-c99-designator',
'-Wno-invalid-offsetof',
'-Wno-unused-const-variable',
'-Wno-volatile', # glm warning
'-Wno-deprecated-volatile',
]), language: 'cpp')
add_project_arguments(cppc.get_supported_arguments([
'-ffast-math',
]), language: 'cpp')
dep_x11 = dependency('x11')
vulkan_dep = dependency('vulkan')
# Vulkan headers are installed separately from the loader (which ships the
# pkg-config file)
if not cppc.check_header('vulkan/vulkan.h', dependencies: vulkan_dep)
error('Missing vulkan-headers')
endif
subdir('protocols')
subdir('src')