Add hack to create cryptest.exe for DLL Mac'ing

pull/326/head
Jeffrey Walton 2016-10-06 01:37:51 -04:00
parent c70c784745
commit 1f69679806
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 14 additions and 2 deletions

View File

@ -127,8 +127,20 @@
</Link>
</ItemDefinitionGroup>
<!-- DLL Mac'ing -->
<ItemDefinitionGroup Label="DLL MAC&#39;ing">
<!-- Win32/Release cryptest.exe for DLL MAC'ing -->
<!-- Its and ugly hack, but it gets cryptest.exe built -->
<ItemDefinitionGroup Condition="!Exists('Win32\Output\Debug\cryptest.exe')" Label="MAC tool">
<PreBuildEvent>
<Message>Creating Win32/Release cryptest.exe for MAC computation</Message>
<Command>
msbuild /t:Build /p:Configuration=Debug;Platform=Win32 cryptlib.vcxproj
msbuild /t:Build /p:Configuration=Debug;Platform=Win32 cryptest.vcxproj
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<!-- DLL MAC'ing performed by cryptest.exe -->
<ItemDefinitionGroup Label="DLL MAC">
<PostBuildEvent>
<Message>Adding MAC to DLL</Message>
<Command>Win32\output\debug\cryptest.exe mac_dll "$(TargetPath)"