blob: 54f3596fb00ba9a4ce761112c94436a4756ceecd [file] [log] [blame]
Zachary Ware47343722015-07-16 00:24:48 -05001<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Import Project="pyproject.props" />
4
5 <PropertyGroup Label="Configuration">
6 <ConfigurationType>StaticLibrary</ConfigurationType>
7 <IntDir>$(opensslDir)tmp\$(ArchName)_$(Configuration)\$(ProjectName)\</IntDir>
8 <IntDir Condition="$(Configuration) == 'PGInstrument' or $(Configuration) == 'PGUpdate'">$(opensslDir)tmp\$(ArchName)\$(ProjectName)\</IntDir>
9 </PropertyGroup>
10
11 <ItemGroup>
12 <PreprocessorDefinitions Include="DSO_WIN32" />
13 <PreprocessorDefinitions Include="WIN32_LEAN_AND_MEAN" />
14 <PreprocessorDefinitions Include="L_ENDIAN" />
15 <PreprocessorDefinitions Include="_CRT_SECURE_NO_WARNINGS" />
16 <PreprocessorDefinitions Include="_CRT_SECURE_NO_DEPRECATE" />
17 <PreprocessorDefinitions Include="OPENSSL_THREADS" />
18 <PreprocessorDefinitions Include="OPENSSL_SYSNAME_WIN32" />
19 <PreprocessorDefinitions Include="OPENSSL_IA32_SSE2" />
20 <PreprocessorDefinitions Include="OPENSSL_CPUID_OBJ" />
21 <PreprocessorDefinitions Include="SHA1_ASM" />
22 <PreprocessorDefinitions Include="SHA256_ASM" />
23 <PreprocessorDefinitions Include="SHA512_ASM" />
24 <PreprocessorDefinitions Include="MD5_ASM" />
25 <PreprocessorDefinitions Include="AES_ASM" />
26 <PreprocessorDefinitions Include="VPAES_ASM" />
27 <PreprocessorDefinitions Include="WHIRLPOOL_ASM" />
28 <PreprocessorDefinitions Include="GHASH_ASM" />
29 <PreprocessorDefinitions Include="OPENSSL_NO_IDEA" />
30 <PreprocessorDefinitions Include="OPENSSL_NO_RC5" />
31 <PreprocessorDefinitions Include="OPENSSL_NO_MD2" />
32 <PreprocessorDefinitions Include="OPENSSL_NO_MDC2" />
33 <PreprocessorDefinitions Include="OPENSSL_NO_KRB5" />
34 <PreprocessorDefinitions Include="OPENSSL_NO_JPAKE" />
35 <PreprocessorDefinitions Include="OPENSSL_NO_RDRAND" />
36 <PreprocessorDefinitions Include="OPENSSL_NO_RSAX" />
37 <PreprocessorDefinitions Include="OPENSSL_NO_DYNAMIC_ENGINE" />
38 </ItemGroup>
39 <ItemGroup Condition="'$(Platform)'=='Win32'">
40 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_GF2m" />
41 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_PART_WORDS" />
42 <PreprocessorDefinitions Include="OPENSSL_BN_ASM_MONT" />
43 <PreprocessorDefinitions Include="RMD160_ASM" />
44 </ItemGroup>
45
46 <PropertyGroup>
47 <_PreprocessorDefinitionList>@(PreprocessorDefinitions)</_PreprocessorDefinitionList>
48 </PropertyGroup>
49
50 <ItemDefinitionGroup>
51 <ClCompile>
52 <!-- Suppress 64-bit truncation warnings - they aren't ours to worry about -->
53 <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings>
54 <AdditionalIncludeDirectories>$(opensslDir);$(opensslDir)include;$(opensslDir)crypto;$(opensslDir)crypto\asn1;$(opensslDir)crypto\evp;$(opensslDir)crypto\modes</AdditionalIncludeDirectories>
55 <PreprocessorDefinitions>$(_PreprocessorDefinitionList);%(PreprocessorDefinitions)</PreprocessorDefinitions>
56 </ClCompile>
57 </ItemDefinitionGroup>
58
59 <Target Name="FindNasm">
60 <PropertyGroup>
61 <nasm Condition="$(Platform) == 'Win32'">nasm.exe -f win32</nasm>
62 <nasm Condition="$(Platform) == 'x64'">nasm.exe -f win64 -DNEAR -Ox -g</nasm>
63 </PropertyGroup>
64 </Target>
65
66 <Target Name="BuildNasmFiles" BeforeTargets="PreBuildEvent" DependsOnTargets="PrepareForBuild;FindNasm" Inputs="@(NasmCompile)" Outputs="@(NasmCompile->'$(IntDir)%(Filename).obj')">
67 <Exec Command='setlocal
68set PATH=$(nasmDir);%PATH%
69$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' />
70 <ItemGroup>
71 <Link Include="$(IntDir)%(NasmCompile.Filename).obj" />
72 <Lib Include="$(IntDir)%(NasmCompile.Filename).obj" />
73 </ItemGroup>
74 </Target>
75</Project>