Cleanup workspace
This commit is contained in:
72
premake5.lua
72
premake5.lua
@ -1,18 +1,66 @@
|
||||
workspace "BarinkEngine"
|
||||
configurations { "Debug", "Release" }
|
||||
configurations { "Debug", "Test", "Release" }
|
||||
|
||||
project "Engine"
|
||||
kind "ConsoleApp"
|
||||
language "C"
|
||||
targetdir "build/%{cfg.buildcfg}"
|
||||
project "SandboxApplication"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
targetdir "./artifacts/build/%{cfg.buildcfg}"
|
||||
objdir "./artifacts/obj/%{cfg.buildcfg}"
|
||||
|
||||
files { "src/*.c"}
|
||||
includedirs {
|
||||
"./libs/lua-5.4.3/",
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines {"DEBUG"}
|
||||
symbols "On"
|
||||
}
|
||||
|
||||
filter "configurations:Release"
|
||||
defines {"NDEBUG"}
|
||||
optimize "On"
|
||||
libdirs {
|
||||
os.findlib("lua")
|
||||
}
|
||||
|
||||
|
||||
files {
|
||||
"SandboxApplication/*.c"
|
||||
}
|
||||
|
||||
links{
|
||||
"lua"
|
||||
}
|
||||
|
||||
|
||||
project "MyGraphicsEngine"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "c++17"
|
||||
targetdir "./artifacts/build/%{cfg.buildcfg}"
|
||||
objdir "./artifacts/obj/%{cfg.buildcfg}"
|
||||
buildmessage "Building MyGraphicsEngine"
|
||||
|
||||
includedirs {
|
||||
"./libs/glfw-3.3.4/include/GLFW/",
|
||||
"./libs/spdlog-1.9.1/include/spdlog/"
|
||||
}
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog-1.9.1/build/libspdlog.a",
|
||||
os.findlib("glfw3"),
|
||||
}
|
||||
links {
|
||||
-- "libspdlog",
|
||||
"glfw3",
|
||||
"X11",
|
||||
"GL",
|
||||
"GLU",
|
||||
"pthread",
|
||||
"dl",
|
||||
"m"
|
||||
}
|
||||
|
||||
files {"MyGraphicsEngine/*.c"}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines {"DEBUG"}
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines {"NDEBUG"}
|
||||
optimize "On"
|
||||
|
Reference in New Issue
Block a user