light/Engine/premake5.lua

90 lines
1.7 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
2021-05-20 11:49:24 +04:30
kind "StaticLib"
-- language
2021-05-20 11:49:24 +04:30
language "C++"
cppdialect "C++17"
-- pch
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
{
"%{prj.location}/src/**.h" ,
"%{prj.location}/src/**.cpp" ,
"%{prj.location}/**.lua" ,
"%{prj.location}/dxgidebug.dll" ,
2021-05-20 11:49:24 +04:30
}
-- Dependencies --
2021-05-21 10:55:39 +04:30
includedirs
{
-- engine
"%{prj.location}/src/" ,
"%{prj.location}/src/Engine/" ,
"%{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/"),
(dependenciesdir .. "glfw/include/" ),
(dependenciesdir .. "glad/include" ),
(dependenciesdir .. "imgui/backends" ),
(dependenciesdir .. "imgui/" ),
(dependenciesdir .. "glm/" ),
2021-05-21 10:55:39 +04:30
}
2021-05-21 15:00:29 +04:30
links
{
"GLFW" ,
"GLAD" ,
"ImGui" ,
2021-05-21 15:00:29 +04:30
}
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"
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" ,
}
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"
-- release
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"
optimize "on"
--- Excludes ---
-- !windows
filter "system:not windows"
excludes "%{prj.location}/src/Platform/GraphicsAPI/DirectX**"
excludes "%{prj.location}/src/Platform/OS/Windows**"
-- !linux #todo:
-- !mac #todo: