Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame^] | 1 | <?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 | <ItemGroup> |
| 6 | <PreprocessorDefinitions Include="DSO_WIN32" /> |
| 7 | <PreprocessorDefinitions Include="WIN32_LEAN_AND_MEAN" /> |
| 8 | <PreprocessorDefinitions Include="L_ENDIAN" /> |
| 9 | <PreprocessorDefinitions Include="_CRT_SECURE_NO_WARNINGS" /> |
| 10 | <PreprocessorDefinitions Include="_CRT_SECURE_NO_DEPRECATE" /> |
| 11 | <PreprocessorDefinitions Include="OPENSSL_THREADS" /> |
| 12 | <PreprocessorDefinitions Include="OPENSSL_SYSNAME_WIN32" /> |
| 13 | <PreprocessorDefinitions Include="OPENSSL_IA32_SSE2" /> |
| 14 | <PreprocessorDefinitions Include="OPENSSL_BN_ASM_GF2m" /> |
| 15 | <PreprocessorDefinitions Include="OPENSSL_CPUID_OBJ" /> |
| 16 | <PreprocessorDefinitions Include="SHA1_ASM" /> |
| 17 | <PreprocessorDefinitions Include="SHA256_ASM" /> |
| 18 | <PreprocessorDefinitions Include="SHA512_ASM" /> |
| 19 | <PreprocessorDefinitions Include="MD5_ASM" /> |
| 20 | <PreprocessorDefinitions Include="AES_ASM" /> |
| 21 | <PreprocessorDefinitions Include="VPAES_ASM" /> |
| 22 | <PreprocessorDefinitions Include="WHIRLPOOL_ASM" /> |
| 23 | <PreprocessorDefinitions Include="GHASH_ASM" /> |
| 24 | <PreprocessorDefinitions Include="OPENSSL_NO_IDEA" /> |
| 25 | <PreprocessorDefinitions Include="OPENSSL_NO_RC5" /> |
| 26 | <PreprocessorDefinitions Include="OPENSSL_NO_MD2" /> |
| 27 | <PreprocessorDefinitions Include="OPENSSL_NO_MDC2" /> |
| 28 | <PreprocessorDefinitions Include="OPENSSL_NO_KRB5" /> |
| 29 | <PreprocessorDefinitions Include="OPENSSL_NO_JPAKE" /> |
| 30 | <PreprocessorDefinitions Include="OPENSSL_NO_RDRAND" /> |
| 31 | <PreprocessorDefinitions Include="OPENSSL_NO_RSAX" /> |
| 32 | <PreprocessorDefinitions Include="OPENSSL_NO_DYNAMIC_ENGINE" /> |
| 33 | </ItemGroup> |
| 34 | <ItemGroup Condition="'$(Platform)'=='Win32'"> |
| 35 | <PreprocessorDefinitions Include="OPENSSL_BN_ASM_PART_WORDS" /> |
| 36 | <PreprocessorDefinitions Include="OPENSSL_BN_ASM_MONT" /> |
| 37 | <PreprocessorDefinitions Include="RMD160_ASM" /> |
| 38 | </ItemGroup> |
| 39 | |
| 40 | <PropertyGroup> |
| 41 | <_PreprocessorDefinitionList>@(PreprocessorDefinitions)</_PreprocessorDefinitionList> |
| 42 | </PropertyGroup> |
| 43 | |
| 44 | <ItemDefinitionGroup> |
| 45 | <ClCompile> |
| 46 | <!-- Suppress 64-bit truncation warnings - they aren't ours to worry about --> |
| 47 | <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings> |
| 48 | <AdditionalIncludeDirectories>$(opensslDir);$(opensslDir)include;$(opensslDir)crypto;$(opensslDir)crypto\asn1;$(opensslDir)crypto\evp;$(opensslDir)crypto\modes</AdditionalIncludeDirectories> |
| 49 | <PreprocessorDefinitions>$(_PreprocessorDefinitionList);%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 50 | </ClCompile> |
| 51 | </ItemDefinitionGroup> |
| 52 | |
| 53 | <Target Name="FindNasm"> |
| 54 | <PropertyGroup> |
| 55 | <nasm Condition="$(Platform) == 'Win32'">"$(nasmDir)nasm.exe" -f win32</nasm> |
| 56 | <nasm Condition="$(Platform) == 'x64'">"$(nasmDir)nasm.exe" -f win64 -DNEAR -Ox -g</nasm> |
| 57 | </PropertyGroup> |
| 58 | </Target> |
| 59 | |
| 60 | <Target Name="BuildNasmFiles" BeforeTargets="PreBuildEvent" DependsOnTargets="PrepareForBuild;FindNasm" Inputs="@(NasmCompile)" Outputs="@(NasmCompile->'$(IntDir)%(Filename).obj')"> |
| 61 | <Exec Command='$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' /> |
| 62 | <ItemGroup> |
| 63 | <Link Include="$(IntDir)%(NasmCompile.Filename).obj" /> |
| 64 | <Lib Include="$(IntDir)%(NasmCompile.Filename).obj" /> |
| 65 | </ItemGroup> |
| 66 | </Target> |
| 67 | </Project> |