Update premake_helper.lua

This commit is contained in:
Reece Wilson 2020-10-05 20:36:44 +01:00 committed by GitHub
parent 2b05b35a3e
commit 9ddab84772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,12 @@ function genProject(path)
table.insert(projectFiles, path .. "/DirectXTex/DirectXTexCompress.cpp")
end
local cmd = "\"" .. path .. "\\DirectXTex\\Shaders\\CompileShaders.cmd\" " .. "\"" .. path .. "\\DirectXTex\\Shaders";
print("fxc compile script", cmd)
local cmd = "\"%{wks.location}..\\" .. path .. "\\DirectXTex\\Shaders\\CompileShaders.cmd\" " .. "\"%{wks.location}..\\" .. path .. "\\DirectXTex\\Shaders\"";
if (_G.win32) then
buildcommands { cmd }
print("fxc compile script", cmd)
prebuildcommands { cmd }
end
defines
@ -64,8 +65,8 @@ function genProject(path)
includedirs
{
path .. "/DirectXTex",
path .. "/DirectXMath",
path .. "/PlatformSupport"
path .. "/../DirectXMath/Include",
path .. "/../PlatformSupport"
}
end