diff options
author | csharptest <roger@csharptest.net> | 2011-10-15 12:11:53 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-10-15 12:11:53 -0500 |
commit | f2c16f1d0d21e5a51a4d81fb786aeb032d83a1ab (patch) | |
tree | 1c9d124b4ab86ae296e57ceacc2e6dbf1b4b8efe /build | |
parent | 03ea9131f5e5828f916fd1e8f3607ffe163ba904 (diff) | |
download | protobuf-f2c16f1d0d21e5a51a4d81fb786aeb032d83a1ab.tar.gz protobuf-f2c16f1d0d21e5a51a4d81fb786aeb032d83a1ab.tar.bz2 protobuf-f2c16f1d0d21e5a51a4d81fb786aeb032d83a1ab.zip |
version 2.4.1.473
Diffstat (limited to 'build')
-rw-r--r-- | build/Common.targets | 62 | ||||
-rw-r--r-- | build/PublishRelease.bat | 26 |
2 files changed, 71 insertions, 17 deletions
diff --git a/build/Common.targets b/build/Common.targets index 057ab456..56f26e08 100644 --- a/build/Common.targets +++ b/build/Common.targets @@ -10,6 +10,7 @@ Targets For FullBuild <MSBuild Projects="$(MSBuildProjectFullPath)" Properties="SolutionTarget=Rebuild;TargetVersion=2" Targets="_BuildAllConfigurations" /> <MSBuild Projects="$(MSBuildProjectFullPath)" Properties="SolutionTarget=Rebuild;TargetVersion=3" Targets="_BuildAllConfigurations" /> <MSBuild Projects="$(MSBuildProjectFullPath)" Properties="SolutionTarget=Rebuild;TargetVersion=4" Targets="_BuildAllConfigurations" /> + <MSBuild Projects="$(MSBuildProjectFullPath)" Properties="" Targets="_CompletePackages" /> </Target> <Target Name="_BuildAllConfigurations"> @@ -126,6 +127,67 @@ Targets For Package <Exec Command=""$(ZipExePath)" a -tzip ..\$(PackageName).zip * -r" WorkingDirectory="$(BuildOutputPackage)" /> </Target> + <Target Name="_CompletePackages"> + <ItemGroup> + <ReleasePackageItem Include="$(BuildOutputDirectory)\ProtoGen\*"> + <TargetDirectory>\Protoc</TargetDirectory> + </ReleasePackageItem> + <!-- RELEASE --> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v2.0\Release\*"> + <TargetDirectory>\Release\v2.0</TargetDirectory> + </ReleasePackageItem> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v2.0\Release_Silverlight\*"> + <TargetDirectory>\Release_Silverlight\v2.0</TargetDirectory> + </ReleasePackageItem> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v3.5\Release\*"> + <TargetDirectory>\Release\v3.5</TargetDirectory> + </ReleasePackageItem> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v3.5\Release_Silverlight\*"> + <TargetDirectory>\Release_Silverlight\v3.0</TargetDirectory> + </ReleasePackageItem> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v4.0\Release\*"> + <TargetDirectory>\Release\v4.0</TargetDirectory> + </ReleasePackageItem> + <ReleasePackageItem Include="$(BuildOutputDirectory)\v4.0\Release_Silverlight\*"> + <TargetDirectory>\Release_Silverlight\v4.0</TargetDirectory> + </ReleasePackageItem> + <!-- DEBUG --> + <DebugPackageItem Include="$(BuildOutputDirectory)\v2.0\Debug\*"> + <TargetDirectory>\Debug\v2.0</TargetDirectory> + </DebugPackageItem> + <DebugPackageItem Include="$(BuildOutputDirectory)\v2.0\Debug_Silverlight\*"> + <TargetDirectory>\Debug_Silverlight\v2.0</TargetDirectory> + </DebugPackageItem> + <DebugPackageItem Include="$(BuildOutputDirectory)\v3.5\Debug\*"> + <TargetDirectory>\Debug\v3.5</TargetDirectory> + </DebugPackageItem> + <DebugPackageItem Include="$(BuildOutputDirectory)\v3.5\Debug_Silverlight\*"> + <TargetDirectory>\Debug_Silverlight\v3.0</TargetDirectory> + </DebugPackageItem> + <DebugPackageItem Include="$(BuildOutputDirectory)\v4.0\Debug\*"> + <TargetDirectory>\Debug\v4.0</TargetDirectory> + </DebugPackageItem> + <DebugPackageItem Include="$(BuildOutputDirectory)\v4.0\Debug_Silverlight\*"> + <TargetDirectory>\Debug_Silverlight\v4.0</TargetDirectory> + </DebugPackageItem> + </ItemGroup> + + <RemoveDir Directories="$(BuildOutputDirectory)\Release;$(BuildOutputDirectory)\Full" ContinueOnError="true" /> + <MakeDir Directories="$(BuildOutputDirectory)\Release;$(BuildOutputDirectory)\Full" ContinueOnError="true" /> + + <!-- Copy files for Release --> + <Copy SourceFiles="@(StaticPackageItem)" DestinationFolder="$(BuildOutputDirectory)\Release\%(StaticPackageItem.TargetDirectory)\%(StaticPackageItem.RecursiveDir)" /> + <Copy SourceFiles="@(ReleasePackageItem)" DestinationFolder="$(BuildOutputDirectory)\Release\%(ReleasePackageItem.TargetDirectory)\%(ReleasePackageItem.RecursiveDir)" /> + <Exec Command=""$(ZipExePath)" a -tzip $(BuildOutputDirectory)\release-binaries.zip * -r" WorkingDirectory="$(BuildOutputDirectory)\Release" /> + + <!-- Copy files for Debug --> + <Copy SourceFiles="@(StaticPackageItem)" DestinationFolder="$(BuildOutputDirectory)\Full\%(StaticPackageItem.TargetDirectory)\%(StaticPackageItem.RecursiveDir)" /> + <Copy SourceFiles="@(ReleasePackageItem)" DestinationFolder="$(BuildOutputDirectory)\Full\%(ReleasePackageItem.TargetDirectory)\%(ReleasePackageItem.RecursiveDir)" /> + <Copy SourceFiles="@(DebugPackageItem)" DestinationFolder="$(BuildOutputDirectory)\Full\%(DebugPackageItem.TargetDirectory)\%(DebugPackageItem.RecursiveDir)" /> + <Exec Command=""$(ZipExePath)" a -tzip $(BuildOutputDirectory)\full-binaries.zip * -r" WorkingDirectory="$(BuildOutputDirectory)\Full" /> + + </Target> + <!-- ********************************************************************************************** Targets For Benchmark *********************************************************************************************** --> diff --git a/build/PublishRelease.bat b/build/PublishRelease.bat index f02bdb10..c6cb6f95 100644 --- a/build/PublishRelease.bat +++ b/build/PublishRelease.bat @@ -26,13 +26,8 @@ IF NOT EXIST "..\release-key" hg clone https://bitbucket.org/rknapp/protobuf-csh MD "%2"
CMD.exe /Q /C "BuildAll.bat /verbosity:minimal "/p:AssemblyOriginatorKeyFile=%~dp0..\release-key\Google.ProtocolBuffers.snk"
-COPY /y ..\build_output\Release-v2.0.zip %2\protobuf-csharp-port-%2-net20-release-binaries.zip
-COPY /y ..\build_output\Release-v3.5.zip %2\protobuf-csharp-port-%2-net35-release-binaries.zip
-COPY /y ..\build_output\Release-v4.0.zip %2\protobuf-csharp-port-%2-net40-release-binaries.zip
-
-COPY /y ..\build_output\Full-v2.0.zip %2\protobuf-csharp-port-%2-net20-full-binaries.zip
-COPY /y ..\build_output\Full-v3.5.zip %2\protobuf-csharp-port-%2-net35-full-binaries.zip
-COPY /y ..\build_output\Full-v4.0.zip %2\protobuf-csharp-port-%2-net40-full-binaries.zip
+COPY /y ..\build_output\release-binaries.zip %2\protobuf-csharp-port-%2-release-binaries.zip
+COPY /y ..\build_output\full-binaries.zip %2\protobuf-csharp-port-%2-full-binaries.zip
..\lib\NuGet.exe pack Google.ProtocolBuffers.nuspec -Symbols -Version %2 -NoPackageAnalysis -OutputDirectory %2
..\lib\NuGet.exe pack Google.ProtocolBuffersLite.nuspec -Symbols -Version %2 -NoPackageAnalysis -OutputDirectory %2
@@ -45,14 +40,12 @@ hg archive %2\protobuf-csharp-port-%2-source.zip @ECHO IMPORTANT: Verify the above key output is: 55f7125234beb589
@ECHO ***********************************************************
@ECHO.
-@ECHO NEXT: Verify the output in %~dp0\%2 and then run "%0 push %2 {google-code-user} {google-code-password}"
+@ECHO NEXT: Verify the output in %~dp0\%2 and then run "%0 push %2"
@ECHO.
@GOTO EXIT
:PUSH
@IF "%2" == "" @GOTO HELP
-@IF "%3" == "" @GOTO HELP
-@IF "%4" == "" @GOTO HELP
hg commit -m "version %2"
hg tag %2
@@ -63,15 +56,14 @@ hg push @GOTO EXIT
:FILEPUSH
+@IF "%2" == "" @GOTO HELP
+@IF "%3" == "" @GOTO HELP
+@IF "%4" == "" @GOTO HELP
SET GOOGLEUPLOAD=python.exe googlecode_upload.py --project protobuf-csharp-port --user "%3" --password "%4"
%GOOGLEUPLOAD% --labels Type-Source,Featured --summary "Version %2 source" %2\protobuf-csharp-port-%2-source.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 2.0 (all configurations)" %2\protobuf-csharp-port-%2-net20-full-binaries.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 3.5 (all configurations)" %2\protobuf-csharp-port-%2-net35-full-binaries.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 4.0 (all configurations)" %2\protobuf-csharp-port-%2-net40-full-binaries.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 2.0 (release only)" %2\protobuf-csharp-port-%2-net20-release-binaries.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 3.5 (release only)" %2\protobuf-csharp-port-%2-net35-release-binaries.zip
-%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries for .NET 4.0 (release only)" %2\protobuf-csharp-port-%2-net40-release-binaries.zip
+%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries (all configurations)" %2\protobuf-csharp-port-%2-full-binaries.zip
+%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries (release only)" %2\protobuf-csharp-port-%2-release-binaries.zip
@SET GOOGLEUPLOAD=
@ECHO.
@@ -96,7 +88,7 @@ SET GOOGLEUPLOAD=python.exe googlecode_upload.py --project protobuf-csharp-port @ECHO Available commands, run in the following order:
@ECHO 1. %0 version
@ECHO 2. %0 build {version from step 1}
-@ECHO 3. %0 push {version from step 1} {google-code-user} {google-code-password}
+@ECHO 3. %0 push {version from step 1}
@ECHO 4. %0 fpush {version from step 1} {google-code-user} {google-code-password}
@ECHO 5. %0 nupush {version from step 1}
@ECHO.
|