-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
55 lines (43 loc) · 1.15 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
project('fakenvapi',
'cpp',
default_options: [
'cpp_std=c++20',
'warning_level=2'
])
cpp = meson.get_compiler('cpp')
lib_dxgi = cpp.find_library('dxgi')
link_args = [
'-static',
'-static-libgcc',
'-static-libstdc++',
'-Wl,--file-alignment=4096'
]
compiler_args = [
'-Wno-unused-parameter',
'-D_CRT_SECURE_NO_WARNINGS',
'-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR'
]
spdlog_headers = include_directories('./external/spdlog/include')
windows = import('windows')
rc_file = configure_file(
input: 'resource.rc.in',
output: 'resource.rc',
configuration: {
'FILEVERSION': '1,2,0,0',
}
)
rc = windows.compile_resources(rc_file)
fakenvapi_version = vcs_tag(
command: ['git', 'describe', '--always', '--tags', '--dirty=-dirty'],
input: 'version.h.in',
output: 'version.h'
)
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'cpp')
add_project_link_arguments(cpp.get_supported_link_arguments(link_args), language: 'cpp')
dxvk_cpu_family = target_machine.cpu_family()
if dxvk_cpu_family == 'x86_64'
target_suffix = '64'
else
target_suffix = ''
endif
subdir('src')