From 25c17b9fcbf7a21e9fa19c4a8f08b0406437be24 Mon Sep 17 00:00:00 2001 From: Tobias Frisch Date: Fri, 4 Oct 2024 10:34:12 +0200 Subject: Allow building using external dependencies (#5076) * Add options to prevent usage of own submodules Signed-off-by: Jacki * Allow using external unordered dense headers Signed-off-by: Jacki * Link system wide installed unordered dense Signed-off-by: Jacki * Allow external header usage for lz4 and spirv Signed-off-by: Jacki * Add more options to disable targets Signed-off-by: Jacki * Add option to provide explizit path for spirv headers and remove earlier options that break the build process Signed-off-by: Jacki * Rename options to use common prefix Signed-off-by: Jacki * Fix indentation for the cmake changes Signed-off-by: Jacki * Add advanced_option function for cmake * Normalize includes between system and submodule dependencies Fix any before-accidentally-working problems * Add option for enabling/disabling slang-rhi Signed-off-by: Jacki * Pass correct include path for cpu tests * Correct include path --------- Signed-off-by: Jacki Co-authored-by: Ellie Hermaszewska --- source/core/slang-dictionary.h | 4 +++- source/core/slang-hash.h | 4 +++- source/core/slang-lz4-compression-system.cpp | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'source/core') diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h index ba4672740..9c445c3c9 100644 --- a/source/core/slang-dictionary.h +++ b/source/core/slang-dictionary.h @@ -8,7 +8,9 @@ #include "slang-exception.h" #include "slang-math.h" #include "slang-hash.h" -#include "../../external/unordered_dense/include/ankerl/unordered_dense.h" + +#include + #include namespace Slang diff --git a/source/core/slang-hash.h b/source/core/slang-hash.h index 784f7fd23..3e255f7db 100644 --- a/source/core/slang-hash.h +++ b/source/core/slang-hash.h @@ -3,7 +3,9 @@ #include "../../include/slang.h" #include "slang-math.h" -#include "../../external/unordered_dense/include/ankerl/unordered_dense.h" + +#include + #include #include diff --git a/source/core/slang-lz4-compression-system.cpp b/source/core/slang-lz4-compression-system.cpp index c20b457df..1e2ab9558 100644 --- a/source/core/slang-lz4-compression-system.cpp +++ b/source/core/slang-lz4-compression-system.cpp @@ -5,7 +5,7 @@ #include "slang-blob.h" -#include "../../external/lz4/lib/lz4.h" +#include namespace Slang { -- cgit v1.2.3