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-05-04 21:25:18 +00:00
|
|
|
"./libs/assimp/include",
|
2022-04-22 20:37:38 +00:00
|
|
|
"./libs/glad/include",
|
2022-05-04 09:10:26 +00:00
|
|
|
"./MyGraphicsEngine",
|
2022-04-28 19:02:54 +00:00
|
|
|
"./MyGraphicsEngine/include",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/spdlog/include",
|
2022-05-04 09:10:26 +00:00
|
|
|
"./libs/glm",
|
|
|
|
"./libs/GorillaAudio/include",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/lua/include",
|
|
|
|
"./libs/glfw/include",
|
2022-05-04 21:25:18 +00:00
|
|
|
"./libs/ImGui",
|
|
|
|
"./libs/lua/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-05-04 12:39:27 +00:00
|
|
|
"./libs/lua",
|
|
|
|
"./libs/ImGui"
|
2022-04-20 19:40:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
links{
|
2022-05-04 21:25:18 +00:00
|
|
|
"lua54",
|
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-05-04 12:39:27 +00:00
|
|
|
"./libs/ImGui/*.cpp",
|
|
|
|
"./libs/ImGui/backends/imgui_impl_glfw.cpp",
|
|
|
|
"./libs/ImGui/backends/imgui_impl_Opengl3.cpp",
|
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"}
|
2022-05-04 09:10:26 +00:00
|
|
|
|
2022-04-30 20:51:50 +00:00
|
|
|
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
|
|
|
|
2022-05-04 09:10:26 +00:00
|
|
|
|
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-05-04 21:25:18 +00:00
|
|
|
"./libs/assimp/include",
|
2022-04-22 20:37:38 +00:00
|
|
|
"./libs/glad/include",
|
2022-04-30 18:20:07 +00:00
|
|
|
"./libs/glfw/include",
|
2022-05-04 09:10:26 +00:00
|
|
|
"./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",
|
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",
|
2022-05-04 21:25:18 +00:00
|
|
|
"./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
|
|
|
}
|
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",
|
2022-05-04 21:25:18 +00:00
|
|
|
"assimp-vc143-mtd",
|
2022-04-30 18:20:07 +00:00
|
|
|
"glfw3"
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 20:37:38 +00:00
|
|
|
files {
|
|
|
|
"./libs/glad/src/glad.c",
|
2022-05-04 09:10:26 +00:00
|
|
|
"./MyGraphicsEngine/**/*.*" ,
|
|
|
|
"./MyGraphicsEngine/*.*"
|
2022-04-22 20:37:38 +00:00
|
|
|
|
|
|
|
}
|
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"
|