-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
79 lines (69 loc) · 1.42 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
project(
'autopatch',
'c',
'cpp',
version: '2.0',
default_options: [
'buildtype=release',
'b_lto=true',
'b_ndebug=if-release',
'b_pch=false',
'b_vscrt=mt',
'c_std=c11',
'c_winlibs=[]',
'cpp_eh=none',
'cpp_std=c++20',
'warning_level=2',
],
)
cc = meson.get_compiler('c')
add_project_arguments(
'-DWIN32_LEAN_AND_MEAN',
'-DOMNIMIX_VERSION="3.1.0"',
#'-DVERBOSE',
language: [
'c',
'cpp',
]
)
if cc.get_argument_syntax() != 'msvc'
add_project_arguments(
'-fno-ident',
'-ffunction-sections',
'-fdata-sections',
'-fvisibility=hidden',
language: [
'c',
'cpp',
]
)
add_project_arguments(
'-Wold-style-cast',
language: [
'cpp',
]
)
add_project_link_arguments(
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-Wl,--no-undefined',
'-static',
'-static-libgcc',
language: [
'c',
'cpp',
]
)
endif
psapi_lib = cc.find_library('psapi')
inc = include_directories('.')
capnhook = subproject('capnhook')
cmake = import('cmake')
minhook_sub = cmake.subproject('minhook')
minhook = minhook_sub.dependency('minhook')
subdir('imports')
subdir('util')
subdir('pattern')
subdir('pe')
subdir('clan')
subdir('festo')