From 969bdf502c8e81b148801d394ab3a04f6ceaf0a3 Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Sun, 8 Sep 2024 15:18:38 +0800 Subject: [PATCH] Adjust the compilation configurations to optimize the binary size for the Self Extracting Executables. --- NanaZip.Core/NanaZip.Core.Sfx.Console.vcxproj | 2 ++ NanaZip.Core/NanaZip.Core.Sfx.Setup.vcxproj | 2 ++ NanaZip.Core/NanaZip.Core.Sfx.Shared.vcxproj | 2 ++ NanaZip.Core/NanaZip.Core.Sfx.Windows.vcxproj | 2 ++ NanaZip.Frieren/NanaZip.Frieren.vcxproj | 2 ++ NanaZip.Shared/NanaZip.Shared.Mitigations.vcxproj | 2 ++ NanaZip.Shared/NanaZip.Shared.ModernExperienceShims.vcxproj | 2 ++ 7 files changed, 14 insertions(+) diff --git a/NanaZip.Core/NanaZip.Core.Sfx.Console.vcxproj b/NanaZip.Core/NanaZip.Core.Sfx.Console.vcxproj index a86e464b3..74dfe06d8 100644 --- a/NanaZip.Core/NanaZip.Core.Sfx.Console.vcxproj +++ b/NanaZip.Core/NanaZip.Core.Sfx.Console.vcxproj @@ -34,6 +34,8 @@ NoExtensions %(AdditionalOptions) /Wv:18 + MinSpace + Size true diff --git a/NanaZip.Core/NanaZip.Core.Sfx.Setup.vcxproj b/NanaZip.Core/NanaZip.Core.Sfx.Setup.vcxproj index 058b9889c..2f31ba634 100644 --- a/NanaZip.Core/NanaZip.Core.Sfx.Setup.vcxproj +++ b/NanaZip.Core/NanaZip.Core.Sfx.Setup.vcxproj @@ -37,6 +37,8 @@ NoExtensions %(AdditionalOptions) /Wv:18 Z7_NO_REGISTRY;Z7_NO_CRYPTO;%(PreprocessorDefinitions) + MinSpace + Size true diff --git a/NanaZip.Core/NanaZip.Core.Sfx.Shared.vcxproj b/NanaZip.Core/NanaZip.Core.Sfx.Shared.vcxproj index 2bd1f7d54..55383ddd2 100644 --- a/NanaZip.Core/NanaZip.Core.Sfx.Shared.vcxproj +++ b/NanaZip.Core/NanaZip.Core.Sfx.Shared.vcxproj @@ -21,6 +21,8 @@ Z7_EXTRACT_ONLY;Z7_NO_READ_FROM_CODER;Z7_SFX;Z7_NO_LONG_PATH;Z7_NO_LARGE_PAGES;%(PreprocessorDefinitions) Z7_LZMA_DEC_OPT;%(PreprocessorDefinitions) 4113; + MinSpace + Size true diff --git a/NanaZip.Core/NanaZip.Core.Sfx.Windows.vcxproj b/NanaZip.Core/NanaZip.Core.Sfx.Windows.vcxproj index 3ab601d3c..24a010551 100644 --- a/NanaZip.Core/NanaZip.Core.Sfx.Windows.vcxproj +++ b/NanaZip.Core/NanaZip.Core.Sfx.Windows.vcxproj @@ -37,6 +37,8 @@ NoExtensions %(AdditionalOptions) /Wv:18 Z7_NO_REGISTRY;Z7_LANG;%(PreprocessorDefinitions) + MinSpace + Size true diff --git a/NanaZip.Frieren/NanaZip.Frieren.vcxproj b/NanaZip.Frieren/NanaZip.Frieren.vcxproj index 05ec5964c..1a03a9bed 100644 --- a/NanaZip.Frieren/NanaZip.Frieren.vcxproj +++ b/NanaZip.Frieren/NanaZip.Frieren.vcxproj @@ -19,6 +19,8 @@ NoExtensions + MinSpace + Size diff --git a/NanaZip.Shared/NanaZip.Shared.Mitigations.vcxproj b/NanaZip.Shared/NanaZip.Shared.Mitigations.vcxproj index 55acc81fd..7864afa63 100644 --- a/NanaZip.Shared/NanaZip.Shared.Mitigations.vcxproj +++ b/NanaZip.Shared/NanaZip.Shared.Mitigations.vcxproj @@ -19,6 +19,8 @@ NoExtensions + MinSpace + Size diff --git a/NanaZip.Shared/NanaZip.Shared.ModernExperienceShims.vcxproj b/NanaZip.Shared/NanaZip.Shared.ModernExperienceShims.vcxproj index 8ea471677..120a444a1 100644 --- a/NanaZip.Shared/NanaZip.Shared.ModernExperienceShims.vcxproj +++ b/NanaZip.Shared/NanaZip.Shared.ModernExperienceShims.vcxproj @@ -19,6 +19,8 @@ NoExtensions + MinSpace + Size