forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
179 lines (179 loc) · 4.98 KB
/
CMakePresets.json
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
171
172
173
174
175
176
177
178
179
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"hidden": true,
"binaryDir": "build/${presetName}",
"installDir": "install/${presetName}"
},
{
"name": "windows-only",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "vcpkg",
"hidden": true,
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "vs2019",
"hidden": true,
"inherits": [
"vcpkg",
"windows-only"
],
"generator": "Visual Studio 16 2019",
"toolset": "host=x64"
},
{
"name": "debug",
"inherits": "default",
"displayName": "Debug",
"description": "Debug build with no special settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"inherits": "default",
"displayName": "Release",
"description": "Release build with no special settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "debian-debug",
"inherits": "debug",
"displayName": "Debian (Debug)",
"description": "Debug build assuming Debian-provided dependencies",
"cacheVariables": {
"Halide_SHARED_LLVM": "ON"
}
},
{
"name": "debian-release",
"inherits": "debian-debug",
"displayName": "Debian (Release)",
"description": "Release build assuming Debian-provided dependencies",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "win32",
"inherits": [
"vs2019",
"default"
],
"displayName": "Win32 (Visual Studio)",
"description": "Visual Studio-based Win32 build with vcpkg dependencies.",
"architecture": "Win32"
},
{
"name": "win64",
"inherits": [
"vs2019",
"default"
],
"displayName": "Win64 (Visual Studio)",
"description": "Visual Studio-based x64 build with vcpkg dependencies.",
"architecture": "x64"
},
{
"name": "package",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"LLVM_DIR": "$env{LLVM_DIR}",
"Clang_DIR": "$env{Clang_DIR}",
"LLD_DIR": "$env{LLD_DIR}",
"WITH_TESTS": "NO",
"WITH_TUTORIALS": "NO",
"WITH_DOCS": "YES",
"WITH_UTILS": "NO",
"WITH_PYTHON_BINDINGS": "NO",
"CMAKE_INSTALL_DATADIR": "share/Halide"
}
},
{
"name": "package-windows",
"inherits": [
"package",
"vs2019"
],
"displayName": "Package ZIP for Windows",
"description": "Build for packaging Windows shared libraries.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"BUILD_SHARED_LIBS": "YES",
"CMAKE_INSTALL_BINDIR": "bin/$<CONFIG>",
"CMAKE_INSTALL_LIBDIR": "lib/$<CONFIG>",
"Halide_INSTALL_CMAKEDIR": "lib/cmake/Halide",
"Halide_INSTALL_HELPERSDIR": "lib/cmake/HalideHelpers"
}
},
{
"name": "package-unix-shared",
"inherits": "package",
"displayName": "Package UNIX shared libs",
"description": "Build for packaging UNIX shared libraries.",
"binaryDir": "shared-Release",
"cacheVariables": {
"BUILD_SHARED_LIBS": "YES"
}
},
{
"name": "package-unix-static",
"inherits": "package",
"displayName": "Package UNIX static libs",
"description": "Build for packaging UNIX static libraries.",
"binaryDir": "static-Release",
"cacheVariables": {
"BUILD_SHARED_LIBS": "NO",
"Halide_BUNDLE_LLVM": "YES"
}
},
{
"name": "package-ubuntu-shared",
"inherits": "package-unix-shared",
"displayName": "Package shared Halide for Ubuntu",
"description": "Package shared Halide for Ubuntu, using system packages.",
"binaryDir": "shared-release",
"cacheVariables": {
"Halide_SHARED_LLVM": "YES",
"LLVM_DIR": "$env{LLVM_ROOT}/lib/cmake/llvm",
"Clang_DIR": "$env{LLVM_ROOT}/lib/cmake/clang",
"LLD_DIR": "$env{LLVM_ROOT}/lib/cmake/lld",
"CMAKE_INSTALL_INCLUDEDIR": "include/Halide",
"CMAKE_INSTALL_LIBDIR": "lib/x86_64-linux-gnu",
"Halide_INSTALL_PLUGINDIR": "lib/x86_64-linux-gnu/Halide",
"Halide_INSTALL_HELPERSDIR": "lib/cmake/HalideHelpers",
"CMAKE_STRIP": "${sourceDir}/packaging/ubuntu/extra-strip.sh"
}
},
{
"name": "package-ubuntu-static",
"inherits": "package-ubuntu-shared",
"displayName": "Package static Halide for Ubuntu",
"description": "Package static Halide for Ubuntu, using system packages.",
"binaryDir": "static-release",
"cacheVariables": {
"BUILD_SHARED_LIBS": "NO",
"WITH_DOCS": "NO"
}
}
]
}