YoggieEngine/premake5.lua

94 lines
1.7 KiB
Lua
Raw Normal View History

workspace "BarinkEngine"
2021-09-29 18:14:27 +00:00
configurations { "Debug", "Test", "Release" }
language "C++"
cppdialect "C++17"
targetdir "./build/%{prj.name}/%{cfg.buildcfg}"
objdir "./intermediates/%{prj.name}/%{cfg.buildcfg}"
2021-09-29 18:14:27 +00:00
project "SandboxApplication"
kind "ConsoleApp"
buildmessage "Building BarinkEngineSandbox ..."
2021-09-29 18:14:27 +00:00
includedirs {
"./libs/glad/include",
"./MyGraphicsEngine/include",
"./libs/lua-5.4.4/lua"
2021-09-29 18:14:27 +00:00
}
libdirs{
"./libs/spdlog-1.9.1/build",
"./libs/lua-5.4.4/lua"
}
links{
"liblua",
"spdlog",
"glfw3",
"X11",
"GL",
"GLU",
"pthread",
"dl",
"m",
"MyGraphicsEngine"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
files {
"SandboxApplication/*.cpp"
2021-09-29 18:14:27 +00:00
}
-- 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
2021-09-29 18:14:27 +00:00
ok, err = os.copyfile("MyGraphicsEngine/shaders/vertex.shader", "build/SandboxApplication/Debug/test.vs")
if err then error("Copy vertex shader source failed!") end
2021-09-29 18:14:27 +00:00
project "MyGraphicsEngine"
kind "StaticLib"
buildmessage "Building MyGraphicsEngine ..."
2021-09-29 18:14:27 +00:00
includedirs {
"./libs/glad/include",
"./libs/glfw-3.3.4/include",
"./libs/glew-2.2.0/include",
"./libs/spdlog-1.9.1/include",
"./libs/glm/glm",
"./MyGraphicsEngine/include"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
libdirs{
"./libs/spdlog-1.9.1/build"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
links {
"libspdlog",
2021-09-29 18:14:27 +00:00
"glfw3",
"X11",
"GL",
"GLU",
"pthread",
"dl",
"m"
}
files {
"./libs/glad/src/glad.c",
"MyGraphicsEngine/*.cpp"
}
2021-09-29 18:14:27 +00:00
filter "configurations:Debug"
defines {"DEBUG"}
symbols "On"
filter "configurations:Release"
defines {"NDEBUG"}
optimize "On"