SHADE_Y3/SHADE_Engine/premake5.lua

98 lines
2.1 KiB
Lua
Raw Normal View History

2022-08-26 14:04:03 +08:00
project "SHADE_Engine"
kind "StaticLib"
language "C++"
cppdialect "C++latest"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
systemversion "latest"
pchheader "SHpch.h"
pchsource "%{prj.location}/src/SHpch.cpp"
staticruntime "on"
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.hpp",
2022-08-26 14:04:03 +08:00
"%{prj.location}/src/**.c",
"%{prj.location}/src/**.cpp",
"%{prj.location}/src/**.glsl"
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-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.ktx}/lib/Debug",
"%{IncludeDir.ktx}/lib/Release",
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",
"spdlog",
"vulkan-1.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"
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",
"spdlog",
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-06 10:39:12 +08:00
links{"assimp-vc142-mtd.lib", "ktxd.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-06 10:39:12 +08:00
links{"assimp-vc142-mt.lib", "ktx.lib", "librttr_core.lib"}
2022-09-05 15:29:02 +08:00
--links{"fmodstudio_vc.lib", "fmod_vc.lib"}