summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index 390d67a92..9bb41e71b 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -366,8 +366,14 @@ tool "render-test"
includedirs { ".", "external", "source" }
links { "core", "slang" }
filter { "system:windows" }
+
systemversion "10.0.14393.0"
+ -- For Windows targets, we want to copy d3dcompiler_47.dll,
+ -- dxcompiler.dll, and dxil.dll from the Windows SDK redistributable
+ -- directory into the output directory.
+ postbuildcommands { '"$(SolutionDir)tools\\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/%{cfg.platform:lower()}/" "%{cfg.targetdir}/"'}
+
--
-- The `slangc` command-line application is just a very thin wrapper
-- around the Slang dynamic library, so its build is extermely simple.