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
d10c5e79
Commit
d10c5e79
authored
Jul 07, 2010
by
ArnoldZokas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build performance optimisations
parent
fca5d2b6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
28 deletions
+33
-28
ProtocolBuffers.build
ProtocolBuffers.build
+4
-4
Build.log
cfg/Build.log
+0
-0
Common.targets
cfg/Common.targets
+11
-6
build with diagnostics.bat
cfg/build with diagnostics.bat
+6
-0
build.bat
cfg/build.bat
+2
-1
build.csproj
cfg/build.csproj
+8
-16
buildAll.bat
cfg/buildAll.bat
+2
-1
No files found.
ProtocolBuffers.build
View file @
d10c5e79
...
...
@@ -271,10 +271,10 @@
<property
name=
"Platform"
value=
"Any CPU"
/>
</msbuild>
<!-- Note the deliberate lack of space in the platform name -->
<msbuild
project=
"${src}/ProtocolBuffers/ProtocolBuffersCF.csproj"
>
<
!--<
msbuild project="${src}/ProtocolBuffers/ProtocolBuffersCF.csproj">
<property name="Configuration" value="Release" />
<property name="Platform" value="AnyCPU" />
</msbuild>
</msbuild>
-->
</target>
...
...
@@ -327,12 +327,12 @@
<include
name=
"ProtocolBuffers/bin/Silverlight2/Google.ProtocolBuffers.dll"
/>
</fileset>
</copy>
<copy
todir=
"${output-dir}/CompactFramework35"
<
!--<
copy todir="${output-dir}/CompactFramework35"
flatten="true">
<fileset basedir="${src}">
<include name="ProtocolBuffers/bin/ReleaseCF/Google.ProtocolBuffers.dll" />
</fileset>
</copy>
</copy>
-->
<copy
todir=
"${output-dir}"
>
<fileset
basedir=
"${project::get-base-directory()}"
>
<include
name=
"protos/**"
/>
...
...
cfg/Build.log
0 → 100644
View file @
d10c5e79
This diff is collapsed.
Click to expand it.
cfg/
Targets/
Common.targets
→
cfg/Common.targets
View file @
d10c5e79
...
...
@@ -8,7 +8,7 @@
<Target
Name=
"_Compile"
>
<MSBuild
Projects=
"%(Solution.Identity)"
Properties=
"Configuration=%(Solution.Configuration);Platform=%(Solution.Platform)"
Targets=
"%(Solution.BuildTarget)"
BuildInParallel=
"true"
Condition=
"%(Solution.CompileGroup) == $(CompileGroup)"
/>
Targets=
"%(Solution.BuildTarget)"
BuildInParallel=
"true"
Condition=
"%(Solution.CompileGroup) == $(CompileGroup)"
ToolsVersion=
"4.0"
/>
</Target>
<Target
Name=
"_EnsureEnvironment"
>
...
...
@@ -16,7 +16,7 @@
<Error
Text=
"Tool "Protogen" could not be found at path $(ProtogenExePath)"
Condition=
"!Exists($(ProtogenExePath))"
/>
</Target>
<Target
Name=
"_GenerateSource"
>
<Target
Name=
"_GenerateSource"
DependsOnTargets=
"_Clean;_Compile;_Compile"
>
<PropertyGroup>
<ProtosList>
@(Protos)
</ProtosList>
<Args>
$(ProtosList.Replace(`;`,` `))
</Args>
...
...
@@ -26,20 +26,25 @@
<Exec
Command=
"$(ProtogenExePath) compiled.pb"
WorkingDirectory=
"$(BuildTempDirectory)"
/>
</Target>
<Target
Name=
"_CopyGeneratedSource"
>
<Target
Name=
"_CopyGeneratedSource"
DependsOnTargets=
"_GenerateSource"
>
<Copy
SourceFiles=
"%(GeneratedSource.Identity)"
DestinationFiles=
"%(GeneratedSource.TargetDirectory)\%(GeneratedSource.Filename)%(GeneratedSource.Extension)"
/>
</Target>
<Target
Name=
"_Test"
>
<Target
Name=
"_CompileGeneratedSource"
DependsOnTargets=
"_CopyGeneratedSource"
>
<MSBuild
Projects=
"%(Solution.Identity)"
Properties=
"Configuration=%(Solution.Configuration);Platform=%(Solution.Platform)"
Targets=
"%(Solution.BuildTarget)"
BuildInParallel=
"true"
Condition=
"%(Solution.CompileGroup) == $(CompileGroup)"
/>
</Target>
<Target
Name=
"_Test"
DependsOnTargets=
"_CompileGeneratedSource"
>
<Exec
Command=
""$(NUnitExePath)" %(NUnitTests.Identity) /xml=%(NUnitTests.Filename)%(NUnitTests.Extension).xml"
WorkingDirectory=
"$(BuildTempDirectory)"
/>
</Target>
<Target
Name=
"_Package"
>
<Target
Name=
"_Package"
DependsOnTargets=
"_CopyGeneratedSource"
>
<Copy
SourceFiles=
"@(PackageContents)"
DestinationFolder=
"$(PackageOutputDirectory)\%(PackageContents.TargetDirectory)\%(PackageContents.RecursiveDir)"
/>
</Target>
<!--
BENCHMARK - this needs optimising
but it is 1 AM and I need to be up in 5 hours
BENCHMARK - this needs optimising
-->
<Target
Name=
"_GenerateBenchmarkSource"
>
<PropertyGroup>
...
...
cfg/build with diagnostics.bat
0 → 100644
View file @
d10c5e79
@echo off
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /l:FileLogger,Microsoft.Build.Engine;logfile=Build.log;append=true;verbosity=diagnostic;encoding=utf-8
pause
\ No newline at end of file
cfg/build.bat
View file @
d10c5e79
@echo off
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj
/m
pause
\ No newline at end of file
cfg/build.csproj
View file @
d10c5e79
...
...
@@ -26,7 +26,7 @@
<NUnitExePath>
$(LibDirectory)\NUnit 2.2.8.0\nunit-console.exe
</NUnitExePath>
</PropertyGroup>
<Import
Project=
"
Targets\
Common.targets"
/>
<Import
Project=
"Common.targets"
/>
<ItemGroup>
<WorkingDirectories
Include=
"$(BuildTempDirectory)"
/>
...
...
@@ -36,31 +36,31 @@
<Solution
Include=
"$(SolutionFile)"
>
<Configuration>
$(BuildConfiguration)
</Configuration>
<Platform>
Any CPU
</Platform>
<BuildTarget>
Reb
uild
</BuildTarget>
<BuildTarget>
B
uild
</BuildTarget>
<CompileGroup>
Build
</CompileGroup>
</Solution>
<Solution
Include=
"$(SolutionFile)"
>
<Configuration>
Debug
</Configuration>
<Platform>
Any CPU
</Platform>
<BuildTarget>
Reb
uild
</BuildTarget>
<BuildTarget>
B
uild
</BuildTarget>
<CompileGroup>
BuildAll
</CompileGroup>
</Solution>
<Solution
Include=
"$(SolutionFile)"
>
<Configuration>
Release
</Configuration>
<Platform>
Any CPU
</Platform>
<BuildTarget>
Reb
uild
</BuildTarget>
<BuildTarget>
B
uild
</BuildTarget>
<CompileGroup>
BuildAll
</CompileGroup>
</Solution>
<Solution
Include=
"$(SolutionFile)"
>
<Configuration>
Silverlight2
</Configuration>
<Platform>
Any CPU
</Platform>
<BuildTarget>
Reb
uild
</BuildTarget>
<BuildTarget>
B
uild
</BuildTarget>
<CompileGroup>
BuildAll
</CompileGroup>
</Solution>
<!--<Solution Include="$(ProjectDirectory)\src\ProtocolBuffers/ProtocolBuffersCF.csproj">
<Configuration>$(BuildConfiguration)</Configuration>
<Platform>AnyCPU</Platform>
<BuildTarget>
Reb
uild</BuildTarget>
<BuildTarget>
B
uild</BuildTarget>
<CompileGroup>BuildAll</CompileGroup>
</Solution>-->
...
...
@@ -153,16 +153,8 @@
</ItemGroup>
<!--target groups-->
<Target
Name=
"Build"
DependsOnTargets=
"_Clean;_Compile;_EnsureEnvironment;_GenerateSource;_CopyGeneratedSource"
>
<MSBuild
Projects=
"$(MSBuildProjectFullPath)"
Targets=
"_Clean;_Compile"
Properties=
"ForceTargets=true"
/>
<CallTarget
Targets=
"_Test"
/>
</Target>
<Target
Name=
"BuildAll"
DependsOnTargets=
"_Clean;_Compile;_EnsureEnvironment;_GenerateSource;_CopyGeneratedSource"
>
<MSBuild
Projects=
"$(MSBuildProjectFullPath)"
Targets=
"_Clean;_Compile"
Properties=
"ForceTargets=true"
/>
<CallTarget
Targets=
"_Test;_Package"
/>
</Target>
<Target
Name=
"Build"
DependsOnTargets=
"_Clean;_Compile;_EnsureEnvironment;_GenerateSource;_CopyGeneratedSource;_CompileGeneratedSource;_Test"
/>
<Target
Name=
"BuildAll"
DependsOnTargets=
"_Clean;_Compile;_EnsureEnvironment;_GenerateSource;_CopyGeneratedSource;_CompileGeneratedSource;_Test;_Package"
/>
<Target
Name=
"Benchmark"
DependsOnTargets=
"_Clean;_GenerateBenchmarkSource;_CompileBenchmarkAssembly;_PrepareBenchmarkEnvironment;_RunBenchmark"
/>
</Project>
cfg/buildAll.bat
View file @
d10c5e79
@echo off
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /t:BuildAll /p:CompileGroup=BuildAll
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /t:BuildAll /p:CompileGroup=BuildAll
/m
pause
\ No newline at end of file
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