-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
123 lines (123 loc) · 3.87 KB
/
CMakePresets.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"generator": "Ninja",
"hidden": true,
"binaryDir": "${sourceDir}/build"
},
{
"name": "default-win",
"inherits": "default",
"displayName": "MSVC defaults",
"hidden": true,
"cacheVariables": {
"CMAKE_C_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od",
"CMAKE_CXX_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od",
"CMAKE_CXX_FLAGS_RELEASE": "/MD /Zi /O2 /Ob2 /DNDEBUG",
"CMAKE_EXE_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO",
"CMAKE_MODULE_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO",
"CMAKE_SHARED_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO",
"GS_OPENSSL": "ON",
"GS_HTTPLOG": "OFF",
"GS_SECURESECONNECT": "ON",
"GS_BUILD_TESTS": "ON",
"GS_INCLUDE_VOICE": "ON",
"GS_WINSOCK2": "ON"
}
},
{
"name": "cl",
"inherits": "default-win",
"displayName": "MSVC CL build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"GS_C_FLAGS": "/Zc:strictStrings;/W3"
}
},
{
"name": "msvc2019-i686",
"inherits": "cl",
"displayName": "MSVC 32bit build",
"generator": "Visual Studio 16 2019",
"architecture": "Win32"
},
{
"name": "msvc2019-x86-64",
"inherits": "cl",
"displayName": "MSVC 64bit build",
"architecture": "x64"
},
{
"name": "default-unix",
"inherits": "default",
"hidden": true,
"displayName": "UNIX defaults",
"cacheVariables": {
"GS_OPENSSL": "ON",
"GS_HTTPLOG": "OFF",
"GS_SECURESECONNECT": "ON",
"GS_BUILD_TESTS": "ON",
"GS_INCLUDE_VOICE": "ON"
}
},
{
"name": "default-linux",
"inherits": "default-unix",
"hidden": true,
"displayName": "Linux defaults",
"cacheVariables": {
"CMAKE_CXX_FLAGS_DEBUG": "-g3 -Og -gsplit-dwarf",
"CMAKE_C_FLAGS_DEBUG": "-g3 -Og -gsplit-dwarf",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -g3 -DNDEBUG",
"CMAKE_C_FLAGS_RELEASE": "-O3 -g3 -DNDEBUG"
}
},
{
"name": "gcc",
"inherits": "default-linux",
"displayName": "GCC build",
"environment": {
"CC": "gcc",
"CXX": "g++"
}
},
{
"name": "clang",
"inherits": "default-linux",
"displayName": "Clang build",
"environment": {
"CC": "clang",
"CXX": "clang++"
}
},
{
"name": "default-osx",
"inherits": "default-unix",
"hidden": true,
"displayName": "macOS defaults",
"cacheVariables": {
"CMAKE_CXX_FLAGS_DEBUG": "-g -Og -gsplit-dwarf",
"CMAKE_C_FLAGS_DEBUG": "-g -Og -gsplit-dwarf",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -g -DNDEBUG",
"CMAKE_C_FLAGS_RELEASE": "-O3 -g -DNDEBUG"
}
},
{
"name": "macos",
"inherits": "default-osx",
"displayName": "macOS build",
"environment": {
"CC": "clang",
"CXX": "clang++"
}
}
]
}