From 7b570feed42976a6e787d79a70aaf8e667745e58 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 14 Nov 2024 12:34:18 +0800 Subject: Correct include dir for libslang (#5539) This stops adding the repo root to the include path for anything linking with slang. This enabled a bunch of convenient includes, but might lead to confusing behavior for anyone including slang. Not to mention differences including it from an install vs source. Co-authored-by: Yong He --- examples/example-base/example-base.cpp | 2 +- examples/example-base/example-base.h | 6 +++--- examples/example-base/test-base.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/example-base') diff --git a/examples/example-base/example-base.cpp b/examples/example-base/example-base.cpp index 9fee95dfe..9d5f1bcae 100644 --- a/examples/example-base/example-base.cpp +++ b/examples/example-base/example-base.cpp @@ -7,7 +7,7 @@ #endif #define STB_IMAGE_IMPLEMENTATION -#include "external/stb/stb_image.h" +#include "stb_image.h" using namespace Slang; using namespace gfx; diff --git a/examples/example-base/example-base.h b/examples/example-base/example-base.h index c10231c14..0cb3de7e9 100644 --- a/examples/example-base/example-base.h +++ b/examples/example-base/example-base.h @@ -1,10 +1,10 @@ #pragma once +#include "core/slang-basic.h" +#include "core/slang-io.h" +#include "platform/window.h" #include "slang-gfx.h" -#include "source/core/slang-basic.h" -#include "source/core/slang-io.h" #include "test-base.h" -#include "tools/platform/window.h" #ifdef _WIN32 void _Win32OutputDebugString(const char* str); diff --git a/examples/example-base/test-base.h b/examples/example-base/test-base.h index 3f600eae7..293c9f0d8 100644 --- a/examples/example-base/test-base.h +++ b/examples/example-base/test-base.h @@ -1,8 +1,8 @@ #pragma once +#include "core/slang-string-util.h" #include "slang-com-ptr.h" #include "slang.h" -#include "source/core/slang-string-util.h" using Slang::ComPtr; -- cgit v1.2.3