2017-07-17 06:15:48 -03:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
|
|
|
<ProjectConfiguration Include="Release|Win32">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
2019-05-15 19:38:55 -03:00
|
|
|
|
<ProjectConfiguration Include="Release|x64">
|
|
|
|
|
<Configuration>Release</Configuration>
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
2019-05-15 19:38:55 -03:00
|
|
|
|
<ProjectConfiguration Include="Release|ARM">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>ARM</Platform>
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</ProjectConfiguration>
|
2019-05-15 19:38:55 -03:00
|
|
|
|
<ProjectConfiguration Include="Release|ARM64">
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<Configuration>Release</Configuration>
|
2019-05-15 19:38:55 -03:00
|
|
|
|
<Platform>ARM64</Platform>
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
|
<ProjectGuid>{B5FD6F1D-129E-4BFF-9340-03606FAC7283}</ProjectGuid>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<Import Project="python.props" />
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
2019-05-15 19:38:55 -03:00
|
|
|
|
|
|
|
|
|
<PropertyGroup Label="Configuration" Condition="$(Platform) == 'Win32'">
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<ConfigurationType>Makefile</ConfigurationType>
|
|
|
|
|
<Bitness>32</Bitness>
|
|
|
|
|
<ArchName>x86</ArchName>
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<OpenSSLPlatform>VC-WIN32</OpenSSLPlatform>
|
2019-05-15 19:38:55 -03:00
|
|
|
|
<SupportSigning>true</SupportSigning>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup Label="Configuration" Condition="$(Platform) == 'x64'">
|
|
|
|
|
<ConfigurationType>Makefile</ConfigurationType>
|
|
|
|
|
<Bitness>64</Bitness>
|
|
|
|
|
<ArchName>amd64</ArchName>
|
|
|
|
|
<OpenSSLPlatform>VC-WIN64A-masm</OpenSSLPlatform>
|
|
|
|
|
<SupportSigning>true</SupportSigning>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup Label="Configuration" Condition="$(Platform) == 'ARM'">
|
|
|
|
|
<ConfigurationType>Makefile</ConfigurationType>
|
|
|
|
|
<Bitness>ARM</Bitness>
|
|
|
|
|
<ArchName>ARM</ArchName>
|
|
|
|
|
<OpenSSLPlatform>VC-WIN32-ARM</OpenSSLPlatform>
|
|
|
|
|
<SupportSigning>true</SupportSigning>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup Label="Configuration" Condition="$(Platform) == 'ARM64'">
|
|
|
|
|
<ConfigurationType>Makefile</ConfigurationType>
|
|
|
|
|
<Bitness>ARM64</Bitness>
|
|
|
|
|
<ArchName>ARM64</ArchName>
|
|
|
|
|
<OpenSSLPlatform>VC-WIN64-ARM</OpenSSLPlatform>
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<SupportSigning>true</SupportSigning>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
|
|
|
<Import Project="pyproject.props" />
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<IntDir>$(opensslDir)\tmp$(Bitness)dll</IntDir>
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<OutDir>$(opensslOutDir)</OutDir>
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<NMakeBuildCommandLine>setlocal
|
|
|
|
|
set VCINSTALLDIR=$(VCInstallDir)
|
|
|
|
|
if not exist "$(IntDir.TrimEnd('\'))" mkdir "$(IntDir.TrimEnd('\'))"
|
2017-09-09 10:13:06 -03:00
|
|
|
|
cd /D "$(IntDir.TrimEnd('\'))"
|
|
|
|
|
$(Perl) "$(opensslDir)\configure" $(OpenSSLPlatform) no-asm
|
|
|
|
|
nmake
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</NMakeBuildCommandLine>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
|
|
|
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<Target Name="_PatchUplink" BeforeTargets="Build">
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<Uplink>$(opensslDir)\ms\uplink.c</Uplink>
|
|
|
|
|
<BeforePatch>((h = GetModuleHandle(NULL)) == NULL)</BeforePatch>
|
|
|
|
|
<AfterPatch>((h = GetModuleHandleA("_ssl.pyd")) == NULL) if ((h = GetModuleHandleA("_ssl_d.pyd")) == NULL) if ((h = GetModuleHandle(NULL)) == NULL /*patched*/)</AfterPatch>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<Error Text="Cannot find $(Uplink)" Condition="!Exists($(Uplink))" />
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<_Original>$([System.IO.File]::ReadAllText($(Uplink)))</_Original>
|
|
|
|
|
<_Patched>$(_Original.Replace($(BeforePatch), $(AfterPatch)))</_Patched>
|
|
|
|
|
<IsPatched>false</IsPatched>
|
|
|
|
|
<IsPatched Condition="$(_Patched) == $(_Original)">true</IsPatched>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<Message Text="$(Uplink) is already patched" Importance="normal" Condition="$(IsPatched)" />
|
|
|
|
|
<Message Text="Patching $(Uplink)" Importance="high" Condition="!$(IsPatched)" />
|
|
|
|
|
<WriteLinesToFile File="$(Uplink)"
|
|
|
|
|
Lines="$(_Patched)"
|
|
|
|
|
Overwrite="true"
|
|
|
|
|
Encoding="ASCII"
|
|
|
|
|
Condition="!$(IsPatched)" />
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</Target>
|
|
|
|
|
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<Target Name="_CopyToOutput" AfterTargets="Build">
|
2017-07-17 06:15:48 -03:00
|
|
|
|
<ItemGroup>
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<_Built Include="$(opensslDir)\LICENSE" />
|
|
|
|
|
<_Built Include="$(IntDir)\libcrypto.lib;$(IntDir)\libcrypto-*.dll;$(IntDir)\libcrypto-*.pdb" />
|
|
|
|
|
<_Built Include="$(IntDir)\libssl.lib;$(IntDir)\libssl-*.dll;$(IntDir)\libssl-*.pdb" />
|
|
|
|
|
<_AppLink Include="$(opensslDir)\ms\applink.c" />
|
|
|
|
|
<_Include Include="$(opensslDir)\Include\openssl\*.h" />
|
|
|
|
|
<_Include Include="$(IntDir)\include\openssl\*.h" />
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</ItemGroup>
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<MakeDir Directories="$(opensslOutDir)\include\openssl" />
|
|
|
|
|
<Copy SourceFiles="@(_Built)" DestinationFolder="$(opensslOutDir)" />
|
|
|
|
|
<Copy SourceFiles="@(_AppLink)" DestinationFolder="$(opensslOutDir)\include" />
|
|
|
|
|
<Copy SourceFiles="@(_Include)" DestinationFolder="$(opensslOutDir)\include\openssl" />
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="SignFiles" AfterTargets="Build" Condition="$(_SignCommand) != ''">
|
|
|
|
|
<ItemGroup>
|
2017-09-09 10:13:06 -03:00
|
|
|
|
<FilesToSign Include="$(opensslOutDir)\lib*.dll" />
|
2017-07-17 06:15:48 -03:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
<Exec Command="$(_SignCommand) %(FilesToSign.FullPath)" ContinueOnError="true" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="Clean" />
|
|
|
|
|
<Target Name="CleanAll">
|
|
|
|
|
<Delete Files="$(TargetPath);$(BuildPath)$(tclDLLName)" />
|
|
|
|
|
<RemoveDir Directories="$(IntDir)" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="LocateNMake">
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputFilename Condition="$(OutputFilename) == ''">$(Temp)\nmake.loc</OutputFilename>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_NMakeExe Include="$(VC_ExecutablePath_x86_x86)\nmake.exe" Condition="$(VC_ExecutablePath_x86_x86) != ''" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName($(OutputFilename)))" />
|
|
|
|
|
<WriteLinesToFile File="$(OutputFilename)" Lines="@(_NMakeExe)" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="ResolveAssemblyReferences" />
|
|
|
|
|
</Project>
|