-
Notifications
You must be signed in to change notification settings - Fork 16
/
meson.build
50 lines (41 loc) · 1.33 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
project('atelier-sync-fix', ['c', 'cpp'], version : 'v0.5', meson_version : '>= 0.47', default_options : [ 'cpp_std=c++17' ])
cpp = meson.get_compiler('cpp')
compiler_args = [
'-DNOMINMAX',
'-D_WIN32_WINNT=0xa00',
'-Wimplicit-fallthrough',
]
link_args = [
'-static',
'-static-libgcc',
'-static-libstdc++',
# We need to set the section alignment for debug symbols to
# work properly as well as avoiding a memcpy from the Wine loader.
'-Wl,--file-alignment=4096',
]
# Wine's built-in back traces only work with dwarf2 symbols
if get_option('debug') and target_machine.system() == 'windows'
compiler_args += [
'-gstrict-dwarf',
'-gdwarf-2',
]
endif
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'cpp')
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'c')
add_project_link_arguments(cpp.get_supported_link_arguments(link_args), language: 'cpp')
add_project_link_arguments(cpp.get_supported_link_arguments(link_args), language: 'c')
d3d11_src = files([
'impl.cpp',
'main.cpp',
])
minhook_src = files([
'minhook/src/hde/hde64.c',
'minhook/src/hook.c',
'minhook/src/buffer.c',
'minhook/src/trampoline.c',
])
d3d11_dll = shared_library('d3d11', d3d11_src, minhook_src,
name_prefix : '',
install : true,
vs_module_defs : 'd3d11.def',
)