light/Sandbox/premake5.lua

77 lines
1.3 KiB
Lua
Raw Normal View History

2021-05-20 11:49:24 +04:30
project "Sandbox"
-- Output Directories --
2021-05-21 15:00:29 +04:30
location "%{wks.location}/Sandbox/"
2021-05-20 11:49:24 +04:30
2021-05-21 15:00:29 +04:30
targetdir ("%{wks.location}/bin/" .. outputdir)
objdir ("%{wks.location}/bin-int/" .. outputdir)
2021-05-20 11:49:24 +04:30
-- Compiler --
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
-- Project Files ---
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
2021-05-27 10:41:32 +04:30
"%{prj.location}/premake5.lua",
2021-05-20 11:49:24 +04:30
}
-- Dependencies --
includedirs
{
2021-05-21 10:55:39 +04:30
-- Engine
2021-05-20 11:49:24 +04:30
"%{wks.location}/Engine/src",
2021-05-21 10:55:39 +04:30
"%{wks.location}/Engine/src/Engine",
2021-05-26 18:39:40 +04:30
"%{wks.location}/Engine/src/Platform/GraphicsAPI",
"%{wks.location}/Engine/src/Platform/OS",
2021-05-21 10:55:39 +04:30
-- 3rd party
(dependenciesdir .. "spdlog/include/"),
2021-05-27 10:41:32 +04:30
(dependenciesdir .. "imgui/"),
(dependenciesdir .. "imgui/backends"),
2021-05-25 18:35:52 +04:30
(dependenciesdir .. "glm/"),
2021-05-20 11:49:24 +04:30
}
links
{
"Engine",
2021-05-27 10:41:32 +04:30
"GLFW",
"GLAD",
"ImGui",
2021-05-20 11:49:24 +04:30
}
--- Filters ---
-- windows
filter "system:windows"
2021-05-27 18:55:30 +04:30
defines "LIGHT_PLATFORM_WINDOWS"
2021-05-20 11:49:24 +04:30
systemversion "latest"
2021-05-25 21:22:01 +04:30
staticruntime "On"
2021-05-20 11:49:24 +04:30
2021-06-26 13:09:11 +04:30
-- linux
filter "system:linux"
defines "LIGHT_PLATFORM_LINUX"
links
{
"dl",
"pthread",
}
2021-05-20 11:49:24 +04:30
-- debug
filter "configurations:Debug"
2021-06-15 09:39:11 +04:30
defines "LIGHT_DEBUG"
2021-05-20 11:49:24 +04:30
symbols "on"
2021-05-27 10:41:32 +04:30
-- release
2021-05-20 11:49:24 +04:30
filter "configurations:Release"
2021-06-15 09:39:11 +04:30
defines "LIGHT_RELEASE"
2021-05-20 11:49:24 +04:30
optimize "on"
-- distribution
filter "configurations:Distribution"
2021-06-15 09:39:11 +04:30
defines "LIGHT_DIST"
2021-05-20 11:49:24 +04:30
optimize "on"