SHADE_Y3/SHADE_Engine/premake5.lua

107 lines
2.3 KiB
Lua
Raw Normal View History

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"
targetdir (outputdir)
objdir (interdir)
2022-08-26 14:04:03 +08:00
systemversion "latest"
pchheader "SHpch.h"
pchsource "%{prj.location}/src/SHpch.cpp"
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",
"%{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",
"%{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",
"shaderc_shared.lib",
"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",
"NOMINMAX",
"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
{
"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"}
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"}
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"}