SHADE_Y3/SHADE_Application/premake5.lua

86 lines
1.5 KiB
Lua
Raw Normal View History

2022-08-26 14:04:03 +08:00
project "SHADE_Application"
2022-09-05 15:29:02 +08:00
kind "WindowedApp"
2022-08-26 14:04:03 +08:00
language "C++"
cppdialect "C++20"
targetdir (outputdir)
objdir (interdir)
2022-08-26 14:04:03 +08:00
systemversion "latest"
pchheader "SBpch.h"
pchsource "%{prj.location}/src/SBpch.cpp"
staticruntime "off"
2022-09-08 19:11:25 +08:00
entrypoint "wWinMainCRTStartup"
2022-09-05 15:29:02 +08:00
system ("windows")
2022-08-26 14:04:03 +08:00
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.hpp",
2022-08-26 14:04:03 +08:00
"%{prj.location}/src/**.c",
"%{prj.location}/src/**.cpp",
"%{prj.location}/src/**.glsl",
}
includedirs
{
2022-08-26 14:30:41 +08:00
"../SHADE_Engine/src",
"src",
"%{IncludeDir.dotnet}/include",
2022-09-14 21:47:39 +08:00
"%{IncludeDir.SDL}/include",
2022-08-26 14:04:03 +08:00
}
externalincludedirs
{
"%{IncludeDir.spdlog}/include",
"%{IncludeDir.VULKAN}/include",
"%{IncludeDir.VMA}/include",
"%{IncludeDir.VULKAN}/Source/SPIRV-Reflect",
2022-09-26 15:52:21 +08:00
"%{IncludeDir.tinyddsloader}",
2022-09-26 15:50:07 +08:00
"%{IncludeDir.fmod}/include",
"%{IncludeDir.RTTR}\\include"
}
2022-08-26 14:04:03 +08:00
externalwarnings "Off"
2022-08-26 14:04:03 +08:00
flags
{
"MultiProcessorCompile"
}
links
{
"SHADE_Engine",
"SHADE_Managed",
2022-09-14 21:47:39 +08:00
"SDL2.lib",
"SDL2main.lib"
2022-08-26 14:04:03 +08:00
}
2022-09-14 09:14:18 +08:00
libdirs
2022-08-26 14:04:03 +08:00
{
2022-09-14 09:14:18 +08:00
"%{IncludeDir.spdlog}/lib",
2022-09-14 21:47:39 +08:00
"%{IncludeDir.SDL}/lib",
2022-08-26 14:04:03 +08:00
}
2022-09-09 11:20:38 +08:00
defines
{
"NOMINMAX"
}
2022-08-26 14:04:03 +08:00
2022-09-15 11:33:40 +08:00
disablewarnings
{
"4251"
2022-08-26 14:04:03 +08:00
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
2022-09-25 22:33:07 +08:00
defines {"_DEBUG", "SHEDITOR"}
2022-08-26 14:04:03 +08:00
filter "configurations:Release"
2022-09-25 22:33:07 +08:00
optimize "On"
defines{"_RELEASE", "SHEDITOR"}
filter "configurations:Publish"
2022-08-26 14:04:03 +08:00
optimize "On"
2022-09-14 09:14:18 +08:00
defines{"_RELEASE"}