2022-06-04 16:26:58 +00:00
|
|
|
project "BarinkEngine"
|
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
buildmessage "Building BarinkEngine"
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
"Include/",
|
|
|
|
|
|
|
|
"../libs/lua/include",
|
|
|
|
"../libs/spdlog/include",
|
|
|
|
"../libs/glm",
|
|
|
|
"../libs/GorillaAudio/include",
|
|
|
|
|
|
|
|
"../libs/physx/physx/include",
|
|
|
|
"../libs/steam-audio/include",
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
"../libs/assimp/include",
|
2022-06-10 19:06:20 +00:00
|
|
|
|
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
"../libs/glad/include",
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
"../libs/glfw/include",
|
|
|
|
"../libs/glew/include",
|
|
|
|
"../libs/glm",
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
"../libs/ImGui",
|
2022-06-10 19:06:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
|
|
|
-- This needs to fall under the filter as the names can differ on different platforms
|
|
|
|
"phonon",
|
|
|
|
"lua54",
|
|
|
|
"spdlog",
|
|
|
|
"assimp-vc143-mtd",
|
|
|
|
"glfw3",
|
|
|
|
|
|
|
|
"ImGUI_Opengl3",
|
|
|
|
|
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-04 16:26:58 +00:00
|
|
|
libdirs {
|
|
|
|
"../libs/steam-audio/lib/windows-x64",
|
|
|
|
"../libs/lua",
|
|
|
|
"../libs/spdlog/build/Release",
|
|
|
|
"../libs/assimp/lib/Debug",
|
|
|
|
"../libs/glfw/build/src/Debug",
|
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../libs/glad/src/glad.c",
|
|
|
|
|
2022-08-06 16:21:42 +00:00
|
|
|
"./src/*.cpp",
|
|
|
|
"./Include/*.h",
|
|
|
|
"./src/**/*.cpp",
|
|
|
|
"./Include/**/*.h"
|
2022-06-04 16:26:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-08 19:40:49 +00:00
|
|
|
filter { "system:windows"}
|
|
|
|
prebuildcommands {
|
|
|
|
-- Copy shaders
|
2022-08-15 19:15:12 +00:00
|
|
|
"copy src\\graphics\\shaders\\fragment.shader ..\\build\\SandboxApplication\\Debug\\test.fs",
|
|
|
|
"copy src\\graphics\\shaders\\vertex.shader ..\\build\\SandboxApplication\\Debug\\test.vs",
|
|
|
|
"copy src\\graphics\\shaders\\RenderSurfaceFrag.shader ..\\build\\SandboxApplication\\Debug\\RenderSurface.fs",
|
|
|
|
"copy src\\graphics\\shaders\\RenderSurfaceVert.shader ..\\build\\SandboxApplication\\Debug\\RenderSurface.vs"
|
2022-06-08 19:40:49 +00:00
|
|
|
}
|
|
|
|
|
2022-06-10 19:06:20 +00:00
|
|
|
|
2022-06-08 19:40:49 +00:00
|
|
|
|
|
|
|
filter { "system:linux" }
|
|
|
|
prebuildcommands {
|
|
|
|
-- Copy shaders
|
2022-08-15 19:15:12 +00:00
|
|
|
"cp src/graphics/shaders/fragment.shader ../build/SandboxApplication/Debug/test.fs",
|
|
|
|
"cp src/graphics/shaders/vertex.shader ../build/SandboxApplication/Debug/test.vs",
|
|
|
|
"cp src/graphics/shaders/RenderSurfaceFrag.shader ../build/SandboxApplication/Debug/RenderSurface.fs",
|
|
|
|
"cp src/graphics/shaders/RenderSurfaceVert.shader ../build/SandboxApplication/Debug/RenderSurface.vs"
|
2022-06-08 19:40:49 +00:00
|
|
|
}
|
2022-06-10 19:06:20 +00:00
|
|
|
|
|
|
|
include('../ImGui')
|