yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Gangzheng TongUpdate slang-rhi deps for gfx-unit-test (#8237)0b87355f9

master
7.7 KiB315 linesraw
1{
2  "version": 6,
3  "cmakeMinimumRequired": {
4    "major": 3,
5    "minor": 25,
6    "patch": 0
7  },
8  "configurePresets": [
9    {
10      "name": "default",
11      "description": "Default build using Ninja Multi-Config generator",
12      "generator": "Ninja Multi-Config",
13      "binaryDir": "${sourceDir}/build",
14      "cacheVariables": {
15        "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>",
16        "SLANG_ENABLE_IR_BREAK_ALLOC": "$<$<CONFIG:Debug>:TRUE>$<$<NOT:$<CONFIG:Debug>>:FALSE>",
17        "CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo;MinSizeRel"
18      }
19    },
20    {
21      "name": "emscripten",
22      "description": "Emscripten-based Wasm build",
23      "generator": "Ninja Multi-Config",
24      "binaryDir": "${sourceDir}/build.em",
25      "cacheVariables": {
26        "SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
27        "SLANG_ENABLE_AFTERMATH": "OFF",
28        "SLANG_ENABLE_CUDA": "OFF",
29        "SLANG_ENABLE_GFX": "OFF",
30        "SLANG_ENABLE_OPTIX": "OFF",
31        "SLANG_ENABLE_REPLAYER": "OFF",
32        "SLANG_ENABLE_SLANG_RHI": "OFF",
33        "SLANG_ENABLE_SPLIT_DEBUG_INFO": "OFF",
34        "SLANG_ENABLE_TESTS": "OFF",
35        "CMAKE_C_FLAGS_INIT": "-fwasm-exceptions -Os",
36        "CMAKE_CXX_FLAGS_INIT": "-fwasm-exceptions -Os",
37        "CMAKE_EXE_LINKER_FLAGS": "-sASSERTIONS -sALLOW_MEMORY_GROWTH -fwasm-exceptions --export=__cpp_exception"
38      }
39    },
40    {
41      "name": "msvc-base",
42      "hidden": true,
43      "inherits": "default",
44      "description": "Options specific for MSVC",
45      "cacheVariables": {
46        "CMAKE_C_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP",
47        "CMAKE_CXX_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP"
48      }
49    },
50    {
51      "name": "vs2019",
52      "inherits": "msvc-base",
53      "description": "Visual Studio 2019 project",
54      "generator": "Visual Studio 16 2019"
55    },
56    {
57      "name": "vs2019-dev",
58      "inherits": "msvc-base",
59      "description": "Visual Studio 2019 project with debug assisting features",
60      "generator": "Visual Studio 16 2019",
61      "cacheVariables": {
62        "SLANG_ENABLE_IR_BREAK_ALLOC": "TRUE"
63      }
64    },
65    {
66      "name": "vs2022",
67      "inherits": "msvc-base",
68      "description": "Visual Studio 2022 project",
69      "generator": "Visual Studio 17 2022"
70    },
71    {
72      "name": "vs2022-dev",
73      "inherits": "msvc-base",
74      "description": "Visual Studio 2022 project with debug assisting features",
75      "generator": "Visual Studio 17 2022",
76      "cacheVariables": {
77        "SLANG_ENABLE_IR_BREAK_ALLOC": "TRUE"
78      }
79    },
80    {
81      "name": "slang-llvm",
82      "inherits": "default",
83      "description": "Build slang-llvm from the system LLVM",
84      "cacheVariables": {
85        "SLANG_SLANG_LLVM_FLAVOR": "USE_SYSTEM_LLVM"
86      }
87    },
88    {
89      "name": "generators",
90      "inherits": "default",
91      "description": "Build the compile time generators used in building Slang",
92      "cacheVariables": {
93        "SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
94        "SLANG_ENABLE_SLANG_RHI": false,
95        "SLANG_ENABLE_TESTS": false
96      }
97    }
98  ],
99  "buildPresets": [
100    {
101      "name": "debug",
102      "configurePreset": "default",
103      "configuration": "Debug"
104    },
105    {
106      "name": "release",
107      "configurePreset": "default",
108      "configuration": "Release"
109    },
110    {
111      "name": "releaseWithDebugInfo",
112      "configurePreset": "default",
113      "configuration": "RelWithDebInfo"
114    },
115    {
116      "name": "minSizeRel",
117      "configurePreset": "default",
118      "configuration": "MinSizeRel"
119    },
120    {
121      "name": "vs2022-debug",
122      "configurePreset": "vs2022",
123      "configuration": "Debug"
124    },
125    {
126      "name": "vs2022-release",
127      "configurePreset": "vs2022",
128      "configuration": "Release"
129    },
130    {
131      "name": "vs2022-releaseWithDebugInfo",
132      "configurePreset": "vs2022",
133      "configuration": "RelWithDebInfo"
134    },
135    {
136      "name": "emscripten",
137      "configurePreset": "emscripten",
138      "configuration": "Release",
139      "targets": ["slang-wasm"]
140    },
141    {
142      "name": "generators",
143      "inherits": "release",
144      "configurePreset": "generators",
145      "targets": ["all-generators"]
146    },
147    {
148      "name": "slang-llvm",
149      "inherits": "release",
150      "configurePreset": "slang-llvm",
151      "targets": ["slang-llvm"]
152    }
153  ],
154  "packagePresets": [
155    {
156      "name": "base",
157      "hidden": true,
158      "configurePreset": "default",
159      "generators": ["ZIP"],
160      "variables": {
161        "CPACK_PACKAGE_FILE_NAME": "slang",
162        "CPACK_COMPONENTS_ALL": "Unspecified;metadata;slang-llvm"
163      }
164    },
165    {
166      "name": "base-debug-info",
167      "inherits": "base",
168      "variables": {
169        "CPACK_PACKAGE_FILE_NAME": "slang-debug-info",
170        "CPACK_COMPONENTS_ALL": "debug-info"
171      }
172    },
173    {
174      "name": "release",
175      "inherits": "base",
176      "configurations": ["Release"],
177      "packageDirectory": "dist-release"
178    },
179    {
180      "name": "releaseWithDebugInfo",
181      "inherits": "base",
182      "configurations": ["RelWithDebInfo"],
183      "packageDirectory": "dist-releaseWithDebugInfo"
184    },
185    {
186      "name": "debug",
187      "inherits": "base",
188      "configurations": ["Debug"],
189      "packageDirectory": "dist-debug"
190    },
191    {
192      "name": "release-debug-info",
193      "inherits": "base-debug-info",
194      "configurations": ["Release"],
195      "packageDirectory": "dist-release-debug-info"
196    },
197    {
198      "name": "releaseWithDebugInfo-debug-info",
199      "inherits": "base-debug-info",
200      "configurations": ["RelWithDebInfo"],
201      "packageDirectory": "dist-releaseWithDebugInfo-debug-info"
202    },
203    {
204      "name": "debug-debug-info",
205      "inherits": "base-debug-info",
206      "configurations": ["Debug"],
207      "packageDirectory": "dist-debug-debug-info"
208    },
209    {
210      "name": "generators",
211      "inherits": "release",
212      "configurePreset": "generators",
213      "variables": {
214        "CPACK_PACKAGE_FILE_NAME": "slang-generators",
215        "CPACK_COMPONENTS_ALL": "generators"
216      }
217    },
218    {
219      "name": "slang-llvm",
220      "inherits": "release",
221      "configurePreset": "slang-llvm",
222      "variables": {
223        "CPACK_PACKAGE_FILE_NAME": "slang-llvm",
224        "CPACK_COMPONENTS_ALL": "slang-llvm"
225      }
226    }
227  ],
228  "workflowPresets": [
229    {
230      "name": "debug",
231      "steps": [
232        {
233          "type": "configure",
234          "name": "default"
235        },
236        {
237          "type": "build",
238          "name": "debug"
239        },
240        {
241          "type": "package",
242          "name": "debug"
243        }
244      ]
245    },
246    {
247      "name": "release",
248      "steps": [
249        {
250          "type": "configure",
251          "name": "default"
252        },
253        {
254          "type": "build",
255          "name": "release"
256        },
257        {
258          "type": "package",
259          "name": "release"
260        }
261      ]
262    },
263    {
264      "name": "releaseWithDebugInfo",
265      "steps": [
266        {
267          "type": "configure",
268          "name": "default"
269        },
270        {
271          "type": "build",
272          "name": "releaseWithDebugInfo"
273        },
274        {
275          "type": "package",
276          "name": "releaseWithDebugInfo"
277        }
278      ]
279    },
280    {
281      "name": "generators",
282      "steps": [
283        {
284          "type": "configure",
285          "name": "generators"
286        },
287        {
288          "type": "build",
289          "name": "generators"
290        },
291        {
292          "type": "package",
293          "name": "generators"
294        }
295      ]
296    },
297    {
298      "name": "slang-llvm",
299      "steps": [
300        {
301          "type": "configure",
302          "name": "slang-llvm"
303        },
304        {
305          "type": "build",
306          "name": "slang-llvm"
307        },
308        {
309          "type": "package",
310          "name": "slang-llvm"
311        }
312      ]
313    }
314  ]
315}