SHADE_Y3/SHADE_Engine/premake5.lua

104 lines
2.1 KiB
Lua
Raw Normal View History

2022-08-26 14:04:03 +08:00
project "SHADE_Engine"
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",
"%{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-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-14 09:14:18 +08:00
"%{IncludeDir.VULKAN}/Source/SPIRV-Reflect"
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-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",
"vulkan-1.lib",
2022-09-14 21:47:39 +08:00
"shaderc_shared.lib",
"SDL2.lib",
"SDL2main.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
}
postbuildcommands
{
"xcopy /s /r /y /q \"%{IncludeDir.spdlog}/bin\" \"$(OutDir)\""
}
2022-08-26 14:04:03 +08:00
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
2022-09-14 21:47:39 +08:00
links{"assimp-vc142-mtd.lib", "librttr_core_d.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 21:47:39 +08:00
links{"assimp-vc142-mt.lib", "librttr_core.lib"}
2022-09-05 15:29:02 +08:00
--links{"fmodstudio_vc.lib", "fmod_vc.lib"}