Skip to content

Commit

Permalink
Added post-build commands for copying Vulkan .dlls to output directory (
Browse files Browse the repository at this point in the history
  • Loading branch information
CybernetHacker14 authored Jul 8, 2021
1 parent d9552e2 commit 04ad1c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dependencies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ LibraryDir = {}

LibraryDir["VulkanSDK"] = "%{VULKAN_SDK}/Lib"
LibraryDir["VulkanSDK_Debug"] = "%{wks.location}/Hazel/vendor/VulkanSDK/Lib"
LibraryDir["VulkanSDK_DebugDLL"] = "%{wks.location}/Hazel/vendor/VulkanSDK/Bin"

Library = {}
Library["Vulkan"] = "%{LibraryDir.VulkanSDK}/vulkan-1.lib"
Expand Down
5 changes: 5 additions & 0 deletions Hazelnut/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ project "Hazelnut"
defines "HZ_DEBUG"
runtime "Debug"
symbols "on"

postbuildcommands
{
"{COPYDIR} \"%{LibraryDir.VulkanSDK_DebugDLL}\" \"%{cfg.targetdir}\""
}

filter "configurations:Release"
defines "HZ_RELEASE"
Expand Down
5 changes: 5 additions & 0 deletions Sandbox/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ project "Sandbox"
defines "HZ_DEBUG"
runtime "Debug"
symbols "on"

postbuildcommands
{
"{COPYDIR} \"%{LibraryDir.VulkanSDK_DebugDLL}\" \"%{cfg.targetdir}\""
}

filter "configurations:Release"
defines "HZ_RELEASE"
Expand Down

0 comments on commit 04ad1c8

Please sign in to comment.