-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakePresets.json
More file actions
175 lines (174 loc) · 5.73 KB
/
CMakePresets.json
File metadata and controls
175 lines (174 loc) · 5.73 KB
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
172
173
174
175
{
"version": 2,
"configurePresets": [
{
"name": "default",
"description": "Default build using Ninja generator",
"generator": "Ninja Multi-Config",
"binaryDir": "$env{BUILD_DIR}",
"environment": {
"BUILD_DIR": "build/${presetName}"
},
"cacheVariables": {
"CMAKE_CXX_STANDARD":"17",
"CMAKE_CXX_STANDARD_REQUIRED":"ON",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "x86-windows",
"description": "windows x86 build",
"inherits": "default",
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER":"cl",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/toolchains/windows.cmake",
"VCPKG_TARGET_TRIPLET":"x86-windows-static",
"VCPKG_TARGET_ARCHITECTURE":"x86",
"VCPKG_CRT_LINKAGE":"static",
"VCPKG_LIBRARY_LINKAGE":"static",
"BUILD_WINVER":"ON"
}
},
{
"name": "x64-windows",
"description": "windows x64 build",
"inherits": "default",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER":"cl",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/toolchains/windows.cmake",
"VCPKG_TARGET_TRIPLET":"x64-windows-static",
"VCPKG_TARGET_ARCHITECTURE":"x64",
"VCPKG_CRT_LINKAGE":"static",
"VCPKG_LIBRARY_LINKAGE":"static",
"BUILD_WINVER":"ON"
}
},
{
"name": "x64-windows-sdl",
"description": "windows x64 build with sdl",
"inherits": "x64-windows",
"cacheVariables": {
"BUILD_WINVER":"OFF"
}
},
{
"name": "x64-linux",
"displayName": "for linux x64",
"description": "linux x64 build",
"inherits": "default",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/toolchains/linux.cmake",
"VCPKG_TARGET_TRIPLET":"x64-linux",
"VCPKG_TARGET_ARCHITECTURE":"x64",
"VCPKG_CRT_LINKAGE":"dynamic",
"VCPKG_LIBRARY_LINKAGE":"static"
}
},
{
"name": "osx",
"displayName": "for osx",
"inherits": "default",
"cacheVariables": {
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/toolchains/osx.cmake",
"VCPKG_CRT_LINKAGE":"dynamic",
"VCPKG_LIBRARY_LINKAGE":"static",
"USE_OPENGL":"OFF"
}
},
{
"name": "x64-osx",
"displayName": "for osx x64",
"description": "osx x64 build",
"inherits": "osx",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET":"x64-osx",
"VCPKG_TARGET_ARCHITECTURE":"x64"
}
},
{
"name": "arm64-osx",
"displayName": "for osx arm64",
"description": "osx arm64 build",
"inherits": "osx",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET":"arm64-osx",
"VCPKG_TARGET_ARCHITECTURE":"arm64"
}
},
{
"name": "android",
"displayName": "for android",
"inherits": "default",
"cacheVariables": {
"CMAKE_SIZEOF_VOID_P_OVERRIDE":"8",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/toolchains/android.cmake",
"ANDROID_PLATFORM":"android-29",
"ANDROID_STL":"c++_shared"
}
},
{
"name": "arm64-android",
"displayName": "for android arm64",
"description": "android arm64 build",
"inherits": "android",
"cacheVariables": {
"ANDROID_ABI":"arm64-v8a"
}
},
{
"name": "x64-android",
"displayName": "for android x64",
"description": "android x64 build",
"inherits": "android",
"cacheVariables": {
"ANDROID_ABI":"x86_64"
}
}
],
"buildPresets": [
{
"name": "x86-windows",
"configurePreset": "x86-windows"
},
{
"name": "x64-windows",
"configurePreset": "x64-windows"
},
{
"name": "x64-windows-sdl",
"configurePreset": "x64-windows-sdl"
},
{
"name": "x64-linux",
"configurePreset": "x64-linux"
},
{
"name": "x64-osx",
"configurePreset": "x64-osx"
},
{
"name": "arm64-osx",
"configurePreset": "arm64-osx"
},
{
"name": "arm64-android",
"configurePreset": "arm64-android"
},
{
"name": "x64-android",
"configurePreset": "x64-android"
}
]
}