-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
92 lines (92 loc) · 2.78 KB
/
Copy pathCMakePresets.json
File metadata and controls
92 lines (92 loc) · 2.78 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 27,
"patch": 0
},
"configurePresets": [
{
"name": "common",
"hidden": true,
"cacheVariables": {
"GLFW_BUILD_X11": "ON",
"GLFW_BUILD_WAYLAND": "ON"
}
},
{
"name": "native",
"hidden": true,
"inherits": ["common"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-march=native"
}
},
{
"name": "debug",
"displayName": "Debug Dev",
"description": "Debug build for development",
"binaryDir": "${sourceDir}/build/Debug",
"inherits": ["native"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_TRACY": "OFF",
"PROCK_CLANG_TIDY": "clang-tidy",
"PROCK_SANITIZE": "ON"
}
},
{
"name": "releasy-tracy",
"displayName": "Release Tracy",
"description": "Release build for development",
"binaryDir": "${sourceDir}/build/RelTracy",
"inherits": ["native"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"ENABLE_TRACY": "ON",
"CMAKE_CXX_FLAGS": "-march=native -DTRACY_CALLSTACK=16"
}
},
{
"name": "release",
"displayName": "Release",
"description": "Release build for production (native arch, LTO)",
"binaryDir": "${sourceDir}/build/Release",
"inherits": ["native"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_TRACY": "OFF",
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON"
}
},
{
"name": "release-x11",
"displayName": "Release X11",
"description": "Release build with Wayland disabled",
"binaryDir": "${sourceDir}/build/ReleaseX11",
"inherits": ["release"],
"cacheVariables": {
"GLFW_BUILD_WAYLAND": "OFF"
}
},
{
"name": "publish",
"displayName": "Publish",
"description": "Portable release build (zig cc, generic x86-64, glibc 2.17, static libc++, LTO, no unwind tables) for distribution",
"binaryDir": "${sourceDir}/build/Publish",
"inherits": ["common"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_TRACY": "OFF",
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON",
"BUILD_TESTS": "OFF",
"CMAKE_C_COMPILER": "zig;cc;-target;x86_64-linux-gnu.2.17",
"CMAKE_CXX_COMPILER": "zig;c++;-target;x86_64-linux-gnu.2.17",
"CMAKE_C_FLAGS": "-Wno-macro-redefined -Wno-nullability-completeness -fno-asynchronous-unwind-tables -fno-unwind-tables",
"CMAKE_CXX_FLAGS": "-Wno-macro-redefined -Wno-nullability-completeness -fno-asynchronous-unwind-tables -fno-unwind-tables",
"CMAKE_LINK_DEPENDS_USE_LINKER": "OFF",
"CMAKE_EXE_LINKER_FLAGS": "-s"
}
}
]
}