forked from protobuf-net/protobuf-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.build
115 lines (95 loc) · 7.86 KB
/
all.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="BuildKit"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NugetDirectory>Nuget\lib</NugetDirectory>
<ZipDirectory>Package</ZipDirectory>
</PropertyGroup>
<ItemGroup>
<ProjectToBuild Include="protobuf-net\protobuf-net.csproj"/>
<ProjectToBuild Include="protobuf-net_Phone7\protobuf-net_Phone7.csproj"/>
<ProjectToBuild Include="protobuf-net_Silverlight\protobuf-net_Silverlight.csproj"/>
<ProjectToBuild Include="protobuf-net_Portable\protobuf-net_Portable.csproj"/>
<ProjectToBuild Include="protobuf-net_WinRT\protobuf-net_WinRT.csproj"/>
<iOSFiles Include="protobuf-net\bin\iOS\protobuf-net.*"/>
<UnityFiles Include="protobuf-net\bin\Unity\protobuf-net.*"/>
<Net20Files Include="protobuf-net\bin\Net20\protobuf-net.*"/>
<Net30Files Include="protobuf-net\bin\Release\protobuf-net.*"/>
<Net30Files_CoreOnly Include="protobuf-net\bin\CoreOnly\protobuf-net.*"/>
<SLFiles Include="protobuf-net_Silverlight\bin\Release\protobuf-net.*"/>
<SLFiles_CoreOnly Include="protobuf-net_Silverlight\bin\CoreOnly\protobuf-net.*"/>
<WP7Files Include="protobuf-net_Phone7\bin\Release\protobuf-net.*"/>
<WP7Files_CoreOnly Include="protobuf-net_Phone7\bin\CoreOnly\protobuf-net.*"/>
<WP8Files Include="protobuf-net_Phone8\bin\Release\protobuf-net.*"/>
<WP8Files_CoreOnly Include="protobuf-net_Phone8\bin\CoreOnly\protobuf-net.*"/>
<PortableFiles Include="protobuf-net_Portable\bin\Release\protobuf-net.*"/>
<PortableFiles_CoreOnly Include="protobuf-net_Portable\bin\CoreOnly\protobuf-net.*"/>
<PrecompileFiles Include="precompile\bin\Release\*.*"/>
<ProtogenFiles Include="ProtoGen\bin\Release\*.*"/>
<CF20Files Include="protobuf-net-CF20\bin\Release\protobuf-net.*"/>
<CF35Files Include="protobuf-net-CF35\bin\Release\protobuf-net.*"/>
<WinRTFiles Include="protobuf-net_WinRT\bin\Release\protobuf-net.*"/>
<CF20Files_CoreOnly Include="protobuf-net-CF20\bin\CoreOnly\protobuf-net.*"/>
<CF35Files_CoreOnly Include="protobuf-net-CF35\bin\CoreOnly\protobuf-net.*"/>
<WinRTFiles_CoreOnly Include="protobuf-net_WinRT\bin\CoreOnly\protobuf-net.*"/>
</ItemGroup>
<Target Name="BuildKit">
<RemoveDir Directories="$(NugetDirectory)"/>
<RemoveDir Directories="$(ZipDirectory)"/>
<MakeDir Directories="$(ZipDirectory)\Full\net11"/>
<MakeDir Directories="$(ZipDirectory)\CoreOnly\net11"/>
<Exec Command=""%SystemRoot%\Microsoft.Net\Framework\v1.1.4322\csc.exe" /debug- /optimize+ "/out:$(ZipDirectory)\Full\net11\protobuf-net.dll" /define:FX11 /define:NO_GENERICS /define:PLAT_BINARYFORMATTER /define:FEAT_COMPILER /target:library /unsafe /recurse:protobuf-net\*.cs"/>
<Exec Command=""%SystemRoot%\Microsoft.Net\Framework\v1.1.4322\csc.exe" /debug- /optimize+ "/out:$(ZipDirectory)\CoreOnly\net11\protobuf-net.dll" /define:FX11 /define:NO_GENERICS /define:PLAT_BINARYFORMATTER /define:NO_RUNTIME /target:library /unsafe /recurse:protobuf-net\*.cs"/>
<MSBuild Projects="protobuf-net-CF20\protobuf-net-CF20.csproj" Properties="Configuration=Release"/>
<MSBuild Projects="protobuf-net-CF35\protobuf-net-CF35.csproj" Properties="Configuration=Release"/>
<MSBuild Projects="protobuf-net_Phone8\protobuf-net_Phone8.csproj" Properties="Configuration=Release"/>
<MSBuild Projects="protobuf-net-CF20\protobuf-net-CF20.csproj" Properties="Configuration=CoreOnly"/>
<MSBuild Projects="protobuf-net-CF35\protobuf-net-CF35.csproj" Properties="Configuration=CoreOnly"/>
<MSBuild Projects="protobuf-net_Phone8\protobuf-net_Phone8.csproj" Properties="Configuration=CoreOnly"/>
<Copy SourceFiles="Licence.txt" DestinationFolder="$(ZipDirectory)"/>
<Copy SourceFiles="What Files Do I Need.txt" DestinationFolder="$(ZipDirectory)"/>
<MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Release" BuildInParallel="true"/>
<MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=CoreOnly" BuildInParallel="true"/>
<MSBuild Projects="protobuf-net\protobuf-net.csproj" Properties="Configuration=Net20"/>
<MSBuild Projects="protobuf-net\protobuf-net.csproj" Properties="Configuration=iOS"/>
<MSBuild Projects="protobuf-net\protobuf-net.csproj" Properties="Configuration=Unity"/>
<MSBuild Projects="protobuf-net_IKVM\protobuf-net_IKVM.csproj" Properties="Configuration=Release"/>
<MSBuild Projects="precompile\precompile.csproj" Properties="Configuration=Release"/>
<MSBuild Projects="ProtoGen\ProtoGen.csproj" Properties="Configuration=Release"/>
<Copy SourceFiles="@(Net20Files)" DestinationFolder="$(NugetDirectory)\net20"/>
<Copy SourceFiles="@(Net20Files)" DestinationFolder="$(ZipDirectory)\Full\net20"/>
<Copy SourceFiles="@(Net30Files)" DestinationFolder="$(NugetDirectory)\net30"/>
<Copy SourceFiles="@(Net30Files)" DestinationFolder="$(ZipDirectory)\Full\net30"/>
<Copy SourceFiles="@(Net30Files)" DestinationFolder="$(NugetDirectory)\net35"/>
<Copy SourceFiles="@(Net30Files)" DestinationFolder="$(NugetDirectory)\net40"/>
<Copy SourceFiles="@(SLFiles)" DestinationFolder="$(NugetDirectory)\sl4"/>
<Copy SourceFiles="@(SLFiles)" DestinationFolder="$(ZipDirectory)\Full\sl4"/>
<Copy SourceFiles="@(WP7Files)" DestinationFolder="$(NugetDirectory)\sl3-wp"/>
<Copy SourceFiles="@(WP7Files)" DestinationFolder="$(NugetDirectory)\sl4-windowsphone71"/>
<Copy SourceFiles="@(WP8Files)" DestinationFolder="$(NugetDirectory)\windowsphone8"/>
<Copy SourceFiles="@(WP7Files)" DestinationFolder="$(ZipDirectory)\Full\wp71"/>
<Copy SourceFiles="@(WP8Files)" DestinationFolder="$(ZipDirectory)\Full\wp8"/>
<Copy SourceFiles="@(UnityFiles)" DestinationFolder="$(ZipDirectory)\Full\unity"/>
<Copy SourceFiles="@(PortableFiles)" DestinationFolder="$(NugetDirectory)\portable-sl4+net40+wp7+windows8"/>
<Copy SourceFiles="@(PortableFiles)" DestinationFolder="$(ZipDirectory)\Full\portable"/>
<Copy SourceFiles="@(CF20Files)" DestinationFolder="$(NugetDirectory)\net20-cf"/>
<Copy SourceFiles="@(CF20Files)" DestinationFolder="$(ZipDirectory)\Full\cf20"/>
<Copy SourceFiles="@(CF35Files)" DestinationFolder="$(NugetDirectory)\net35-cf"/>
<Copy SourceFiles="@(CF35Files)" DestinationFolder="$(NugetDirectory)\net40-cf"/>
<Copy SourceFiles="@(CF35Files)" DestinationFolder="$(ZipDirectory)\Full\cf35"/>
<Copy SourceFiles="@(WinRTFiles)" DestinationFolder="$(NugetDirectory)\netcore45"/>
<Copy SourceFiles="@(WinRTFiles)" DestinationFolder="$(ZipDirectory)\Full\netcore45"/>
<Copy SourceFiles="@(CF20Files_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\cf20"/>
<Copy SourceFiles="@(CF35Files_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\cf35"/>
<Copy SourceFiles="@(WinRTFiles_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\netcore45"/>
<Copy SourceFiles="@(iOSFiles)" DestinationFolder="$(ZipDirectory)\CoreOnly\ios"/>
<Copy SourceFiles="@(Net30Files_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\net30"/>
<Copy SourceFiles="@(SLFiles_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\sl4"/>
<Copy SourceFiles="@(WP7Files_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\wp71"/>
<Copy SourceFiles="@(WP8Files_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\wp8"/>
<Copy SourceFiles="@(PortableFiles_CoreOnly)" DestinationFolder="$(ZipDirectory)\CoreOnly\portable"/>
<Copy SourceFiles="@(PrecompileFiles)" DestinationFolder="$(ZipDirectory)\Precompile"/>
<Copy SourceFiles="@(ProtoGenFiles)" DestinationFolder="$(ZipDirectory)\ProtoGen"/>
<Exec Command="packages\NuGet.CommandLine.2.0.40000\tools\NuGet.exe pack $(NugetDirectory)\..\protobuf-net.nuspec"/>
</Target>
</Project>