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-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-09 13:28:57 +08:00
|
|
|
"%{prj.location}/src/**.glsl"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
|
|
|
"%{prj.location}/src",
|
2022-09-14 19:44:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
externalincludedirs
|
|
|
|
{
|
|
|
|
"%{IncludeDir.assimp}/include",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.imgui}",
|
|
|
|
"%{IncludeDir.imguizmo}",
|
|
|
|
"%{IncludeDir.imnodes}",
|
|
|
|
"%{IncludeDir.msdf_atlas_gen}",
|
|
|
|
"%{IncludeDir.msdfgen}",
|
2022-09-06 10:39:12 +08:00
|
|
|
"%{IncludeDir.spdlog}/include",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.tracy}",
|
2022-09-06 10:39:12 +08:00
|
|
|
"%{IncludeDir.VMA}/include",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{IncludeDir.yamlcpp}",
|
2022-09-14 21:47:39 +08:00
|
|
|
"%{IncludeDir.SDL}/include",
|
2022-09-06 10:39:12 +08:00
|
|
|
"%{IncludeDir.RTTR}/include",
|
|
|
|
"%{IncludeDir.reactphysics3d}/include",
|
2022-09-08 19:11:25 +08:00
|
|
|
"%{IncludeDir.VULKAN}/include",
|
2022-09-15 12:22:37 +08:00
|
|
|
"%{IncludeDir.VULKAN}/Source/SPIRV-Reflect",
|
2022-09-12 13:26:25 +08:00
|
|
|
"%{IncludeDir.dotnet}/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.assimp}/lib/Debug",
|
|
|
|
"%{IncludeDir.assimp}/lib/Release",
|
|
|
|
"%{IncludeDir.RTTR}/lib",
|
2022-09-14 21:47:39 +08:00
|
|
|
"%{IncludeDir.SDL}/lib",
|
2022-09-14 20:09:01 +08:00
|
|
|
"%{IncludeDir.spdlog}/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 13:56:39 +08:00
|
|
|
"shaderc_shared.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
|
|
|
|
{
|
|
|
|
"4251"
|
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-14 19:57:59 +08:00
|
|
|
"xcopy /s /r /y /q \"%{IncludeDir.spdlog}/bin\" \"$(OutDir)\"",
|
2022-09-15 12:05:12 +08:00
|
|
|
"xcopy /r /y /q \"%{IncludeDir.SDL}/lib/SDL2.dll\" \"$(OutDir)\"",
|
2022-09-12 13:26:25 +08:00
|
|
|
"xcopy /s /r /y /q \"%{IncludeDir.dotnet}/bin\" \"$(OutDir)\""
|
2022-09-05 15:29:02 +08:00
|
|
|
}
|
|
|
|
|
2022-08-26 14:04:03 +08:00
|
|
|
warnings 'Extra'
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
symbols "On"
|
|
|
|
defines {"_DEBUG"}
|
2022-09-14 20:09:01 +08:00
|
|
|
links{"assimp-vc142-mtd.lib", "librttr_core_d.lib", "spdlogd.lib"}
|
2022-09-05 15:29:02 +08:00
|
|
|
--links{"fmodstudioL_vc.lib", "fmodL_vc.lib"}
|
2022-08-26 14:04:03 +08:00
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE"}
|
2022-09-14 20:09:01 +08:00
|
|
|
links{"assimp-vc142-mt.lib", "librttr_core.lib", "spdlog.lib"}
|
2022-09-05 15:29:02 +08:00
|
|
|
--links{"fmodstudio_vc.lib", "fmod_vc.lib"}
|