blob: 0de4e43410db0ca51770f31d5dc7e7d87ca78e48 [file] [log] [blame]
Steve Dower65e4cb12014-11-22 12:54:57 -08001<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Steve Dowerde9fb282015-07-27 14:56:58 -07003 <PropertyGroup>
4 <Py_IntDir Condition="'$(Py_IntDir)' == ''">$(opensslDir)tmp\</Py_IntDir>
5 </PropertyGroup>
6
Steve Dower65e4cb12014-11-22 12:54:57 -08007 <Import Project="pyproject.props" />
8
Zachary Ware7037cf72015-01-03 22:33:10 -06009 <PropertyGroup Label="Configuration">
10 <ConfigurationType>StaticLibrary</ConfigurationType>
Zachary Ware7037cf72015-01-03 22:33:10 -060011 </PropertyGroup>
12
Steve Dower65e4cb12014-11-22 12:54:57 -080013 <ItemGroup>
14 <PreprocessorDefinitions Include="DSO_WIN32" />
15 <PreprocessorDefinitions Include="WIN32_LEAN_AND_MEAN" />
16 <PreprocessorDefinitions Include="L_ENDIAN" />
17 <PreprocessorDefinitions Include="_CRT_SECURE_NO_WARNINGS" />
18 <PreprocessorDefinitions Include="_CRT_SECURE_NO_DEPRECATE" />
19 <PreprocessorDefinitions Include="OPENSSL_THREADS" />
Zachary Ware6fe57ad2016-02-22 04:08:51 -060020 <!-- <PreprocessorDefinitions Include="OPENSSL_SYSNAME_WIN32" /> -->
Steve Dower65e4cb12014-11-22 12:54:57 -080021 <PreprocessorDefinitions Include="OPENSSL_IA32_SSE2" />
Steve Dowerad464432016-09-09 14:57:39 -070022 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_GF2m" />
Steve Dower65e4cb12014-11-22 12:54:57 -080023 <PreprocessorDefinitions Include="SHA1_ASM" />
24 <PreprocessorDefinitions Include="SHA256_ASM" />
25 <PreprocessorDefinitions Include="SHA512_ASM" />
26 <PreprocessorDefinitions Include="MD5_ASM" />
27 <PreprocessorDefinitions Include="AES_ASM" />
28 <PreprocessorDefinitions Include="VPAES_ASM" />
29 <PreprocessorDefinitions Include="WHIRLPOOL_ASM" />
30 <PreprocessorDefinitions Include="GHASH_ASM" />
31 <PreprocessorDefinitions Include="OPENSSL_NO_IDEA" />
32 <PreprocessorDefinitions Include="OPENSSL_NO_RC5" />
33 <PreprocessorDefinitions Include="OPENSSL_NO_MD2" />
34 <PreprocessorDefinitions Include="OPENSSL_NO_MDC2" />
35 <PreprocessorDefinitions Include="OPENSSL_NO_KRB5" />
36 <PreprocessorDefinitions Include="OPENSSL_NO_JPAKE" />
37 <PreprocessorDefinitions Include="OPENSSL_NO_RDRAND" />
38 <PreprocessorDefinitions Include="OPENSSL_NO_RSAX" />
39 <PreprocessorDefinitions Include="OPENSSL_NO_DYNAMIC_ENGINE" />
40 </ItemGroup>
41 <ItemGroup Condition="'$(Platform)'=='Win32'">
42 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_PART_WORDS" />
43 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_MONT" />
44 <PreprocessorDefinitions Include="RMD160_ASM" />
45 </ItemGroup>
46
47 <PropertyGroup>
48 <_PreprocessorDefinitionList>@(PreprocessorDefinitions)</_PreprocessorDefinitionList>
49 </PropertyGroup>
50
51 <ItemDefinitionGroup>
52 <ClCompile>
53 <!-- Suppress 64-bit truncation warnings - they aren't ours to worry about -->
54 <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings>
Zachary Ware6fe57ad2016-02-22 04:08:51 -060055 <AdditionalIncludeDirectories>$(opensslDir);$(opensslIncludeDir);$(opensslDir)crypto;$(opensslDir)crypto\asn1;$(opensslDir)crypto\evp;$(opensslDir)crypto\modes</AdditionalIncludeDirectories>
Steve Dower65e4cb12014-11-22 12:54:57 -080056 <PreprocessorDefinitions>$(_PreprocessorDefinitionList);%(PreprocessorDefinitions)</PreprocessorDefinitions>
57 </ClCompile>
58 </ItemDefinitionGroup>
59
60 <Target Name="FindNasm">
61 <PropertyGroup>
Steve Dowerc4c79a02014-12-12 17:15:18 -080062 <nasm Condition="$(Platform) == 'Win32'">nasm.exe -f win32</nasm>
63 <nasm Condition="$(Platform) == 'x64'">nasm.exe -f win64 -DNEAR -Ox -g</nasm>
Steve Dower65e4cb12014-11-22 12:54:57 -080064 </PropertyGroup>
65 </Target>
66
67 <Target Name="BuildNasmFiles" BeforeTargets="PreBuildEvent" DependsOnTargets="PrepareForBuild;FindNasm" Inputs="@(NasmCompile)" Outputs="@(NasmCompile->'$(IntDir)%(Filename).obj')">
Steve Dowerc4c79a02014-12-12 17:15:18 -080068 <Exec Command='setlocal
Zachary Ware6bd687e2015-04-09 20:20:55 -050069set PATH=$(nasmDir);%PATH%
Steve Dowerc4c79a02014-12-12 17:15:18 -080070$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' />
Steve Dower65e4cb12014-11-22 12:54:57 -080071 <ItemGroup>
72 <Link Include="$(IntDir)%(NasmCompile.Filename).obj" />
73 <Lib Include="$(IntDir)%(NasmCompile.Filename).obj" />
74 </ItemGroup>
75 </Target>
Zachary Ware6fe57ad2016-02-22 04:08:51 -060076</Project>