summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt10
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DLLMain.cpp3
2 files changed, 3 insertions, 10 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index e96ba9a5..fc1d59b4 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -149,14 +149,12 @@ add_library(GraphicsEngineVk-static STATIC
)
add_library(GraphicsEngineVk-shared SHARED
- ${SRC} ${VULKAN_UTILS_SRC} ${INTERFACE} ${INCLUDE} ${VULKAN_UTILS_INCLUDE} ${GENERATE_MIPS_SHADER} ${GENERATE_MIPS_SHADER_INC}
src/DLLMain.cpp
src/GraphicsEngineVk.def
readme.md
)
add_dependencies(GraphicsEngineVk-static ProcessGenerateMipsVkShader)
-add_dependencies(GraphicsEngineVk-shared ProcessGenerateMipsVkShader)
target_include_directories(GraphicsEngineVk-static
PRIVATE
@@ -164,12 +162,6 @@ PRIVATE
../../External/vulkan
)
-target_include_directories(GraphicsEngineVk-shared
-PRIVATE
- include
- ../../External/vulkan
-)
-
set(PRIVATE_DEPENDENCIES
BuildSettings
Common
@@ -190,7 +182,7 @@ set(PUBLIC_DEPENDENCIES
target_link_libraries(GraphicsEngineVk-static PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
-target_link_libraries(GraphicsEngineVk-shared PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
+target_link_libraries(GraphicsEngineVk-shared PUBLIC GraphicsEngineVk-static)
target_compile_definitions(GraphicsEngineVk-shared PUBLIC ENGINE_DLL=1)
diff --git a/Graphics/GraphicsEngineVulkan/src/DLLMain.cpp b/Graphics/GraphicsEngineVulkan/src/DLLMain.cpp
index 58b1c375..419f9921 100644
--- a/Graphics/GraphicsEngineVulkan/src/DLLMain.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DLLMain.cpp
@@ -21,7 +21,8 @@
* of the possibility of such damages.
*/
-#include "pch.h"
+#include <Windows.h>
+#include <crtdbg.h>
BOOL APIENTRY DllMain(HANDLE hModule,
DWORD ul_reason_for_call,