diff options
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua index 57658d6d7..f83499ce2 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1305,6 +1305,22 @@ end dependson { "run-generators" } + -- If we have slang-llvm copy it + local slangLLVMPath = deps:getProjectRelativePath("slang-llvm", "../../..") + + if slangLLVMPath then + + filter { "system:windows" } + postbuildcommands { + "{COPY} " .. slangLLVMPath .."/bin/" .. targetName .. "/release/slang-llvm.dll %{cfg.targetdir}" + } + + filter { "system:linux" } + postbuildcommands { + "{COPY} " .. slangLLVMPath .. "/bin/" .. targetName .. "/release/libslang-llvm.so %{cfg.targetdir}" + } + end + -- If we are not building glslang from source, then be -- sure to copy a binary copy over to the output directory if not buildGlslang then |
