Repository navigation
Expand file tree
/
Copy pathCMakeUserPresets.json.example
More file actions
133 lines (128 loc) · 4.42 KB
/
Copy pathCMakeUserPresets.json.example
File metadata and controls
133 lines (128 loc) · 4.42 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
{
"version": 11,
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
"$comment": [
"User-specific CMake presets.",
"",
"Copy this file to `CMakeUserPresets.json` (git-ignored) and edit the",
"environment variables in `base-user-env` below to set your game path",
"and RC compiler paths.",
"",
"To add a new user preset, inherit from `base-user-env` and any",
"configurePreset from CMakePresets.json, then add it to the list."
],
"configurePresets": [
{
"$comment": "=== Hidden base: user environment (edit paths here) ===",
"name": "base-user-env",
"hidden": true,
"environment": {
"ATS_PLUGINS_DIR": "",
"ETS2_PLUGINS_DIR": "",
"CMAKE_RC_COMPILER": "x86_64-w64-mingw32-windres"
}
},
{
"$comment": "=== Linux: MinGW cross-compile (Ninja) ===",
"name": "user-mingw-release",
"inherits": ["base-user-env", "mingw-release"],
"displayName": "✔ USER: MinGW (Ninja) · Release",
"description": "MinGW + Ninja Release with game deploy path and RC compiler",
"cacheVariables": {
"CMAKE_RC_COMPILER": "$env{CMAKE_RC_COMPILER}",
"ATS_PLUGINS_DIR": "$env{ATS_PLUGINS_DIR}",
"ETS2_PLUGINS_DIR": "$env{ETS2_PLUGINS_DIR}"
}
},
{
"name": "user-mingw-debug",
"inherits": ["base-user-env", "mingw-debug"],
"displayName": " · USER: MinGW (Ninja) · Debug",
"description": "MinGW + Ninja Debug with game deploy path and RC compiler",
"cacheVariables": {
"CMAKE_RC_COMPILER": "$env{CMAKE_RC_COMPILER}",
"ATS_PLUGINS_DIR": "$env{ATS_PLUGINS_DIR}",
"ETS2_PLUGINS_DIR": "$env{ETS2_PLUGINS_DIR}"
}
},
{
"$comment": "=== Linux: MinGW cross-compile (Unix Makefiles) ===",
"name": "user-mingw-make-release",
"inherits": ["base-user-env", "mingw-make-release"],
"displayName": " · USER: MinGW (Make) · Release",
"description": "MinGW + Unix Makefiles Release with game deploy path and RC compiler",
"cacheVariables": {
"CMAKE_RC_COMPILER": "$env{CMAKE_RC_COMPILER}",
"ATS_PLUGINS_DIR": "$env{ATS_PLUGINS_DIR}",
"ETS2_PLUGINS_DIR": "$env{ETS2_PLUGINS_DIR}"
}
},
{
"name": "user-mingw-make-debug",
"inherits": ["base-user-env", "mingw-make-debug"],
"displayName": " · USER: MinGW (Make) · Debug",
"description": "MinGW + Unix Makefiles Debug with game deploy path and RC compiler",
"cacheVariables": {
"CMAKE_RC_COMPILER": "$env{CMAKE_RC_COMPILER}",
"ATS_PLUGINS_DIR": "$env{ATS_PLUGINS_DIR}",
"ETS2_PLUGINS_DIR": "$env{ETS2_PLUGINS_DIR}"
}
}
],
"buildPresets": [
{
"name": "user-mingw-release",
"configurePreset": "user-mingw-release",
"displayName": "✔ Build: USER MinGW (Ninja) · Release"
},
{
"name": "user-mingw-debug",
"configurePreset": "user-mingw-debug",
"displayName": " · Build: USER MinGW (Ninja) · Debug"
},
{
"name": "user-mingw-make-release",
"configurePreset": "user-mingw-make-release",
"displayName": " · Build: USER MinGW (Make) · Release"
},
{
"name": "user-mingw-make-debug",
"configurePreset": "user-mingw-make-debug",
"displayName": " · Build: USER MinGW (Make) · Debug"
}
],
"workflowPresets": [
{
"name": "user-mingw-release",
"displayName": "Workflow: USER MinGW (Ninja) · Release",
"steps": [
{ "type": "configure", "name": "user-mingw-release" },
{ "type": "build", "name": "user-mingw-release" }
]
},
{
"name": "user-mingw-debug",
"displayName": "Workflow: USER MinGW (Ninja) · Debug",
"steps": [
{ "type": "configure", "name": "user-mingw-debug" },
{ "type": "build", "name": "user-mingw-debug" }
]
},
{
"name": "user-mingw-make-release",
"displayName": "Workflow: USER MinGW (Make) · Release",
"steps": [
{ "type": "configure", "name": "user-mingw-make-release" },
{ "type": "build", "name": "user-mingw-make-release" }
]
},
{
"name": "user-mingw-make-debug",
"displayName": "Workflow: USER MinGW (Make) · Debug",
"steps": [
{ "type": "configure", "name": "user-mingw-make-debug" },
{ "type": "build", "name": "user-mingw-make-debug" }
]
}
]
}