forked from reliak/moonpdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all.msbuild
21 lines (18 loc) · 886 Bytes
/
build-all.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--
Call this file via msbuild.
For X64 you can use the "VS2012 x64 Native Tools Command Prompt"
Example usage:
msbuild build-all.msbuild /p:platform=X64
Note that the property 'platform' is case sensitive here, so please use X64 and NOT x64
-->
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<platform Condition="$(platform) == ''">X86</platform>
</PropertyGroup>
<Target Name="Build">
<RemoveDir Directories="ext/sumatra/output/$(platform)" />
<exec Command="nmake -f makefile-mupdf.msvc platform=$(platform)"/>
<Copy SourceFiles="ext/sumatra/output/$(platform)/libmupdf.dll" DestinationFolder="bin/MuLib/$(platform)" />
<MSBuild Projects="src/MoonPdf.sln" Targets="Rebuild" Properties="Configuration=Release;Platform=$(platform);AllowUnsafeBlocks=true"/>
</Target>
</Project>