light/Engine/premake5.lua

82 lines
1.5 KiB
Lua
Raw Normal View History

2021-05-20 11:49:24 +04:30
project "Engine"
-- Output Directories --
2021-05-21 15:00:29 +04:30
location "%{wks.location}/Engine/"
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 "StaticLib"
language "C++"
cppdialect "C++17"
2021-05-26 16:28:37 +04:30
pchsource "src/Engine/ltpch.cpp"
pchheader "ltpch.h"
2021-05-20 11:49:24 +04:30
-- Project Files ---
files
{
2021-05-21 10:55:39 +04:30
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
2021-05-20 11:49:24 +04:30
"%{prj.location}/**.lua",
}
-- Dependencies --
2021-05-21 10:55:39 +04:30
includedirs
{
2021-05-25 18:35:52 +04:30
-- Engine
2021-05-26 18:39:40 +04:30
"%{prj.location}/src/",
2021-05-21 10:55:39 +04:30
"%{prj.location}/src/Engine/",
2021-05-26 18:39:40 +04:30
"%{prj.location}/src/Platform/GraphicsAPI",
"%{prj.location}/src/Platform/OS",
2021-05-21 10:55:39 +04:30
2021-05-25 18:35:52 +04:30
-- 3rd party
2021-05-21 10:55:39 +04:30
(dependenciesdir .. "spdlog/include/"),
2021-05-21 20:33:37 +04:30
(dependenciesdir .. "glfw/include/"),
2021-05-25 21:22:01 +04:30
(dependenciesdir .. "glad/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-21 10:55:39 +04:30
}
2021-05-21 15:00:29 +04:30
links
{
"GLFW",
2021-05-25 21:22:01 +04:30
"GLAD",
2021-05-27 10:41:32 +04:30
"ImGui",
2021-05-21 15:00:29 +04:30
}
2021-05-20 11:49:24 +04:30
--- Filters ---
-- windows
2021-06-02 09:07:45 +04:30
2021-05-20 11:49:24 +04:30
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-02 09:07:45 +04:30
links
{
"d3d11.lib" ,
"dxguid.lib" ,
"D3DCompiler.lib" ,
}
filter "system:not windows"
excludes "%{prj.location}/src/Platform/GraphicsAPI/DirectX**"
excludes "%{prj.location}/src/Platform/OS/Windows**"
2021-05-20 11:49:24 +04:30
-- debug
filter "configurations:Debug"
defines "LT_DEBUG"
symbols "on"
-- release
filter "configurations:Release"
defines "LT_RELEASE"
optimize "on"
-- distribution
filter "configurations:Distribution"
defines "LT_DIST"
optimize "on"