forked from borancar/SchaeferGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
39 lines (29 loc) · 1.18 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
# Based on DXVK build system - https://github.com/doitsujin/dxvk/blob/master/meson.build
project('vk9', ['c', 'cpp'])
vk9_compiler = meson.get_compiler('cpp')
if vk9_compiler.get_id() == 'msvc'
add_global_arguments('-DNOMINMAX', language : 'cpp')
vk9_cpp_std='c++latest'
else
vk9_cpp_std='c++17'
endif
add_global_arguments( ['-DUNICODE', '-D_UNICODE'], language : 'cpp')
boost_dep = dependency('boost', modules : ['system', 'filesystem', 'thread', 'program_options', 'log', 'log_setup'])
vulkan_dep= dependency('vulkan-1')
eigen_dep = dependency('eigen')
vulkan_defs = ['-DVK_USE_PLATFORM_WIN32_KHR', '-DVK_PROTOTYPES', '-DVULKAN_HPP_NO_EXCEPTIONS',
'-DVULKAN_HPP_NO_SMART_HANDLE', '-DVK_KHR_push_descriptor', '-DVK_EXT_debug_report']
glsl_compiler = find_program('glslc')
glsl_generator = generator(glsl_compiler,
output : [ '@[email protected]' ],
arguments : [ '-mfmt=c', '@INPUT@', '-o', '@OUTPUT@' ])
ms_d3d9_dep = declare_dependency(link_args : ['-ld3d9'])
ms_d3dx9_dep = declare_dependency(link_args : ['-ld3dx9'])
subdir('VK9-Library')
enable_tests = get_option('enable_tests')
if enable_tests
subdir('VK9-Tests')
endif
if vk9_compiler.get_id() != 'msvc'
subdir('wine_utils')
endif