-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
96 lines (96 loc) · 2.5 KB
/
Copy pathCMakePresets.json
File metadata and controls
96 lines (96 loc) · 2.5 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
{
"version": 4,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "windows",
"displayName": "Windows",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/.build/windows",
"architecture": "x64",
"toolset": "host=x64",
"cacheVariables": {
"PHX_BUILD_TESTS": "ON",
"PE_BUILD_STANDALONE": "ON",
"VCPKG_MANIFEST_FEATURES": "testapp;tests;standalone"
}
},
{
"name": "windows-ci",
"displayName": "Windows CI",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/windows-ci",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"PHX_BUILD_TESTAPP": "OFF",
"PHX_BUILD_TESTS": "ON",
"PHX_USE_PCH": "OFF",
"VCPKG_MANIFEST_FEATURES": "tests"
}
},
{
"name": "linux",
"displayName": "Linux",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/linux",
"cacheVariables": {
"VCPKG_MANIFEST_FEATURES": "testapp"
}
},
{
"name": "linux-ci",
"displayName": "Linux CI",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/linux-ci",
"cacheVariables": {
"PHX_BUILD_TESTAPP": "OFF",
"PHX_BUILD_TESTS": "ON",
"PHX_USE_PCH": "OFF",
"VCPKG_MANIFEST_FEATURES": "tests"
}
},
{
"name": "emscripten",
"displayName": "Emscripten (WebAssembly)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/wasm",
"environment": {
"PATH": "$env{EMSDK}/upstream/emscripten;$env{EMSDK};$penv{PATH}"
},
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "wasm32-emscripten",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"PHX_USE_PCH": "OFF"
}
}
],
"buildPresets": [
{
"name": "Debug",
"configurePreset": "windows",
"configuration": "Debug",
"nativeToolOptions": ["/maxcpucount"]
},
{
"name": "Release",
"configurePreset": "windows",
"configuration": "Release",
"nativeToolOptions": ["/maxcpucount"]
},
{
"name": "ReleaseWithSymbols",
"configurePreset": "windows",
"configuration": "ReleaseWithSymbols",
"nativeToolOptions": ["/maxcpucount"]
},
{
"name": "EmscriptenRelease",
"configurePreset": "emscripten",
"configuration": "Release"
}
]
}