Improved shader definition loader
This commit is contained in:
18
premake5.lua
18
premake5.lua
@ -4,7 +4,7 @@ workspace "BarinkEngine"
|
||||
cppdialect "C++17"
|
||||
targetdir "./build/%{prj.name}/%{cfg.buildcfg}"
|
||||
objdir "./intermediates/%{prj.name}/%{cfg.buildcfg}"
|
||||
|
||||
architecture "x86_64"
|
||||
|
||||
project "SandboxApplication"
|
||||
kind "ConsoleApp"
|
||||
@ -20,8 +20,8 @@ workspace "BarinkEngine"
|
||||
}
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog/_builds/Release",
|
||||
"./libs/glfw/lib-vc2022",
|
||||
"./libs/spdlog/build/Release",
|
||||
"./libs/glfw/build/src/Debug",
|
||||
"./libs/lua"
|
||||
}
|
||||
|
||||
@ -36,6 +36,9 @@ workspace "BarinkEngine"
|
||||
"SandboxApplication/*.cpp"
|
||||
}
|
||||
|
||||
defines {"DEBUG"}
|
||||
symbols "On"
|
||||
|
||||
-- NOTE: make these copy instructions more flexible
|
||||
ok, err = os.copyfile("MyGraphicsEngine/shaders/fragment.shader", "build/SandboxApplication/Debug/test.fs")
|
||||
if err then error("Copy fragment shader source failed!") end
|
||||
@ -53,14 +56,14 @@ workspace "BarinkEngine"
|
||||
"./libs/glfw/include",
|
||||
"./libs/glew/include",
|
||||
"./libs/spdlog/include",
|
||||
"./libs/glm/glm",
|
||||
"./libs/glm",
|
||||
"./MyGraphicsEngine/include"
|
||||
}
|
||||
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog/_builds/Release",
|
||||
"./libs/glfw/lib-vc2022"
|
||||
"./libs/spdlog/build/Release",
|
||||
"./libs/glfw/build/src/Debug"
|
||||
}
|
||||
|
||||
links {
|
||||
@ -70,12 +73,13 @@ workspace "BarinkEngine"
|
||||
|
||||
files {
|
||||
"./libs/glad/src/glad.c",
|
||||
"MyGraphicsEngine/*.h",
|
||||
"MyGraphicsEngine/*.cpp"
|
||||
|
||||
}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines {"NDEBUG"}
|
||||
defines {"DEBUG"}
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
|
Reference in New Issue
Block a user