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
30d3fa32
Commit
30d3fa32
authored
Dec 15, 2010
by
csharptest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted build to also work under .net 3.5
parent
72710772
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
Common.targets
build/Common.targets
+10
-13
build.csproj
build/build.csproj
+5
-4
build35.bat
build/build35.bat
+6
-0
No files found.
build/Common.targets
View file @
30d3fa32
...
...
@@ -7,17 +7,18 @@
<MakeDir
Directories=
"@(WorkingDirectories)"
/>
</Target>
<Target
Name=
"_Compile"
DependsOnTargets=
"_Clean"
>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration)"
BuildInParallel=
"true"
/>
</Target>
<Target
Name=
"_Compile"
DependsOnTargets=
"_Clean"
>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration)"
BuildInParallel=
"true"
Condition=
" '$(BuildTools)' == '' "
/>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration);TargetFrameworkVersion=v2.0"
Condition=
" '$(BuildTools)' == 'v3.5' "
/>
</Target>
<Target
Name=
"_CompileGeneratedSource"
DependsOnTargets=
"_CopyGeneratedSource"
>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration)"
BuildInParallel=
"true"
Condition=
" '$(BuildTools)' == '' "
/>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration);TargetFrameworkVersion=v2.0"
Condition=
" '$(BuildTools)' == 'v3.5' "
/>
</Target>
<Target
Name=
"_GenerateSource"
>
<PropertyGroup>
<ProtosList>
@(Protos)
</ProtosList>
<Args>
$(ProtosList.Replace(`;`,` `))
</Args>
</PropertyGroup>
<Exec
Command=
"$(ProtocExePath) --proto_path=$(ProtosDirectory) --descriptor_set_out=compiled.pb $(Args)"
WorkingDirectory=
"$(BuildTempDirectory)"
/>
<Exec
Command=
"$(ProtocExePath) --proto_path=$(ProtosDirectory) --descriptor_set_out=compiled.pb @(Protos->'%(RelativeDir)%(Filename)%(Extension)', ' ')"
WorkingDirectory=
"$(BuildTempDirectory)"
/>
<Exec
Command=
"$(ProtogenExePath) compiled.pb"
WorkingDirectory=
"$(BuildTempDirectory)"
/>
</Target>
...
...
@@ -25,10 +26,6 @@
<Copy
SourceFiles=
"%(GeneratedSource.Identity)"
DestinationFiles=
"%(GeneratedSource.TargetDirectory)\%(GeneratedSource.Filename)%(GeneratedSource.Extension)"
/>
</Target>
<Target
Name=
"_CompileGeneratedSource"
DependsOnTargets=
"_CopyGeneratedSource"
>
<MSBuild
Projects=
"$(SolutionFile)"
Properties=
"Configuration=$(BuildConfiguration)"
BuildInParallel=
"true"
/>
</Target>
<Target
Name=
"_Test"
DependsOnTargets=
"_CompileGeneratedSource"
Condition=
"$(BuildConfiguration)=='Debug' or $(BuildConfiguration)=='Release'"
>
<Exec
Command=
""$(NUnitExePath)" %(TestContainer.Identity) /xml:$(BuildTempDirectory)\..\%(TestContainer.Filename).$(BuildConfiguration).xml"
/>
</Target>
...
...
build/build.csproj
View file @
30d3fa32
...
...
@@ -6,7 +6,7 @@
<BuildConfiguration></BuildConfiguration>
<!--Directory Paths-->
<ProjectDirectory>
$(MSBuildProjectDirectory)\..
</ProjectDirectory>
<ProjectDirectory>
$(MSBuildProjectDirectory)\..
</ProjectDirectory>
<SourceDirectory>
$(ProjectDirectory)\src
</SourceDirectory>
<LibDirectory>
$(ProjectDirectory)\lib
</LibDirectory>
<ProtosDirectory>
$(ProjectDirectory)\protos
</ProtosDirectory>
...
...
@@ -15,9 +15,10 @@
<BuildOutputDirectory>
$(ProjectDirectory)\build_output\$(BuildConfiguration)
</BuildOutputDirectory>
<!--File Paths-->
<SolutionFile>
$(SourceDirectory)\ProtocolBuffers.sln
</SolutionFile>
<!--Tool Paths-->
<SolutionFile
Condition=
" '$(BuildTools)' == '' "
>
$(SourceDirectory)\ProtocolBuffers.sln
</SolutionFile>
<SolutionFile
Condition=
" '$(BuildTools)' == 'v3.5' "
>
$(SourceDirectory)\ProtocolBuffers2008.sln
</SolutionFile>
<!--Tool Paths-->
<ProtocExePath>
$(LibDirectory)\protoc.exe
</ProtocExePath>
<ProtogenExePath>
$(SourceDirectory)\ProtoGen\bin\$(BuildConfiguration)\protogen.exe
</ProtogenExePath>
<ProtoBenchExePath>
$(BuildTempDirectory)\ProtoBench.exe
</ProtoBenchExePath>
...
...
build/build35.bat
0 → 100644
View file @
30d3fa32
@echo off
SET START_DIR=%CD%
CD %~dp0
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj /t:Build /p:BuildConfiguration=Debug /p:Platform="Any CPU" /p:TargetFramework="v2.0" /p:BuildTools="v3.5" /toolsversion:3.5
CD %START_DIR%
SET START_DIR=
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