Shader copying now is a pre-build step
This commit is contained in:
parent
16b61986a1
commit
82e0f473fb
@ -32,14 +32,6 @@ project "BarinkEngine"
|
|||||||
"../libs/ImGui"
|
"../libs/ImGui"
|
||||||
}
|
}
|
||||||
|
|
||||||
links {
|
|
||||||
"phonon",
|
|
||||||
"lua54",
|
|
||||||
"spdlog",
|
|
||||||
"assimp-vc143-mtd",
|
|
||||||
"glfw3"
|
|
||||||
}
|
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"../libs/ImGui/*.cpp",
|
"../libs/ImGui/*.cpp",
|
||||||
"../libs/ImGui/backends/imgui_impl_glfw.cpp",
|
"../libs/ImGui/backends/imgui_impl_glfw.cpp",
|
||||||
@ -53,17 +45,29 @@ project "BarinkEngine"
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
filter { "system:windows"}
|
||||||
|
prebuildcommands {
|
||||||
|
-- Copy shaders
|
||||||
|
"copy graphics\\shaders\\fragment.shader ..\\build\\SandboxApplication\\Debug\\test.fs",
|
||||||
|
"copy graphics\\shaders\\vertex.shader ..\\build\\SandboxApplication\\Debug\\test.vs",
|
||||||
|
"copy graphics\\shaders\\RenderSurfaceFrag.shader ..\\build\\SandboxApplication\\Debug\\RenderSurface.fs",
|
||||||
|
"copy graphics\\shaders\\RenderSurfaceVert.shader ..\\build\\SandboxApplication\\Debug\\RenderSurface.vs"
|
||||||
|
}
|
||||||
|
|
||||||
-- NOTE: make these copy instructions more flexible
|
links {
|
||||||
ok, err = os.copyfile("graphics/shaders/fragment.shader", "../build/SandboxApplication/Debug/test.fs")
|
-- This needs to fall under the filter as the names can differ on different platforms
|
||||||
if err then error("Copy fragment shader source failed!") end
|
"phonon",
|
||||||
|
"lua54",
|
||||||
ok, err = os.copyfile("graphics/shaders/vertex.shader", "../build/SandboxApplication/Debug/test.vs")
|
"spdlog",
|
||||||
if err then error("Copy vertex shader source failed!") end
|
"assimp-vc143-mtd",
|
||||||
|
"glfw3"
|
||||||
ok, err = os.copyfile("graphics/shaders/RenderSurfaceFrag.shader", "../build/SandboxApplication/Debug/RenderSurface.fs")
|
}
|
||||||
if err then error("Copy fragment shader source failed!") end
|
|
||||||
|
|
||||||
ok, err = os.copyfile("graphics/shaders/RenderSurfaceVert.shader", "../build/SandboxApplication/Debug/RenderSurface.vs")
|
|
||||||
if err then error("Copy vertex shader source failed!") end
|
|
||||||
|
|
||||||
|
filter { "system:linux" }
|
||||||
|
prebuildcommands {
|
||||||
|
-- Copy shaders
|
||||||
|
"cp graphics/shaders/fragment.shader ../build/SandboxApplication/Debug/test.fs",
|
||||||
|
"cp graphics/shaders/vertex.shader ../build/SandboxApplication/Debug/test.vs",
|
||||||
|
"cp graphics/shaders/RenderSurfaceFrag.shader ../build/SandboxApplication/Debug/RenderSurface.fs",
|
||||||
|
"cp graphics/shaders/RenderSurfaceVert.shader ../build/SandboxApplication/Debug/RenderSurface.vs"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user