diff options
| author | Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com> | 2024-02-14 15:29:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 22:29:55 +0800 |
| commit | 7414252b091c89381a05aea987750666e86b6b35 (patch) | |
| tree | 07a7d5d3b5a6638cbda7380b2a3dca5df55a7f80 /docs | |
| parent | 2e35b08d279b4eb37a359941a06970cdea973502 (diff) | |
cmake: add options to disable gfx, test, example, ... targets (#3572)
* cmake: add options to disable gfx, test and example targets
* cmake: enable gfx, test, example targets by default
* cmake: use same naming scheme
* cmake: option to disable slangd and slangc targets
* cmake: option for enabling slang-rt target
* cmake: option to deactivate llvm and glslang
* cmake: better option text
* cmake: remove duplicate slang-llvm option
* doc: update docs/building.md
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/building.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/building.md b/docs/building.md index 5c48d0493..3cac636a1 100644 --- a/docs/building.md +++ b/docs/building.md @@ -253,6 +253,13 @@ See the [documentation on testing](../tools/slang-test/README.md) for more infor | `SLANG_EMBED_STDLIB_SOURCE` | `TRUE` | Embed stdlib source in the binary | | `SLANG_ENABLE_ASAN` | `FALSE` | Enable ASAN (address sanitizer) | | `SLANG_ENABLE_FULL_IR_VALIDATION` | `FALSE` | Enable full IR validation (SLOW!) | +| `SLANG_ENABLE_GFX` | `TRUE` | Enable gfx targets | +| `SLANG_ENABLE_SLANGD` | `TRUE` | Enable language server target | +| `SLANG_ENABLE_SLANGC` | `TRUE` | Enable standalone compiler target | +| `SLANG_ENABLE_SLANGRT` | `TRUE` | Enable runtime target | +| `SLANG_ENABLE_SLANG_GLSLANG` | `TRUE` | Enable glslang dependency and slang-glslang wrapper target | +| `SLANG_ENABLE_TESTS` | `TRUE` | Enable test targets, requires SLANG_ENABLE_GFX, SLANG_ENABLE_SLANGD and SLANG_ENABLE_SLANGRT | +| `SLANG_ENABLE_EXAMPLES` | `TRUE` | Enable example targets, requires SLANG_ENABLE_GFX | | `SLANG_SLANG_LLVM_FLAVOR` | `FETCH_BINARY` | How to set up llvm support | | `SLANG_SLANG_LLVM_BINARY_URL` | System dependent | URL specifying the location of the slang-llvm prebuilt library | | `SLANG_GENERATORS_PATH` | `` | Path to an installed `all-generators` target for cross compilation | |
