-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
143 lines (143 loc) · 4.76 KB
/
Copy pathCMakePresets.json
File metadata and controls
143 lines (143 loc) · 4.76 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "_vcpkg",
"hidden": true,
"toolchainFile": "${sourceDir}/lib/vcpkg/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/triplets",
"VCPKG_OVERLAY_PORTS": "${sourceDir}/cmake/ports",
"VCPKG_MANIFEST_MODE": "ON",
"VCPKG_INSTALL_OPTIONS": "--allow-unsupported",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "_ninja",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_MAKE_PROGRAM": "ninja"
}
},
{
"name": "_vs2022",
"hidden": true,
"generator": "Visual Studio 17 2022",
"architecture": "x64",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x64"
}
}
},
{
"name": "_clang-cl-linux",
"hidden": true,
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-llvm-mingw-static",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/clang-cl-cross.cmake",
"VCPKG_APPLOCAL_DEPS": "OFF"
}
},
{
"name": "_msvc",
"hidden": true,
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md",
"VCPKG_HOST_TRIPLET": "x64-windows-static-md"
}
},
{
"name": "release-linux",
"displayName": "Release (Linux, clang-cl + xwin)",
"description": "Cross-compile for Skyrim SE/AE from Linux using clang-cl, lld-link and xwin headers",
"inherits": ["_vcpkg", "_ninja", "_clang-cl-linux"],
"binaryDir": "${sourceDir}/build/release-linux",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "release-windows",
"displayName": "Release (Windows, MSVC)",
"description": "Build for Skyrim SE/AE on Windows using Visual Studio 2022",
"inherits": ["_vcpkg", "_vs2022", "_msvc"],
"binaryDir": "${sourceDir}/build/msvc"
},
{
"name": "tidy-windows",
"displayName": "Tidy (Windows, MSVC + Ninja)",
"description": "Configure-only preset for running clang-tidy on Windows with MSVC headers",
"inherits": ["_vcpkg", "_ninja", "_msvc"],
"binaryDir": "${sourceDir}/build/tidy",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_DISABLE_PRECOMPILE_HEADERS": "ON"
}
},
{
"name": "test-windows",
"displayName": "Test (Windows, MSVC + Ninja)",
"description": "Build and run unit tests on Windows with MSVC",
"inherits": ["_vcpkg", "_ninja", "_msvc"],
"binaryDir": "${sourceDir}/build/test-windows",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"PLUGIN_TESTS_ONLY": "ON",
"VCPKG_MANIFEST_FEATURES": "tests"
}
}
],
"buildPresets": [
{
"name": "release-linux",
"displayName": "Release (Linux)",
"configurePreset": "release-linux"
},
{
"name": "release-windows",
"displayName": "Release (Windows)",
"configurePreset": "release-windows",
"configuration": "Release"
},
{
"name": "deploy",
"displayName": "Deploy to mod manager",
"configurePreset": "release-linux",
"targets": ["deploy"]
},
{
"name": "test-windows",
"displayName": "Test (Windows)",
"configurePreset": "test-windows"
}
],
"testPresets": [
{
"name": "test-windows",
"displayName": "Test (Windows)",
"configurePreset": "test-windows",
"output": {
"outputOnFailure": true
}
}
],
"packagePresets": [],
"workflowPresets": [
{
"name": "deploy",
"displayName": "Build & Deploy to mod manager",
"steps": [
{ "type": "configure", "name": "release-linux" },
{ "type": "build", "name": "deploy" }
]
}
]
}