From 6ef30bc41576086c80f4013b1f156ea1e1b85100 Mon Sep 17 00:00:00 2001 From: Xiao Qi Date: Wed, 28 Sep 2022 17:22:22 +0800 Subject: [PATCH] post processing copy for publish build --- SHADE_Application/premake5.lua | 2 +- SHADE_Engine/premake5.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SHADE_Application/premake5.lua b/SHADE_Application/premake5.lua index b34b06fa..103c1844 100644 --- a/SHADE_Application/premake5.lua +++ b/SHADE_Application/premake5.lua @@ -81,4 +81,4 @@ project "SHADE_Application" filter "configurations:Publish" optimize "On" - defines{"_RELEASE"} + defines{"_RELEASE", "_PUBLISH"} diff --git a/SHADE_Engine/premake5.lua b/SHADE_Engine/premake5.lua index 7de741b7..444dad12 100644 --- a/SHADE_Engine/premake5.lua +++ b/SHADE_Engine/premake5.lua @@ -113,6 +113,9 @@ project "SHADE_Engine" filter "configurations:Release" postbuildcommands {"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""} + filter "configurations:Publish" + postbuildcommands {"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""} + warnings 'Extra' filter "configurations:Debug" @@ -129,7 +132,7 @@ project "SHADE_Engine" filter "configurations:Publish" optimize "On" - defines{"_RELEASE"} + defines{"_RELEASE", "_PUBLISH"} links{"assimp-vc142-mt.lib", "librttr_core.lib", "spdlog.lib"} excludes {