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 --
|
2021-06-15 22:17:28 +04:30
|
|
|
-- kind
|
2021-05-20 11:49:24 +04:30
|
|
|
kind "StaticLib"
|
2021-06-15 22:17:28 +04:30
|
|
|
|
|
|
|
-- language
|
2021-05-20 11:49:24 +04:30
|
|
|
language "C++"
|
|
|
|
cppdialect "C++17"
|
|
|
|
|
2021-06-15 22:17:28 +04:30
|
|
|
-- 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
|
|
|
|
{
|
2021-06-28 14:37:48 +04:30
|
|
|
-- src
|
|
|
|
"%{prj.location}/src/**.h",
|
|
|
|
"%{prj.location}/src/**.cpp",
|
|
|
|
|
|
|
|
-- premake
|
2021-07-23 11:22:01 +04:30
|
|
|
"%{prj.location}/build.lua",
|
2021-06-28 14:37:48 +04:30
|
|
|
|
|
|
|
"%{prj.location}/dxgidebug.dll", -- :#todo
|
|
|
|
|
|
|
|
"%{prj.location}/res/**"
|
2021-05-20 11:49:24 +04:30
|
|
|
}
|
|
|
|
|
|
|
|
-- Dependencies --
|
2021-05-21 10:55:39 +04:30
|
|
|
includedirs
|
|
|
|
{
|
2021-06-15 22:17:28 +04:30
|
|
|
-- engine
|
2021-07-10 19:59:27 +04:30
|
|
|
"%{prj.location}" ,
|
|
|
|
"%{prj.location}/src" ,
|
|
|
|
"%{prj.location}/src/Engine" ,
|
2021-06-15 22:17:28 +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-06-28 14:37:48 +04:30
|
|
|
(dependenciesdir .. "GLFW/include/"),
|
|
|
|
(dependenciesdir .. "GLAD/include"),
|
|
|
|
(dependenciesdir .. "imgui/backends"),
|
|
|
|
(dependenciesdir .. "imgui/"),
|
2021-06-29 11:01:11 +04:30
|
|
|
(dependenciesdir .. "stb_image/"),
|
2021-06-28 14:37:48 +04:30
|
|
|
(dependenciesdir .. "glm/"),
|
2021-05-21 10:55:39 +04:30
|
|
|
}
|
2021-05-21 15:00:29 +04:30
|
|
|
|
|
|
|
links
|
|
|
|
{
|
2021-06-15 22:17:28 +04:30
|
|
|
"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"
|
2021-06-15 22:17:28 +04:30
|
|
|
staticruntime "on"
|
2021-06-27 14:48:26 +04:30
|
|
|
|
2021-06-02 09:07:45 +04:30
|
|
|
links
|
|
|
|
{
|
|
|
|
"d3d11.lib" ,
|
|
|
|
"dxguid.lib" ,
|
|
|
|
"D3DCompiler.lib" ,
|
|
|
|
}
|
2021-07-23 11:22:01 +04:30
|
|
|
|
|
|
|
flags { "MultiProcessorCompile" }
|
2021-06-26 13:09:11 +04:30
|
|
|
|
2021-06-27 14:48:26 +04:30
|
|
|
filter { "system:windows", "files:src/Platform/OS/Linux/**.**" }
|
|
|
|
flags { "ExcludeFromBuild" }
|
|
|
|
|
2021-06-26 13:09:11 +04:30
|
|
|
-- linux
|
|
|
|
filter "system:linux"
|
|
|
|
defines "LIGHT_PLATFORM_LINUX"
|
|
|
|
links
|
|
|
|
{
|
|
|
|
"dl",
|
|
|
|
}
|
|
|
|
|
|
|
|
buildoptions
|
|
|
|
{
|
|
|
|
"-lgtest",
|
|
|
|
"-lpthread",
|
|
|
|
}
|
2021-06-27 12:05:46 +04:30
|
|
|
|
2021-06-27 14:48:26 +04:30
|
|
|
filter { "system:linux", "files:src/Platform/GraphicsAPI/DirectX/**.**" }
|
|
|
|
flags { "ExcludeFromBuild" }
|
|
|
|
filter { "system:linux", "files:src/Platform/OS/Windows/**.**" }
|
2021-06-27 13:06:57 +04:30
|
|
|
flags "ExcludeFromBuild"
|
2021-06-27 14:48:26 +04:30
|
|
|
|
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"
|
2021-07-10 19:59:27 +04:30
|
|
|
optimize "on"
|
|
|
|
|
|
|
|
filter { "files:**.hlsl" }
|
|
|
|
flags "ExcludeFromBuild"
|
|
|
|
shadermodel "4.0"
|