Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
1999a990
Commit
1999a990
authored
Nov 30, 2010
by
ArnoldZokas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented distribution package generation
parent
d58af394
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
17 deletions
+57
-17
Common.targets
build/Common.targets
+19
-0
GenerateCompletePackage.bat
build/GenerateCompletePackage.bat
+6
-5
GenerateReleasePackage.bat
build/GenerateReleasePackage.bat
+4
-3
build.csproj
build/build.csproj
+28
-9
No files found.
build/Common.targets
View file @
1999a990
...
...
@@ -33,4 +33,22 @@
<Exec
Command=
""E:\dotnet-protobufs\lib\NUnit 2.2.8.0\nunit-console.exe" %(TestContainer.Identity) /xml:$(BuildOutputDirectory)\%(TestContainer.Filename).$(BuildConfiguration).xml"
/>
</Target>
<Target
Name=
"_PreparePackageComponent"
>
<Copy
SourceFiles=
"@(DynamicPackageItem)"
DestinationFolder=
"$(BuildOutputDirectory)\%(DynamicPackageItem.TargetDirectory)\%(DynamicPackageItem.RecursiveDir)"
/>
</Target>
<Target
Name=
"_GeneratePackage"
>
<ItemGroup><ExistingArchives
Include=
"$(BuildOutputDirectory)\*.zip"
/></ItemGroup>
<Delete
Files=
"@(ExistingArchives)"
/>
<Copy
SourceFiles=
"@(StaticPackageItem)"
DestinationFolder=
"$(BuildOutputDirectory)\%(StaticPackageItem.TargetDirectory)\%(StaticPackageItem.RecursiveDir)"
/>
<Exec
Command=
""E:\dotnet-protobufs\lib\7-Zip 9.20\7za.exe" a -tzip $(PackageName) * -r"
WorkingDirectory=
"$(BuildOutputDirectory)"
/>
<ItemGroup><DirectoriesToDelete
Include=
"$([System.IO.Directory]::GetDirectories('$(BuildOutputDirectory)'))"
/></ItemGroup>
<ItemGroup><FilesToDelete
Include=
"$(BuildOutputDirectory)\**\*.*"
Exclude=
"$(BuildOutputDirectory)\$(PackageName)"
/></ItemGroup>
<Delete
Files=
"@(FilesToDelete)"
/>
<RemoveDir
Directories=
"@(DirectoriesToDelete)"
ContinueOnError=
"true"
/>
</Target>
</Project>
\ No newline at end of file
build/GenerateCompletePackage.bat
View file @
1999a990
@ECHO OFF
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Debug
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Debug_Silverlight2
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Release
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Release
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Release_Silverlight2
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Release_Silverlight2
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:Package
Scope=AllBinariesAndSource
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:Package
Name=AllBinariesAndSource.zip
:END
PAUSE
\ No newline at end of file
build/GenerateReleasePackage.bat
View file @
1999a990
@ECHO OFF
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Release
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Release
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Release_Silverlight2
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build
;PreparePackageComponent
/p:BuildConfiguration=Release_Silverlight2
IF ERRORLEVEL 1 GOTO END
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:Package
Scope=ReleaseBinaries
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:Package
Name=ReleaseBinaries.zip
:END
PAUSE
\ No newline at end of file
build/build.csproj
View file @
1999a990
...
...
@@ -7,17 +7,19 @@
<!--Directory Paths-->
<ProjectDirectory>
$(MSBuildProjectDirectory)\..
</ProjectDirectory>
<SourceDirectory>
$(ProjectDirectory)\src
</SourceDirectory>
<LibDirectory>
$(ProjectDirectory)\lib
</LibDirectory>
<ProtosDirectory>
$(ProjectDirectory)\protos
</ProtosDirectory>
<BuildTempDirectory>
$(ProjectDirectory)\build_temp\$(BuildConfiguration)
</BuildTempDirectory>
<BuildOutputDirectory>
$(ProjectDirectory)\build_output
</BuildOutputDirectory>
<BuildOutputDirectory>
$(ProjectDirectory)\build_output
\$(BuildConfiguration)
</BuildOutputDirectory>
<!--File Paths-->
<SolutionFile>
$(
ProjectDirectory)\src
\ProtocolBuffers.sln
</SolutionFile>
<SolutionFile>
$(
SourceDirectory)
\ProtocolBuffers.sln
</SolutionFile>
<!--Tool Paths-->
<ProtocExePath>
$(
ProjectDirectory)\lib
\protoc.exe
</ProtocExePath>
<ProtogenExePath>
$(
ProjectDirectory)\src
\ProtoGen\bin\$(BuildConfiguration)\protogen.exe
</ProtogenExePath>
<NUnitExePath>
$(
ProjectDirectory)\lib
\NUnit 2.2.8.0\nunit-console.exe
</NUnitExePath>
<ProtocExePath>
$(
LibDirectory)
\protoc.exe
</ProtocExePath>
<ProtogenExePath>
$(
SourceDirectory)
\ProtoGen\bin\$(BuildConfiguration)\protogen.exe
</ProtogenExePath>
<NUnitExePath>
$(
LibDirectory)
\NUnit 2.2.8.0\nunit-console.exe
</NUnitExePath>
</PropertyGroup>
<Import
Project=
"Common.targets"
/>
...
...
@@ -68,13 +70,30 @@
<TargetDirectory>
$(SourceDirectory)\ProtocolBuffers.Test\TestProtos
</TargetDirectory>
</GeneratedSource>
<TestContainer
Include=
"$(ProjectDirectory)\src\ProtocolBuffers.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.Test.dll"
/>
<TestContainer
Include=
"$(ProjectDirectory)\src\ProtoGen.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.ProtoGen.Test.dll"
/>
<TestContainer
Include=
"$(SourceDirectory)\ProtocolBuffers.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.Test.dll"
/>
<TestContainer
Include=
"$(SourceDirectory)\ProtoGen.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.ProtoGen.Test.dll"
/>
<DynamicPackageItem
Include=
"$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffers.*"
/>
<DynamicPackageItem
Include=
"$(SourceDirectory)\ProtoGen\bin\$(BuildConfiguration)\ProtoGen.*"
/>
<DynamicPackageItem
Include=
"$(SourceDirectory)\ProtoMunge\bin\$(BuildConfiguration)\ProtoMunge.*"
/>
<DynamicPackageItem
Include=
"$(SourceDirectory)\ProtoDump\bin\$(BuildConfiguration)\ProtoDump.*"
/>
<DynamicPackageItem
Include=
"$(SourceDirectory)\ProtoBench\bin\$(BuildConfiguration)\ProtoBench.*"
/>
<StaticPackageItem
Include=
"$(ProjectDirectory)\readme.txt"
/>
<StaticPackageItem
Include=
"$(ProjectDirectory)\license.txt"
/>
<StaticPackageItem
Include=
"$(ProjectDirectory)\protos\**\*.*"
>
<TargetDirectory>
\protos
</TargetDirectory>
</StaticPackageItem>
<StaticPackageItem
Include=
"$(LibDirectory)\Protoc*"
>
<TargetDirectory>
\Protoc
</TargetDirectory>
</StaticPackageItem>
</ItemGroup>
<!-- targets -->
<Target
Name=
"Build"
DependsOnTargets=
"_Compile;_Test"
/>
<Target
Name=
"RunBenchmarks"
DependsOnTargets=
"_Compile"
/>
<Target
Name=
"GeneratePackage"
/>
<Target
Name=
"PreparePackageComponent"
DependsOnTargets=
"_PreparePackageComponent"
/>
<Target
Name=
"GeneratePackage"
DependsOnTargets=
"_GeneratePackage"
/>
<Target
Name=
"RunBenchmarks"
/>
</Project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment