2021-11-14 17:37:16 +01:00
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets= "Build" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
<ItemGroup Label= "ProjectConfigurations" >
<ProjectConfiguration Include= "Debug|Win32" >
<Configuration > Debug</Configuration>
<Platform > Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include= "Release|Win32" >
<Configuration > Release</Configuration>
<Platform > Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include= "Debug|x64" >
<Configuration > Debug</Configuration>
<Platform > x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include= "Release|x64" >
<Configuration > Release</Configuration>
<Platform > x64</Platform>
</ProjectConfiguration>
2024-07-11 04:31:06 +02:00
<ProjectConfiguration Include= "Debug|ARM64" >
<Configuration > Debug</Configuration>
<Platform > ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include= "Release|ARM64" >
<Configuration > Release</Configuration>
<Platform > ARM64</Platform>
</ProjectConfiguration>
2021-11-14 17:37:16 +01:00
</ItemGroup>
<PropertyGroup Label= "Globals" >
<VCProjectVersion > 16.0</VCProjectVersion>
<Keyword > Win32Proj</Keyword>
<ProjectGuid > {2fd40b09-f224-4e9a-b2fe-a22b50b2debf}</ProjectGuid>
<RootNamespace > epsetup</RootNamespace>
<WindowsTargetPlatformVersion > 10.0</WindowsTargetPlatformVersion>
2024-07-23 18:40:54 +02:00
<GitCommitHashShort > 0000000</GitCommitHashShort>
2024-07-31 15:53:23 +02:00
<WithEncryption > false</WithEncryption>
2021-11-14 17:37:16 +01:00
</PropertyGroup>
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|Win32'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > true</UseDebugLibraries>
2024-02-14 00:11:23 +01:00
<PlatformToolset > v143</PlatformToolset>
2021-11-14 17:37:16 +01:00
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|Win32'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > false</UseDebugLibraries>
2024-02-14 00:11:23 +01:00
<PlatformToolset > v143</PlatformToolset>
2021-11-14 17:37:16 +01:00
<WholeProgramOptimization > true</WholeProgramOptimization>
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|x64'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > true</UseDebugLibraries>
2024-02-14 00:11:23 +01:00
<PlatformToolset > v143</PlatformToolset>
2021-11-14 17:37:16 +01:00
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|x64'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > false</UseDebugLibraries>
2024-02-14 00:11:23 +01:00
<PlatformToolset > v143</PlatformToolset>
2021-11-14 17:37:16 +01:00
<WholeProgramOptimization > true</WholeProgramOptimization>
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
2024-07-11 04:31:06 +02:00
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > true</UseDebugLibraries>
<PlatformToolset > v143</PlatformToolset>
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|ARM64'" Label= "Configuration" >
<ConfigurationType > Application</ConfigurationType>
<UseDebugLibraries > false</UseDebugLibraries>
<PlatformToolset > v143</PlatformToolset>
<WholeProgramOptimization > true</WholeProgramOptimization>
<CharacterSet > Unicode</CharacterSet>
</PropertyGroup>
2021-11-14 17:37:16 +01:00
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label= "ExtensionSettings" >
</ImportGroup>
<ImportGroup Label= "Shared" >
</ImportGroup>
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Debug|Win32'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Release|Win32'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Debug|x64'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Release|x64'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
2024-07-11 04:31:06 +02:00
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Debug|ARM64'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label= "PropertySheets" Condition= "'$(Configuration)|$(Platform)'=='Release|ARM64'" >
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
2021-11-14 17:37:16 +01:00
<PropertyGroup Label= "UserMacros" />
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|Win32'" >
<LinkIncremental > true</LinkIncremental>
2024-07-11 04:31:06 +02:00
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
2021-11-14 17:37:16 +01:00
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|Win32'" >
<LinkIncremental > false</LinkIncremental>
2024-07-11 04:31:06 +02:00
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
2021-11-14 17:37:16 +01:00
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|x64'" >
<LinkIncremental > true</LinkIncremental>
2024-07-11 04:31:06 +02:00
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
2021-11-14 17:37:16 +01:00
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|x64'" >
<LinkIncremental > false</LinkIncremental>
2024-07-11 04:31:06 +02:00
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|ARM64'" >
<LinkIncremental > true</LinkIncremental>
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Release|ARM64'" >
<LinkIncremental > false</LinkIncremental>
<OutDir > $(SolutionDir)\build\$(Configuration)\$(Platform)\</OutDir>
2021-11-14 17:37:16 +01:00
</PropertyGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|Win32'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreadedDebug</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-11-14 17:37:16 +01:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2021-11-14 17:37:16 +01:00
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Release|Win32'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<FunctionLevelLinking > true</FunctionLevelLinking>
<IntrinsicFunctions > true</IntrinsicFunctions>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreaded</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-11-14 17:37:16 +01:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<OptimizeReferences > true</OptimizeReferences>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2021-11-14 17:37:16 +01:00
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|x64'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > _DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreadedDebug</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-11-14 17:37:16 +01:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2021-11-14 17:37:16 +01:00
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Release|x64'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<FunctionLevelLinking > true</FunctionLevelLinking>
<IntrinsicFunctions > true</IntrinsicFunctions>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreaded</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-11-14 17:37:16 +01:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<OptimizeReferences > true</OptimizeReferences>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2021-11-14 17:37:16 +01:00
</Link>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|ARM64'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > _DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreadedDebug</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2024-07-11 04:31:06 +02:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2024-07-11 04:31:06 +02:00
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)|$(Platform)'=='Release|ARM64'" >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<FunctionLevelLinking > true</FunctionLevelLinking>
<IntrinsicFunctions > true</IntrinsicFunctions>
<SDLCheck > true</SDLCheck>
<PreprocessorDefinitions > NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode > true</ConformanceMode>
<RuntimeLibrary > MultiThreaded</RuntimeLibrary>
2024-07-23 18:40:54 +02:00
<AdditionalIncludeDirectories > $(SolutionDir)libs\libvalinet;$(SolutionDir)libs\zlib;$(SolutionDir)libs\zlib\contrib;$(SolutionDir)libs\zlib\build-$(Platform);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2024-07-11 04:31:06 +02:00
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<OptimizeReferences > true</OptimizeReferences>
<GenerateDebugInformation > true</GenerateDebugInformation>
2024-07-23 18:40:54 +02:00
<AdditionalLibraryDirectories > $(SolutionDir)libs\zlib\build-$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2024-07-11 04:31:06 +02:00
</Link>
</ItemDefinitionGroup>
2024-09-12 09:34:06 +02:00
<ItemDefinitionGroup >
<ClCompile >
<PreprocessorDefinitions > EP_BUILD_SETUP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
2024-07-23 18:40:54 +02:00
<ItemDefinitionGroup Condition= "'$(WithEncryption)' == 'true'" >
<ClCompile >
<PreprocessorDefinitions > WITH_ENCRYPTION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "Exists('..\build\$(Configuration)\$(Platform)\ep_taskbar.2.dll')" >
2024-02-13 21:11:42 +01:00
<ResourceCompile >
<PreprocessorDefinitions > EP_TASKBAR_2_EXISTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "Exists('..\build\$(Configuration)\$(Platform)\ep_taskbar.3.dll')" >
2024-02-13 21:11:42 +01:00
<ResourceCompile >
<PreprocessorDefinitions > EP_TASKBAR_3_EXISTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "Exists('..\build\$(Configuration)\$(Platform)\ep_taskbar.4.dll')" >
2024-02-13 21:11:42 +01:00
<ResourceCompile >
<PreprocessorDefinitions > EP_TASKBAR_4_EXISTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "Exists('..\build\$(Configuration)\$(Platform)\ep_taskbar.5.dll')" >
2024-02-18 08:11:58 +01:00
<ResourceCompile >
<PreprocessorDefinitions > EP_TASKBAR_5_EXISTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
2024-07-11 04:31:06 +02:00
<ItemDefinitionGroup Condition= "'$(Platform)'=='x64'" >
<ResourceCompile >
<PreprocessorDefinitions > PLATFORM_AMD64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Platform)'=='ARM64'" >
<ResourceCompile >
<PreprocessorDefinitions > PLATFORM_ARM64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
2021-11-14 17:37:16 +01:00
<ItemGroup >
<ClCompile Include= "..\ExplorerPatcher\utility.c" />
<ClCompile Include= "ep_setup.c" />
2024-07-23 18:40:54 +02:00
<ClCompile Include= "..\libs\zlib\contrib\minizip\ioapi.c" />
<ClCompile Include= "..\libs\zlib\contrib\minizip\unzip.c" >
<PreprocessorDefinitions > NOCRYPT;NOUNCRYPT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
2021-11-14 17:37:16 +01:00
</ItemGroup>
<ItemGroup >
<ClInclude Include= "..\ExplorerPatcher\utility.h" />
2023-11-12 08:00:35 +01:00
<ClInclude Include= "resources\resource.h" />
2024-07-23 18:40:54 +02:00
<ClInclude Include= "rijndael-alg-fst.h" />
2021-11-14 17:37:16 +01:00
</ItemGroup>
<ItemGroup >
2023-11-12 05:49:59 +01:00
<ResourceCompile Include= "resources\ep_setup.rc" >
2024-07-11 04:31:06 +02:00
<ExcludedFromBuild Condition= "'$(Configuration)'=='Debug'" > true</ExcludedFromBuild>
2021-12-05 03:04:41 +01:00
</ResourceCompile>
2023-11-12 05:49:59 +01:00
<ResourceCompile Include= "resources\ep_setup_debug.rc" >
2024-07-11 04:31:06 +02:00
<ExcludedFromBuild Condition= "'$(Configuration)'=='Release'" > true</ExcludedFromBuild>
2021-12-05 03:04:41 +01:00
</ResourceCompile>
2023-11-12 05:49:59 +01:00
<ResourceCompile Include= "resources\lang\ep_setup.*.rc" />
<ResourceCompile Include= "..\ExplorerPatcher-L10N\resources\lang\ep_setup.*.rc" Condition= "Exists('..\ExplorerPatcher-L10N\resources\lang')" />
2021-11-14 17:37:16 +01:00
</ItemGroup>
<ItemGroup >
<None Include= "applicat.bin" />
</ItemGroup>
2024-07-23 18:40:54 +02:00
<ItemGroup >
2024-07-31 14:08:46 +02:00
<PackFile Include= "resources\files\**" />
2024-07-24 10:45:31 +02:00
<PackFile Include= "..\build\$(Configuration)\Win32\ExplorerPatcher.IA-32.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\Win32\ExplorerPatcher.IA-32.dll')" />
<PackFile Include= "..\build\$(Configuration)\x64\ExplorerPatcher.amd64.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\x64\ExplorerPatcher.amd64.dll')" />
<PackFile Include= "..\build\$(Configuration)\ARM64\ExplorerPatcher.arm64.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\ARM64\ExplorerPatcher.arm64.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\WebView2Loader.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\WebView2Loader.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_dwm.exe" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_dwm.exe')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_gui.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_gui.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_startmenu.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_startmenu.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_taskbar.2.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_taskbar.2.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_taskbar.3.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_taskbar.3.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_taskbar.4.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_taskbar.4.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_taskbar.5.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_taskbar.5.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_weather_host.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_weather_host.dll')" />
<PackFile Include= "..\build\$(Configuration)\$(Platform)\ep_weather_host_stub.dll" Condition= "Exists('$(SolutionDir)\build\$(Configuration)\$(Platform)\ep_weather_host_stub.dll')" />
2024-07-23 18:40:54 +02:00
</ItemGroup>
<Target Name= "GetCommitHash" AfterTargets= "PrepareForBuild" >
<Exec Command= "git rev-parse --short HEAD" ConsoleToMSBuild= "true" Condition= "'$(GitCommitHashShort)' == '0000000'" >
<Output TaskParameter= "ConsoleOutput" PropertyName= "GitCommitHashShort" />
</Exec>
<Message Text= "Git commit hash: $(GitCommitHashShort)" />
</Target>
<UsingTask TaskName= "GenerateAesKey" TaskFactory= "CodeTaskFactory" AssemblyFile= "$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<ParameterGroup >
<Seed ParameterType= "System.String" Required= "true" />
<EncryptionKey ParameterType= "System.String" Output= "true" />
<EncryptionKeyCommaSeparated ParameterType= "System.String" Output= "true" />
</ParameterGroup>
<Task >
<Code Type= "Fragment" Language= "cs" >
< ![CDATA[
using (System.Security.Cryptography.SHA256 sha256 = System.Security.Cryptography.SHA256.Create())
{
byte[] seedBytes = System.Text.Encoding.UTF8.GetBytes(Seed);
byte[] hashBytes = sha256.ComputeHash(seedBytes);
Random random = new System.Random(System.BitConverter.ToInt32(hashBytes, 0));
byte[] keyBytes = new byte[32];
random.NextBytes(keyBytes);
EncryptionKey = System.BitConverter.ToString(keyBytes).Replace("-", "").ToLowerInvariant();
EncryptionKeyCommaSeparated = "0x" + System.BitConverter.ToString(keyBytes).Replace("-", ",0x");
}
]]>
</Code>
</Task>
</UsingTask>
<Target Name= "GenerateAesKey" AfterTargets= "GetCommitHash" >
<GenerateAesKey Seed= "$(GitCommitHashShort)" Condition= "'$(WithEncryption)' == 'true'" >
<Output TaskParameter= "EncryptionKey" PropertyName= "ZipEncryptionKey" />
<Output TaskParameter= "EncryptionKeyCommaSeparated" PropertyName= "ZipEncryptionKeyCommaSeparated" />
</GenerateAesKey>
<ItemGroup Condition= "'$(WithEncryption)' == 'true'" >
<ClCompile >
<PreprocessorDefinitions > ZIP_ENCRYPTION_KEY=$(ZipEncryptionKeyCommaSeparated);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemGroup>
<Message Text= "Generated AES key: 0x$(ZipEncryptionKey)" Condition= "'$(WithEncryption)' == 'true'" />
</Target>
<UsingTask TaskName= "EncryptFile" TaskFactory= "CodeTaskFactory" AssemblyFile= "$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<ParameterGroup >
<OutputFile ParameterType= "System.String" />
<EncryptionKey ParameterType= "System.String" />
</ParameterGroup>
<Task >
<Code Type= "Fragment" Language= "cs" >
< ![CDATA[
using (System.Security.Cryptography.Aes aes = System.Security.Cryptography.Aes.Create())
{
int numChars = EncryptionKey.Length;
byte[] keyBytes = new byte[numChars / 2];
for (int i = 0; i < numChars ; i + = 2 )
{
keyBytes[i / 2] = System.Convert.ToByte(EncryptionKey.Substring(i, 2), 16);
}
aes.Key = keyBytes;
aes.Mode = System.Security.Cryptography.CipherMode.ECB;
using (System.IO.FileStream inputFileStream = new System.IO.FileStream(OutputFile, System.IO.FileMode.Open, System.IO.FileAccess.Read))
using (System.IO.FileStream outputFileStream = new System.IO.FileStream(OutputFile + ".bin", System.IO.FileMode.Create, System.IO.FileAccess.Write))
using (System.Security.Cryptography.ICryptoTransform encryptor = aes.CreateEncryptor())
using (System.Security.Cryptography.CryptoStream cryptoStream = new System.Security.Cryptography.CryptoStream(outputFileStream, encryptor, System.Security.Cryptography.CryptoStreamMode.Write))
{
inputFileStream.CopyTo(cryptoStream);
}
}
]]>
</Code>
</Task>
</UsingTask>
<Target Name= "CreateZip" BeforeTargets= "ResourceCompile" >
2024-07-24 10:45:31 +02:00
<MakeDir Directories= "..\build\$(Configuration)\$(Platform)\ep_setup_files" />
2024-07-31 15:38:58 +02:00
<DownloadFile DestinationFolder= "..\build\$(Configuration)\$(Platform)\ep_setup_files\pnidui" DestinationFileName= "pnidui.dll" SourceUrl= "https://msdl.microsoft.com/download/symbols/pnidui.dll/F717CABC20B000/pnidui.dll" SkipUnchangedFiles= "true" Retries= "3" Condition= "'$(Platform)' == 'x64'" />
<DownloadFile DestinationFolder= "..\build\$(Configuration)\$(Platform)\ep_setup_files\pnidui" DestinationFileName= "pnidui.dll" SourceUrl= "https://msdl.microsoft.com/download/symbols/pnidui.dll/63AF842D210000/pnidui.dll" SkipUnchangedFiles= "true" Retries= "3" Condition= "'$(Platform)' == 'ARM64'" />
<DownloadFile DestinationFolder= "..\build\$(Configuration)\$(Platform)\ep_setup_files\StartUI" DestinationFileName= "StartUI.dll" SourceUrl= "https://msdl.microsoft.com/download/symbols/startui.dll/C1AEED44852000/startui.dll" SkipUnchangedFiles= "true" Retries= "3" Condition= "'$(Platform)' == 'x64'" />
<DownloadFile DestinationFolder= "..\build\$(Configuration)\$(Platform)\ep_setup_files\StartUI" DestinationFileName= "StartUI.dll" SourceUrl= "https://msdl.microsoft.com/download/symbols/startui.dll/122A50F3AB9000/startui.dll" SkipUnchangedFiles= "true" Retries= "3" Condition= "'$(Platform)' == 'ARM64'" />
2024-07-31 14:08:46 +02:00
<Copy SourceFiles= "@(PackFile)" DestinationFolder= "..\build\$(Configuration)\$(Platform)\ep_setup_files\%(RecursiveDir)" />
2024-07-23 18:40:54 +02:00
<ZipDirectory SourceDirectory= "..\build\$(Configuration)\$(Platform)\ep_setup_files" DestinationFile= "..\build\$(Configuration)\$(Platform)\ep_setup_files.zip" Overwrite= "true" />
<EncryptFile OutputFile= "..\build\$(Configuration)\$(Platform)\ep_setup_files.zip" EncryptionKey= "$(ZipEncryptionKey)" Condition= "'$(WithEncryption)' == 'true'" />
<Copy SourceFiles= "..\build\$(Configuration)\$(Platform)\ep_setup_files.zip" DestinationFiles= "..\build\$(Configuration)\$(Platform)\ep_setup_files.zip.bin" Condition= "'$(WithEncryption)' != 'true'" />
</Target>
2021-11-14 17:37:16 +01:00
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label= "ExtensionTargets" >
</ImportGroup>
2024-07-31 16:08:20 +02:00
</Project>