Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 187e044df2
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (61 sloc) 3.49 kB
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)' == ''">src</SolutionDir>
<LibDir Condition="'$(LibDir)' == ''">lib</LibDir>
<BuildDir>build</BuildDir>
<PackageDir>publish</PackageDir>
<Platform Condition="'$(Platform)' == ''">x86</Platform>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<OSConfiguration Condition="'$(OSConfiguration)' == ''">WIN_RELEASE</OSConfiguration>
<MSpecOptions Condition="'$(MSpecOptions)' == ''"></MSpecOptions>
<KeyFileProperty Condition="'$(SignAssembly)' == 'true'">KeyOriginatorFile=src\clrzmq.snk</KeyFileProperty>
</PropertyGroup>
<Target Name="Clean">
<ItemGroup>
<CleanFiles Include="$(BuildDir)" />
<CleanFiles Include="$(SolutionDir)\**\bin\$(Configuration)\**" />
<CleanFiles Include="$(SolutionDir)\**\bin\$(Platform)\$(OSConfiguration)\**" />
<CleanFiles Include="$(SolutionDir)\**\bin\*.*" />
<CleanFiles Include="$(SolutionDir)\**\obj\$(Configuration)\**" />
<CleanFiles Include="$(SolutionDir)\**\obj\$(Platform)\$(OSConfiguration)\**" />
<CleanFiles Include="$(SolutionDir)\**\obj\*.*" />
</ItemGroup>
<Delete Files="@(CleanFiles)" />
</Target>
<Target Name="Initialize" DependsOnTargets="Clean">
<MakeDir Directories="$(BuildDir)" />
</Target>
<Target Name="Compile" DependsOnTargets="Initialize">
<MSBuild Projects="clrzmq.sln" Targets="Build" ToolsVersion="3.5" Properties="Configuration=$(OSConfiguration);Platform=$(Platform);$(KeyFileProperty)" />
</Target>
<Target Name="Test" DependsOnTargets="Compile">
<PropertyGroup>
<MSpecExe Condition="'$(MSpecExe)' == '' and '$(Platform)' == 'x64'">$([System.IO.Directory]::GetDirectories("packages", "Machine.Specifications.*")[0])\tools\mspec.exe</MSpecExe>
<MSpecExe Condition="'$(MSpecExe)' == '' and '$(Platform)' == 'x86'">$([System.IO.Directory]::GetDirectories("packages", "Machine.Specifications.*")[0])\tools\mspec-x86.exe</MSpecExe>
</PropertyGroup>
<ItemGroup>
<TestAssmbly Include="tests\**\bin\$(Platform)\$(OSConfiguration)\*Tests.dll" />
</ItemGroup>
<Exec Command="$(MSpecExe) $(MSpecOptions) %(TestAssmbly.Identity)" />
</Target>
<Target Name="Build" DependsOnTargets="Test">
<ItemGroup>
<OutputFiles Include="$(SolutionDir)\**\bin\$(Platform)\$(OSConfiguration)\*.dll" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Platform)\$(OSConfiguration)\*.pdb" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Platform)\$(OSConfiguration)\*.xml" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.dll" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.pdb" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.xml" />
<OutputFiles Include="$(LibDir)\$(Platform)\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="$(BuildDir)" ContinueOnError="true" />
</Target>
<Target Name="Package" DependsOnTargets="Build">
<ItemGroup>
<BuildOutput Include="$(BuildDir)\*.*" />
</ItemGroup>
<RemoveDir Directories="$(PackageDir)\$(Platform)" />
<MakeDir Directories="$(PackageDir)\$(Platform)" />
<Copy SourceFiles="@(BuildOutput)" DestinationFolder="$(PackageDir)\$(Platform)" ContinueOnError="false" />
</Target>
</Project>
Jump to Line
Something went wrong with that request. Please try again.