aboutsummaryrefslogtreecommitdiff
path: root/rcc/CMakePresets.json
blob: 4e32d8b6a5b81995db1d5b4df8f56ceec8c0b64f (plain)
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
{
  "version": 6,
  "cmakeMinimumRequired": { "major": 3, "minor": 25, "patch": 0 },
  "configurePresets": [
    {
      "name": "ninja",
      "hidden": true,
      "generator": "Ninja",
      "binaryDir": "${sourceDir}/../build/${presetName}",
      "cacheVariables": { "CMAKE_EXPORT_COMPILE_COMMANDS": true }
    },
    {
      "name": "debug",
      "hidden": true,
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Debug",
        "RCC_ENABLE_ASSERTIONS": true
      }
    },
    {
      "name": "release",
      "hidden": true,
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "RCC_ENABLE_ASSERTIONS": false
      }
    },
    {
      "name": "assertions",
      "hidden": true,
      "cacheVariables": { "RCC_ENABLE_ASSERTIONS": true }
    },
    {
      "name": "asan-ubsan",
      "hidden": true,
      "cacheVariables": { "RCC_USE_SANITIZER": "Address;Undefined" }
    },
    {
      "name": "with-cfront",
      "hidden": true,
      "cacheVariables": { "RCC_ENABLE_PROJECTS": "cfront" }
    },
    {
      "name": "dev",
      "displayName": "RCC debug build",
      "inherits": ["ninja", "debug"]
    },
    {
      "name": "dev-cfront",
      "displayName": "RCC and CFront debug build",
      "inherits": ["with-cfront", "dev"]
    },
    {
      "name": "release-assertions",
      "displayName": "RCC release build with assertions",
      "inherits": ["ninja", "assertions", "release"]
    },
    {
      "name": "sanitize",
      "displayName": "RCC debug build with ASan and UBSan",
      "inherits": ["asan-ubsan", "dev"]
    }
  ],
  "buildPresets": [
    { "name": "dev", "configurePreset": "dev" },
    { "name": "dev-cfront", "configurePreset": "dev-cfront" },
    { "name": "release-assertions", "configurePreset": "release-assertions" },
    { "name": "sanitize", "configurePreset": "sanitize" }
  ]
}