Express cryptest.exe as prerequisite using MSBuild Task
parent
1f69679806
commit
2ba75d4adf
|
|
@ -127,23 +127,19 @@
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<!-- Win32/Release cryptest.exe for DLL MAC'ing -->
|
<!-- Win32/Debug cryptest.exe for DLL MAC'ing -->
|
||||||
<!-- Its and ugly hack, but it gets cryptest.exe built -->
|
<Target Condition="!Exists('Win32\Output\Debug\cryptest.exe')" Nam="MAC tool"Label="MAC tool">
|
||||||
<ItemDefinitionGroup Condition="!Exists('Win32\Output\Debug\cryptest.exe')" Label="MAC tool">
|
<MSbuild
|
||||||
<PreBuildEvent>
|
Projects="cryptest.vcxproj"
|
||||||
<Message>Creating Win32/Release cryptest.exe for MAC computation</Message>
|
Properties="Configuration=Debug;Platform=Win32;"/>
|
||||||
<Command>
|
</Target>
|
||||||
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 -->
|
<!-- DLL MAC'ing performed by cryptest.exe -->
|
||||||
<ItemDefinitionGroup Label="DLL MAC">
|
<ItemDefinitionGroup Label="DLL MAC">
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Adding MAC to DLL</Message>
|
<Message>Adding MAC to DLL</Message>
|
||||||
<Command>Win32\output\debug\cryptest.exe mac_dll "$(TargetPath)"
|
<Command>
|
||||||
|
Win32\output\debug\cryptest.exe mac_dll "$(TargetPath)"
|
||||||
IF %ERRORLEVEL% EQU 0 (echo mac done > "$(OutDir)"\cryptopp.mac.done)
|
IF %ERRORLEVEL% EQU 0 (echo mac done > "$(OutDir)"\cryptopp.mac.done)
|
||||||
</Command>
|
</Command>
|
||||||
<Inputs>%(Inputs)</Inputs>
|
<Inputs>%(Inputs)</Inputs>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue