2022-08-26 14:04:03 +08:00
|
|
|
project "SHADE_Engine"
|
2022-09-12 13:26:25 +08:00
|
|
|
kind "SharedLib"
|
2022-08-26 14:04:03 +08:00
|
|
|
language "C++"
|
2022-09-15 01:51:04 +08:00
|
|
|
cppdialect "C++20"
|
2022-09-13 20:35:30 +08:00
|
|
|
targetdir (outputdir)
|
|
|
|
objdir (interdir)
|
2022-08-26 14:04:03 +08:00
|
|
|
systemversion "latest"
|
|
|
|
pchheader "SHpch.h"
|
|
|
|
pchsource "%{prj.location}/src/SHpch.cpp"
|
2022-09-13 15:18:56 +08:00
|
|
|
staticruntime "off"
|
2022-10-30 23:15:41 +08:00
|
|
|
buildoptions{"/bigobj"}
|
2022-08-26 14:04:03 +08:00
|
|
|
files
|
|
|
|
{
|
|
|
|
"%{prj.location}/src/**.h",
|
2022-09-09 13:28:57 +08:00
|
|
|
"%{prj.location}/src/**.hpp",
|
2022-08-26 14:04:03 +08:00
|
|
|
"%{prj.location}/src/**.c",
|
|
|
|
"%{prj.location}/src/**.cpp",
|
2022-09-25 20:28:01 +08:00
|
|
|
"%{prj.location}/src/**.glsl",
|
|
|
|
"%{prj.location}/**.natvis"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
|
|
|
"%{prj.location}/src",
|
2022-09-14 19:44:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
externalincludedirs
|
|
|
|
{
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.imgui}",
|
|
|
|
"%{IncludeDir.imguizmo}",
|
|
|
|
"%{IncludeDir.imnodes}",
|
|
|
|
"%{IncludeDir.msdf_atlas_gen}",
|
|
|
|
"%{IncludeDir.msdfgen}",
|
2022-09-22 10:52:07 +08:00
|
|
|
"%{IncludeDir.spdlog}\\include",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.tracy}",
|
2022-09-22 10:52:07 +08:00
|
|
|
"%{IncludeDir.VMA}\\include",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.yamlcpp}",
|
2022-09-22 10:52:07 +08:00
|
|
|
"%{IncludeDir.SDL}\\include",
|
|
|
|
"%{IncludeDir.RTTR}\\include",
|
|
|
|
"%{IncludeDir.reactphysics3d}\\include",
|
|
|
|
"%{IncludeDir.VULKAN}\\include",
|
|
|
|
"%{IncludeDir.VULKAN}\\Source\\SPIRV-Reflect",
|
|
|
|
"%{IncludeDir.dotnet}\\include",
|
2022-09-26 15:51:59 +08:00
|
|
|
"%{IncludeDir.tinyddsloader}",
|
|
|
|
"%{IncludeDir.fmod}\\include"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
2022-09-14 19:44:01 +08:00
|
|
|
externalwarnings "Off"
|
|
|
|
|
2022-08-26 14:04:03 +08:00
|
|
|
libdirs
|
|
|
|
{
|
2022-09-06 10:39:12 +08:00
|
|
|
"%{prj.location}/libs",
|
|
|
|
"%{IncludeDir.VULKAN}/Lib",
|
|
|
|
"%{IncludeDir.RTTR}/lib",
|
2022-09-14 21:47:39 +08:00
|
|
|
"%{IncludeDir.SDL}/lib",
|
2022-09-22 14:05:53 +08:00
|
|
|
"%{IncludeDir.spdlog}/lib",
|
2022-09-28 21:30:57 +08:00
|
|
|
"%{IncludeDir.fmod}/lib"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
links
|
|
|
|
{
|
2022-09-06 10:39:12 +08:00
|
|
|
"yaml-cpp",
|
2022-08-26 14:30:41 +08:00
|
|
|
"msdfgen",
|
2022-09-06 10:39:12 +08:00
|
|
|
"msdf-atlas-gen",
|
|
|
|
"reactphysics3d",
|
|
|
|
"imgui",
|
2022-09-12 13:26:25 +08:00
|
|
|
"vulkan-1.lib",
|
2022-09-14 21:47:39 +08:00
|
|
|
"SDL2.lib",
|
2022-09-15 09:30:03 +08:00
|
|
|
"SDL2main.lib",
|
2022-09-13 00:18:54 +08:00
|
|
|
"shlwapi.lib"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 11:33:40 +08:00
|
|
|
disablewarnings
|
|
|
|
{
|
2022-10-01 18:58:13 +08:00
|
|
|
"4251",
|
|
|
|
"26812",
|
|
|
|
"26439",
|
|
|
|
"26451",
|
|
|
|
"26437",
|
2022-11-14 18:35:52 +08:00
|
|
|
"4275",
|
2022-11-21 20:27:38 +08:00
|
|
|
"4633",
|
|
|
|
"4634",
|
|
|
|
"4635",
|
|
|
|
"4638"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
2022-10-01 18:58:13 +08:00
|
|
|
|
|
|
|
linkoptions { "-IGNORE:4006" }
|
2022-08-26 14:04:03 +08:00
|
|
|
|
|
|
|
defines
|
|
|
|
{
|
|
|
|
"_LIB",
|
|
|
|
"_GLFW_INCLUDE_NONE",
|
2022-09-08 19:11:25 +08:00
|
|
|
"MSDFGEN_USE_CPP11",
|
2022-09-14 19:57:59 +08:00
|
|
|
"NOMINMAX",
|
2022-09-13 21:08:13 +08:00
|
|
|
"SH_API_EXPORT"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
flags
|
|
|
|
{
|
|
|
|
"MultiProcessorCompile"
|
|
|
|
}
|
|
|
|
|
2022-09-05 15:29:02 +08:00
|
|
|
dependson
|
|
|
|
{
|
2022-09-06 10:39:12 +08:00
|
|
|
"yaml-cpp",
|
|
|
|
"msdfgen",
|
|
|
|
"msdf-atlas-gen",
|
|
|
|
"reactphysics3d",
|
|
|
|
"imgui",
|
2022-09-05 15:29:02 +08:00
|
|
|
}
|
|
|
|
|
2022-09-12 13:26:25 +08:00
|
|
|
postbuildcommands
|
|
|
|
{
|
2022-09-22 10:52:07 +08:00
|
|
|
"xcopy /s /r /y /q \"%{IncludeDir.spdlog}\\bin\" \"$(OutDir)\"",
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.SDL}\\lib\\SDL2.dll\" \"$(OutDir)\"",
|
2022-09-28 18:53:53 +08:00
|
|
|
"xcopy /s /r /y /q \"%{IncludeDir.dotnet}\\bin\" \"$(OutDir)\""
|
2022-09-05 15:29:02 +08:00
|
|
|
}
|
|
|
|
|
2022-09-24 22:52:42 +08:00
|
|
|
filter "configurations:Debug"
|
2022-09-28 18:53:53 +08:00
|
|
|
postbuildcommands
|
|
|
|
{
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodL.dll\" \"$(OutDir)\"",
|
2022-12-30 17:00:48 +08:00
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudioL.dll\" \"$(OutDir)\"",
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.vswhere}\\vswhere.exe\" \"$(OutDir)\""
|
2022-09-28 18:53:53 +08:00
|
|
|
}
|
2022-09-24 22:52:42 +08:00
|
|
|
|
|
|
|
filter "configurations:Release"
|
2022-09-28 18:53:53 +08:00
|
|
|
postbuildcommands
|
|
|
|
{
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmod.dll\" \"$(OutDir)\"",
|
2022-12-30 17:00:48 +08:00
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudio.dll\" \"$(OutDir)\"",
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.vswhere}\\vswhere.exe\" \"$(OutDir)\""
|
2022-09-28 18:53:53 +08:00
|
|
|
}
|
2022-09-24 22:52:42 +08:00
|
|
|
|
2022-09-28 17:22:22 +08:00
|
|
|
filter "configurations:Publish"
|
2022-09-28 18:53:53 +08:00
|
|
|
postbuildcommands
|
|
|
|
{
|
2022-11-01 20:54:51 +08:00
|
|
|
--"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\"",
|
2022-09-28 18:53:53 +08:00
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmod.dll\" \"$(OutDir)\"",
|
|
|
|
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudio.dll\" \"$(OutDir)\""
|
|
|
|
}
|
2022-09-24 22:52:42 +08:00
|
|
|
|
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-11-01 20:54:51 +08:00
|
|
|
links{"librttr_core_d.lib", "spdlogd.lib"}
|
2022-09-22 14:05:53 +08:00
|
|
|
links{"fmodstudioL_vc.lib", "fmodL_vc.lib"}
|
2022-08-26 14:04:03 +08:00
|
|
|
|
|
|
|
filter "configurations:Release"
|
2022-09-25 22:33:07 +08:00
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE", "SHEDITOR"}
|
2022-11-01 20:54:51 +08:00
|
|
|
links{"librttr_core.lib", "spdlog.lib"}
|
2022-09-28 18:53:53 +08:00
|
|
|
links{"fmodstudio_vc.lib", "fmod_vc.lib"}
|
2022-09-25 22:33:07 +08:00
|
|
|
|
|
|
|
filter "configurations:Publish"
|
2022-08-26 14:04:03 +08:00
|
|
|
optimize "On"
|
2022-09-28 17:22:22 +08:00
|
|
|
defines{"_RELEASE", "_PUBLISH"}
|
2022-11-01 20:54:51 +08:00
|
|
|
links{"librttr_core.lib", "spdlog.lib"}
|
2022-09-25 22:33:07 +08:00
|
|
|
excludes
|
|
|
|
{
|
2022-10-02 00:47:26 +08:00
|
|
|
-- "%{prj.location}/src/Editor/**.cpp",
|
|
|
|
-- "%{prj.location}/src/Editor/**.h",
|
|
|
|
-- "%{prj.location}/src/Editor/**.hpp",
|
2022-09-25 22:33:07 +08:00
|
|
|
}
|
2022-09-22 14:05:53 +08:00
|
|
|
links{"fmodstudio_vc.lib", "fmod_vc.lib"}
|