YoggieEngine/premake5.lua

105 lines
2.2 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}"
2022-04-30 20:51:50 +00:00
architecture "x86_64"
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/assimp/include",
"./libs/glad/include",
"./MyGraphicsEngine",
"./MyGraphicsEngine/include",
2022-04-30 18:20:07 +00:00
"./libs/spdlog/include",
"./libs/glm",
"./libs/GorillaAudio/include",
2022-04-30 18:20:07 +00:00
"./libs/lua/include",
"./libs/glfw/include",
"./libs/ImGui",
"./libs/lua/include"
2021-09-29 18:14:27 +00:00
}
libdirs{
2022-04-30 20:51:50 +00:00
"./libs/spdlog/build/Release",
"./libs/glfw/build/src/Debug",
2022-05-04 12:39:27 +00:00
"./libs/lua",
"./libs/ImGui"
}
links{
"lua54",
"spdlog",
"glfw3",
"MyGraphicsEngine"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
files {
2022-05-04 12:39:27 +00:00
"./libs/ImGui/*.cpp",
"./libs/ImGui/backends/imgui_impl_glfw.cpp",
"./libs/ImGui/backends/imgui_impl_Opengl3.cpp",
"SandboxApplication/*.cpp"
2021-09-29 18:14:27 +00:00
}
2022-04-30 20:51:50 +00:00
defines {"DEBUG"}
2022-04-30 20:51:50 +00:00
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
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
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/assimp/include",
"./libs/glad/include",
2022-04-30 18:20:07 +00:00
"./libs/glfw/include",
"./libs/tinygltf",
2022-04-30 18:20:07 +00:00
"./libs/glew/include",
"./libs/spdlog/include",
2022-04-30 20:51:50 +00:00
"./libs/glm",
"./MyGraphicsEngine/include"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
libdirs{
2022-04-30 20:51:50 +00:00
"./libs/spdlog/build/Release",
"./libs/assimp/lib/Debug",
2022-04-30 20:51:50 +00:00
"./libs/glfw/build/src/Debug"
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
links {
2022-04-30 18:20:07 +00:00
"spdlog",
"assimp-vc143-mtd",
2022-04-30 18:20:07 +00:00
"glfw3"
2021-09-29 18:14:27 +00:00
}
files {
"./libs/glad/src/glad.c",
"./MyGraphicsEngine/**/*.*" ,
"./MyGraphicsEngine/*.*"
}
2021-09-29 18:14:27 +00:00
filter "configurations:Debug"
2022-04-30 20:51:50 +00:00
defines {"DEBUG"}
2021-09-29 18:14:27 +00:00
symbols "On"
filter "configurations:Release"
defines {"NDEBUG"}
optimize "On"