-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakePresets.json
171 lines (171 loc) · 5.3 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "vcpkg",
"hidden": true,
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_OVERLAY_PORTS": "${sourceDir}/cmake/ports/",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL"
}
},
{
"name": "commonlibsse-config",
"hidden": true,
"environment": {
"COMMONLIBSSE_PLATFORM": "-DWIN32_LEAN_AND_MEAN -DNOMINMAX",
"COMMONLIBSSE_TEXT": "-DUNICODE -D_UNICODE"
},
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/permissive- /Zc:preprocessor /EHsc $penv{CXXFLAGS} $env{COMMONLIBSSE_COMPILER} $env{COMMONLIBSSE_PLATFORM} $env{COMMONLIBSSE_TEXT} $env{RUNTIME_DISABLE_FLAGS}"
}
},
{
"name": "commonlibsse-all",
"hidden": true,
"environment": {
"RUNTIME_DISABLE_FLAGS": "",
"COMMONLIBSSE_COMPILER": "/showIncludes"
}
},
{
"name": "commonlibsse-se-only",
"hidden": true,
"environment": {
"RUNTIME_DISABLE_FLAGS": "-UENABLE_SKYRIM_VR",
"COMMONLIBSSE_COMPILER": ""
}
},
{
"name": "commonlibsse-vr-only",
"hidden": true,
"environment": {
"RUNTIME_DISABLE_FLAGS": "-UENABLE_SKYRIM_SE -UENABLE_SKYRIM_AE",
"COMMONLIBSSE_COMPILER": ""
}
},
{
"name": "build-debug",
"hidden": true,
"inherits": [
"vcpkg",
"commonlibsse-config"
],
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
}
}
},
{
"name": "build-relwithdebinfo",
"hidden": true,
"inherits": [
"vcpkg",
"commonlibsse-config"
],
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "RelWithDebInfo"
}
}
},
{
"name": "build-debug-all",
"inherits": [
"build-debug",
"commonlibsse-all"
],
"displayName": "Debug",
"binaryDir": "${sourceDir}/build/debug"
},
{
"name": "build-relwithdebinfo-all",
"inherits": [
"build-relwithdebinfo",
"commonlibsse-all"
],
"displayName": "RelWithDebInfo",
"binaryDir": "${sourceDir}/build/relwithdebinfo"
},
{
"name": "build-debug-se-only",
"inherits": [
"build-debug",
"commonlibsse-se-only"
],
"displayName": "Debug (SE-AE only)",
"binaryDir": "${sourceDir}/build/debug-se-only"
},
{
"name": "build-relwithdebinfo-se-only",
"inherits": [
"build-relwithdebinfo",
"commonlibsse-se-only"
],
"displayName": "RelWithDebInfo (SE-AE only)",
"binaryDir": "${sourceDir}/build/relwithdebinfo-se-only"
},
{
"name": "build-debug-vr-only",
"inherits": [
"build-debug",
"commonlibsse-vr-only"
],
"displayName": "Debug (VR only)",
"binaryDir": "${sourceDir}/build/debug-vr-only"
},
{
"name": "build-relwithdebinfo-vr-only",
"inherits": [
"build-relwithdebinfo",
"commonlibsse-vr-only"
],
"displayName": "RelWithDebInfo (VR only)",
"binaryDir": "${sourceDir}/build/relwithdebinfo-vr-only"
}
],
"buildPresets": [
{
"name": "debug-se-only",
"displayName": "Debug (SE only)",
"configurePreset": "build-debug-se-only"
},
{
"name": "relwithdebinfo-se-only",
"displayName": "RelWithDebInfo (SE only)",
"configurePreset": "build-relwithdebinfo-se-only"
},
{
"name": "debug-vr-only",
"displayName": "Debug (VR only)",
"configurePreset": "build-debug-vr-only"
},
{
"name": "relwithdebinfo-vr-only",
"displayName": "RelWithDebInfo (VR only)",
"configurePreset": "build-relwithdebinfo-vr-only"
},
{
"name": "debug-all",
"displayName": "Debug (All)",
"configurePreset": "build-debug-all"
},
{
"name": "relwithdebinfo-all",
"displayName": "RelWithDebInfo (All)",
"configurePreset": "build-relwithdebinfo-all"
}
]
}