Skip to content

Commit

Permalink
Add build script for using a custom libzmq.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Jul 16, 2012
1 parent 6dfef9f commit 5a4c19a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions build-with-custom-libzmq.cmd
@@ -0,0 +1,4 @@
pushd src
%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:UseCustomLibzmq=true
popd
if errorlevel 1 pause
2 changes: 1 addition & 1 deletion src/ZeroMQ/ZeroMQ.csproj
Expand Up @@ -107,6 +107,6 @@
<LibzmqFiles Include="$(LibzmqDir)\Content\lib\**\*" />
<LibFiles Include="@(LibzmqFiles->'$(SolutionDir)..\lib\%(RecursiveDir)%(FileName)%(Extension)')" />
</ItemGroup>
<Copy SourceFiles="@(LibzmqFiles)" DestinationFiles="@(LibFiles)" SkipUnchangedFiles="true" />
<Copy Condition="'$(UseCustomLibzmq)' != 'true'" SourceFiles="@(LibzmqFiles)" DestinationFiles="@(LibFiles)" SkipUnchangedFiles="true" />
</Target>
</Project>
9 changes: 7 additions & 2 deletions src/build.proj
Expand Up @@ -70,8 +70,13 @@
<MakeDir Directories="$(BuildDir)" />
</Target>

<Target Name="Compile" DependsOnTargets="Initialize;RestoreSolutionPackages">
<MSBuild Projects="clrzmq$(SolutionSuffix).sln" Targets="Build" Properties="Configuration=$(Configuration);Platform=$(Platform);$(KeyFileProperty);RestorePackages=true" />
<PropertyGroup>
<CompileDependsOn Condition=" '$(UseCustomLibzmq)' == 'true' ">Initialize</CompileDependsOn>
<CompileDependsOn Condition=" '$(UseCustomLibzmq)' != 'true' ">Initialize;RestoreSolutionPackages</CompileDependsOn>
</PropertyGroup>

<Target Name="Compile" DependsOnTargets="$(CompileDependsOn)">
<MSBuild Projects="clrzmq$(SolutionSuffix).sln" Targets="Build" Properties="Configuration=$(Configuration);Platform=$(Platform);$(KeyFileProperty);RestorePackages=true;UseCustomLibzmq=$(UseCustomLibzmq)" />
</Target>

<Target Name="Test" DependsOnTargets="Compile">
Expand Down

0 comments on commit 5a4c19a

Please sign in to comment.