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++"
|
|
|
|
cppdialect "C++latest"
|
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-12 13:26:25 +08:00
|
|
|
"%{prj.location}/src/**.hpp",
|
2022-08-26 14:04:03 +08:00
|
|
|
"%{prj.location}/src/**.c",
|
|
|
|
"%{prj.location}/src/**.cpp",
|
2022-08-26 14:30:41 +08:00
|
|
|
"%{prj.location}/src/**.glsl",
|
|
|
|
"%{wks.location}/Dependencies/stb_image/**.cpp"
|
2022-08-26 14:04:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
|
|
|
"%{prj.location}/src",
|
2022-09-06 10:39:12 +08:00
|
|
|
"%{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-06 10:39:12 +08:00
|
|
|
"%{IncludeDir.ktx}/include",
|
|
|
|
"%{IncludeDir.RTTR}/include",
|
|
|
|
"%{IncludeDir.reactphysics3d}/include",
|
2022-09-08 19:11:25 +08:00
|
|
|
"%{IncludeDir.VULKAN}/include",
|
2022-09-14 19:57:59 +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
|
|
|
}
|
|
|
|
|
|
|
|
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 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-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
|
|
|
}
|
|
|
|
|
|
|
|
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-12 13:26:25 +08:00
|
|
|
"xcopy /s /r /y /q \"%{IncludeDir.dotnet}/bin\" \"$(OutDir)\""
|
|
|
|
}
|
|
|
|
|
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"}
|