forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
162 lines (162 loc) · 5.17 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
{
"version": 1,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 0
},
"configurePresets": [
{
"name": "gcc-debug",
"displayName": "GCC (Debug)",
"description": "Debug build using Ninja generator and GCC-compatible compiler",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "gcc-release",
"inherits": "gcc-debug",
"displayName": "GCC (Release)",
"description": "Release build using Ninja generator and GCC-compatible compiler",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "msvc-debug",
"displayName": "MSVC (Debug)",
"description": "Debug build using Ninja generator and MSVC with vcpkg dependencies.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "msvc-release",
"inherits": "msvc-debug",
"displayName": "MSVC (Release)",
"description": "Release build using Ninja generator and MSVC with vcpkg dependencies.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "win32",
"displayName": "Win32 (Visual Studio)",
"description": "Visual Studio-based Win32 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "Win32",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "win64",
"displayName": "Win64 (Visual Studio)",
"description": "Visual Studio-based Win64 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "x64",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"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",
"displayName": "Package ZIP for Windows",
"description": "Build for packaging Windows shared libraries.",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"toolset": "host=x64",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"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",
"hidden": true,
"inherits": "package",
"generator": "Ninja"
},
{
"name": "package-unix-shared",
"inherits": "package-unix",
"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-unix",
"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"
}
}
]
}