forked from cataclysmbn/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
170 lines (170 loc) · 5.36 KB
/
Copy pathCMakePresets.json
File metadata and controls
170 lines (170 loc) · 5.36 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "windows-tiles-sounds-x64-msvc",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows Tiles Sounds x64 MSVC",
"description": "Target Windows (64-bit) with the Visual Studio 2022 development environment.",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/${presetName}.cmake",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build-scripts/MSVC.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"DYNAMIC_LINKING": "False",
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo;Release",
"CURSES": "False",
"LOCALIZE": "True",
"TILES": "True",
"SOUND": "True",
"TESTS": "True",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "linux-slim",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux Slim Build (Tiles, Sounds)",
"description": "Target Linux. Recommended for new contributors.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"USE_PREFIX_DATA_DIR": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LINKER": "mold",
"USE_TRACY": "OFF"
}
},
{
"name": "linux-full",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux Full Build (Tiles, Sounds, Clang-Tidy, Tracy)",
"description": "Target Linux with clang-tidy plugin, and Tracy profiling support",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_INSTALL_PREFIX": "$env{XDG_DATA_HOME}",
"JSON_FORMAT": "ON",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CATA_CLANG_TIDY_PLUGIN": "ON",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"LINKER": "mold",
"USE_XDG_DIR": "ON",
"USE_HOME_DIR": "OFF",
"USE_PREFIX_DATA_DIR": "OFF",
"USE_TRACY": "ON",
"TRACY_VERSION": "master",
"TRACY_ON_DEMAND": "ON",
"TRACY_ONLY_IPV4": "ON"
}
},
{
"name": "dist-tiles",
"binaryDir": "${sourceDir}/build",
"displayName": "Linux Distribution (Tiles, Sounds, Languages)",
"description": "For creating portable distribution packages with tiles and sound.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_BUILD_TYPE": "Release",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"JSON_FORMAT": "ON",
"LINKER": "mold",
"USE_PREFIX_DATA_DIR": "OFF"
}
},
{
"name": "dist-curses",
"binaryDir": "${sourceDir}/build",
"displayName": "Linux Distribution (Curses, Languages)",
"description": "For creating portable distribution packages with curses.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_BUILD_TYPE": "Release",
"CURSES": "ON",
"TILES": "OFF",
"SOUND": "OFF",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"JSON_FORMAT": "ON",
"LINKER": "mold",
"USE_PREFIX_DATA_DIR": "OFF"
}
},
{
"name": "lint",
"binaryDir": "${sourceDir}/build",
"displayName": "Lint and Format Only",
"description": "Minimal build for running formatting targets (astyle, style-json).",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_BUILD_TYPE": "Debug",
"CURSES": "OFF",
"TILES": "OFF",
"SOUND": "OFF",
"TESTS": "OFF",
"JSON_FORMAT": "ON"
}
}
],
"buildPresets": [
{
"name": "linux-slim",
"configurePreset": "linux-slim",
"description": "The minimal build preset for Linux. Recommended for new contributors."
},
{
"name": "linux-full",
"configurePreset": "linux-full",
"description": "The canonical build preset for Linux. This is the one used by the devteam."
},
{
"name": "dist-tiles",
"configurePreset": "dist-tiles",
"targets": ["cataclysm-bn-tiles", "json_formatter", "translations"],
"description": "Build for tiles distribution."
},
{
"name": "dist-curses",
"configurePreset": "dist-curses",
"targets": ["cataclysm-bn", "json_formatter", "translations"],
"description": "Build for curses distribution."
},
{
"name": "lint",
"configurePreset": "lint",
"targets": ["json_formatter"],
"description": "Build formatting tools only."
}
]
}