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"
|
||||||
|
}
|
||||||
|
|
||||||
|
links {
|
||||||
|
-- This needs to fall under the filter as the names can differ on different platforms
|
||||||
|
"phonon",
|
||||||
|
"lua54",
|
||||||
|
"spdlog",
|
||||||
|
"assimp-vc143-mtd",
|
||||||
|
"glfw3"
|
||||||
|
}
|
||||||
|
|
||||||
-- NOTE: make these copy instructions more flexible
|
filter { "system:linux" }
|
||||||
ok, err = os.copyfile("graphics/shaders/fragment.shader", "../build/SandboxApplication/Debug/test.fs")
|
prebuildcommands {
|
||||||
if err then error("Copy fragment shader source failed!") end
|
-- Copy shaders
|
||||||
|
"cp graphics/shaders/fragment.shader ../build/SandboxApplication/Debug/test.fs",
|
||||||
ok, err = os.copyfile("graphics/shaders/vertex.shader", "../build/SandboxApplication/Debug/test.vs")
|
"cp graphics/shaders/vertex.shader ../build/SandboxApplication/Debug/test.vs",
|
||||||
if err then error("Copy vertex shader source failed!") end
|
"cp graphics/shaders/RenderSurfaceFrag.shader ../build/SandboxApplication/Debug/RenderSurface.fs",
|
||||||
|
"cp graphics/shaders/RenderSurfaceVert.shader ../build/SandboxApplication/Debug/RenderSurface.vs"
|
||||||
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
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user