diff options
author | Steve Dower <steve.dower@microsoft.com> | 2014-11-22 20:54:57 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2014-11-22 20:54:57 (GMT) |
commit | 65e4cb10d9d9964f30bc72561bf0e86833328a3b (patch) | |
tree | 1c9502ea790480e2ea06b380d912eeb879b2f96d /PCbuild/openssl.props | |
parent | 92716777b862af05bf149bd02cac4d83234751c4 (diff) | |
download | cpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.zip cpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.tar.gz cpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.tar.bz2 |
Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.
Diffstat (limited to 'PCbuild/openssl.props')
-rw-r--r-- | PCbuild/openssl.props | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/PCbuild/openssl.props b/PCbuild/openssl.props new file mode 100644 index 0000000..f964e4c --- /dev/null +++ b/PCbuild/openssl.props @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="pyproject.props" /> + + <ItemGroup> + <PreprocessorDefinitions Include="DSO_WIN32" /> + <PreprocessorDefinitions Include="WIN32_LEAN_AND_MEAN" /> + <PreprocessorDefinitions Include="L_ENDIAN" /> + <PreprocessorDefinitions Include="_CRT_SECURE_NO_WARNINGS" /> + <PreprocessorDefinitions Include="_CRT_SECURE_NO_DEPRECATE" /> + <PreprocessorDefinitions Include="OPENSSL_THREADS" /> + <PreprocessorDefinitions Include="OPENSSL_SYSNAME_WIN32" /> + <PreprocessorDefinitions Include="OPENSSL_IA32_SSE2" /> + <PreprocessorDefinitions Include="OPENSSL_BN_ASM_GF2m" /> + <PreprocessorDefinitions Include="OPENSSL_CPUID_OBJ" /> + <PreprocessorDefinitions Include="SHA1_ASM" /> + <PreprocessorDefinitions Include="SHA256_ASM" /> + <PreprocessorDefinitions Include="SHA512_ASM" /> + <PreprocessorDefinitions Include="MD5_ASM" /> + <PreprocessorDefinitions Include="AES_ASM" /> + <PreprocessorDefinitions Include="VPAES_ASM" /> + <PreprocessorDefinitions Include="WHIRLPOOL_ASM" /> + <PreprocessorDefinitions Include="GHASH_ASM" /> + <PreprocessorDefinitions Include="OPENSSL_NO_IDEA" /> + <PreprocessorDefinitions Include="OPENSSL_NO_RC5" /> + <PreprocessorDefinitions Include="OPENSSL_NO_MD2" /> + <PreprocessorDefinitions Include="OPENSSL_NO_MDC2" /> + <PreprocessorDefinitions Include="OPENSSL_NO_KRB5" /> + <PreprocessorDefinitions Include="OPENSSL_NO_JPAKE" /> + <PreprocessorDefinitions Include="OPENSSL_NO_RDRAND" /> + <PreprocessorDefinitions Include="OPENSSL_NO_RSAX" /> + <PreprocessorDefinitions Include="OPENSSL_NO_DYNAMIC_ENGINE" /> + </ItemGroup> + <ItemGroup Condition="'$(Platform)'=='Win32'"> + <PreprocessorDefinitions Include="OPENSSL_BN_ASM_PART_WORDS" /> + <PreprocessorDefinitions Include="OPENSSL_BN_ASM_MONT" /> + <PreprocessorDefinitions Include="RMD160_ASM" /> + </ItemGroup> + + <PropertyGroup> + <_PreprocessorDefinitionList>@(PreprocessorDefinitions)</_PreprocessorDefinitionList> + </PropertyGroup> + + <ItemDefinitionGroup> + <ClCompile> + <!-- Suppress 64-bit truncation warnings - they aren't ours to worry about --> + <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings> + <AdditionalIncludeDirectories>$(opensslDir);$(opensslDir)include;$(opensslDir)crypto;$(opensslDir)crypto\asn1;$(opensslDir)crypto\evp;$(opensslDir)crypto\modes</AdditionalIncludeDirectories> + <PreprocessorDefinitions>$(_PreprocessorDefinitionList);%(PreprocessorDefinitions)</PreprocessorDefinitions> + </ClCompile> + </ItemDefinitionGroup> + + <Target Name="FindNasm"> + <PropertyGroup> + <nasm Condition="$(Platform) == 'Win32'">"$(nasmDir)nasm.exe" -f win32</nasm> + <nasm Condition="$(Platform) == 'x64'">"$(nasmDir)nasm.exe" -f win64 -DNEAR -Ox -g</nasm> + </PropertyGroup> + </Target> + + <Target Name="BuildNasmFiles" BeforeTargets="PreBuildEvent" DependsOnTargets="PrepareForBuild;FindNasm" Inputs="@(NasmCompile)" Outputs="@(NasmCompile->'$(IntDir)%(Filename).obj')"> + <Exec Command='$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' /> + <ItemGroup> + <Link Include="$(IntDir)%(NasmCompile.Filename).obj" /> + <Lib Include="$(IntDir)%(NasmCompile.Filename).obj" /> + </ItemGroup> + </Target> +</Project>
\ No newline at end of file |