2021-05-22 19:50:20 +00:00
|
|
|
workspace "BarinkEngine"
|
2021-09-29 18:14:27 +00:00
|
|
|
configurations { "Debug", "Test", "Release" }
|
2022-04-20 19:40:35 +00:00
|
|
|
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-05-22 19:50:20 +00:00
|
|
|
|
2021-09-29 18:14:27 +00:00
|
|
|
project "SandboxApplication"
|
|
|
|
kind "ConsoleApp"
|
2022-04-20 19:40:35 +00:00
|
|
|
|
|
|
|
buildmessage "Building BarinkEngineSandbox ..."
|
2021-05-22 19:50:20 +00:00
|
|
|
|
2021-09-29 18:14:27 +00:00
|
|
|
includedirs {
|
2022-04-22 20:37:38 +00:00
|
|
|
"./libs/glad/include",
|
2022-04-28 19:02:54 +00:00
|
|
|
"./MyGraphicsEngine/include",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/spdlog/include",
|
|
|
|
"./libs/lua/include",
|
|
|
|
"./libs/glfw/include",
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
2021-05-22 19:50:20 +00:00
|
|
|
|
2022-04-20 19:40:35 +00:00
|
|
|
libdirs{
|
2022-04-30 20:51:50 +00:00
|
|
|
"./libs/spdlog/build/Release",
|
|
|
|
"./libs/glfw/build/src/Debug",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/lua"
|
2022-04-20 19:40:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
links{
|
2022-04-28 19:02:54 +00:00
|
|
|
"liblua",
|
2022-04-20 19:40:35 +00:00
|
|
|
"spdlog",
|
|
|
|
"glfw3",
|
|
|
|
"MyGraphicsEngine"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
2021-05-22 19:50:20 +00:00
|
|
|
|
2021-09-29 18:14:27 +00:00
|
|
|
files {
|
2022-04-20 19:40:35 +00:00
|
|
|
"SandboxApplication/*.cpp"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
|
|
|
|
2022-04-30 20:51:50 +00:00
|
|
|
defines {"DEBUG"}
|
|
|
|
symbols "On"
|
|
|
|
|
2022-04-22 20:37:38 +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
|
|
|
|
2022-04-22 20:37:38 +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"
|
2022-04-20 19:40:35 +00:00
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
buildmessage "Building MyGraphicsEngine ..."
|
2021-09-29 18:14:27 +00:00
|
|
|
|
|
|
|
includedirs {
|
2022-04-22 20:37:38 +00:00
|
|
|
"./libs/glad/include",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/glfw/include",
|
|
|
|
"./libs/glew/include",
|
|
|
|
"./libs/spdlog/include",
|
2022-04-30 20:51:50 +00:00
|
|
|
"./libs/glm",
|
2022-04-20 19:40:35 +00:00
|
|
|
"./MyGraphicsEngine/include"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 19:40:35 +00:00
|
|
|
|
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"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
2022-04-20 19:40:35 +00:00
|
|
|
|
2021-09-29 18:14:27 +00:00
|
|
|
links {
|
2022-04-30 18:20:07 +00:00
|
|
|
"spdlog",
|
|
|
|
"glfw3"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 20:37:38 +00:00
|
|
|
files {
|
|
|
|
"./libs/glad/src/glad.c",
|
2022-04-30 20:51:50 +00:00
|
|
|
"MyGraphicsEngine/*.h",
|
2022-04-22 20:37:38 +00:00
|
|
|
"MyGraphicsEngine/*.cpp"
|
|
|
|
|
|
|
|
}
|
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"
|