capstone
/
CMakePresets.json
133 строки · 3.9 Кб
1{
2"version": 3,
3"configurePresets": [
4{
5"name": "locations-base",
6"hidden": true,
7"binaryDir": "${sourceDir}/build/${presetName}",
8"installDir": "${sourceDir}/out/install/${presetName}"
9},
10{
11"name": "warnings-base",
12"hidden": true,
13"warnings": {
14"dev": true,
15"deprecated": true,
16"systemVars": true
17},
18"errors": {
19"dev": true,
20"deprecated": false
21}
22},
23{
24"name": "ninja",
25"hidden": true,
26"displayName": "Ninja",
27"generator": "Ninja Multi-Config",
28"cacheVariables": {
29"CMAKE_DEFAULT_BUILD_TYPE": "Debug"
30}
31},
32{
33"name": "x64",
34"hidden": true,
35"architecture": {
36"value": "x64",
37"strategy": "external"
38}
39},
40{
41"name": "linux-x64",
42"inherits": [ "ninja", "x64", "locations-base", "warnings-base" ],
43"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
44},
45{
46"name": "macos-x64",
47"inherits": [ "ninja", "x64", "locations-base", "warnings-base" ],
48"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
49},
50{
51"name": "windows-x64",
52"inherits": [ "ninja", "x64", "locations-base", "warnings-base" ],
53"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
54}
55],
56"buildPresets": [
57{
58"name": "build-linux",
59"configurePreset": "linux-x64",
60"nativeToolOptions": [ "-v" ],
61"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
62},
63{
64"name": "build-macos",
65"configurePreset": "macos-x64",
66"nativeToolOptions": [ "-v" ],
67"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
68},
69{
70"name": "build-windows",
71"configurePreset": "windows-x64",
72"nativeToolOptions": [ "-v" ],
73"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
74},
75{
76"name": "build-linux-release",
77"inherits": "build-linux",
78"configuration": "Release",
79"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
80},
81{
82"name": "build-macos-release",
83"inherits": "build-macos",
84"configuration": "Release",
85"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
86},
87{
88"name": "build-windows-release",
89"inherits": "build-windows",
90"configuration": "Release",
91"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
92},
93{
94"name": "install-linux",
95"configurePreset": "linux-x64",
96"inherits": "build-linux",
97"targets": [ "install" ],
98"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
99},
100{
101"name": "install-macos",
102"configurePreset": "macos-x64",
103"inherits": "build-macos",
104"targets": [ "install" ],
105"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
106},
107{
108"name": "install-windows",
109"configurePreset": "windows-x64",
110"inherits": "build-windows",
111"targets": [ "install" ],
112"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
113},
114{
115"name": "install-linux-release",
116"inherits": "install-linux",
117"configuration": "Release",
118"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
119},
120{
121"name": "install-macos-release",
122"inherits": "install-macos",
123"configuration": "Release",
124"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
125},
126{
127"name": "install-windows-release",
128"inherits": "install-windows",
129"configuration": "Release",
130"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
131}
132]
133}
134