Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9e882bcaa8
Fetching contributors…

Cannot retrieve contributors at this time

131 lines (106 sloc) 5.768 kB
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)' == ''">.</SolutionDir>
<LibDir Condition="'$(LibDir)' == ''">..\lib</LibDir>
<BuildDir>..\build</BuildDir>
<PackageDir>..\publish</PackageDir>
<NugetPackageDir>packages</NugetPackageDir>
<Platform Condition="'$(Platform)' == ''">x86</Platform>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<MSpecOptions Condition="'$(MSpecOptions)' == ''"></MSpecOptions>
<KeyFile>Shared\clrzmq.snk</KeyFile>
<KeyFileProperty Condition="'$(SignAssembly)' == 'true'">KeyOriginatorFile=$(KeyFile)</KeyFileProperty>
<OperatingPlatform Condition="'$(OperatingPlatform)' == ''">Windows</OperatingPlatform>
<NetFramework Condition="'$(NetFramework)' == ''">NET</NetFramework>
<SolutionSuffix Condition="'$(OperatingPlatform)' == 'Unix'">.Mono</SolutionSuffix>
</PropertyGroup>
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" />
<Import Project="$(SolutionDir)\CustomTasks.targets" />
<PropertyGroup>
<DebugType Condition="'$(Configuration)' == 'Debug'">full</DebugType>
<DebugType Condition="'$(Configuration)' != 'Debug'">pdbonly</DebugType>
<Optimize Condition="'$(Configuration)' == 'Debug'">false</Optimize>
<Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
<Constants Condition="'$(OperatingPlatform)' == 'Windows'"></Constants>
<Constants Condition="'$(OperatingPlatform)' == 'Unix'">UNIX;MONO</Constants>
</PropertyGroup>
<ItemGroup>
<CleanFiles Include="$(BuildDir)" />
<CleanFiles Include="$(SolutionDir)\**\bin\$(Configuration)\**" />
<CleanFiles Include="$(SolutionDir)\**\bin\**\*.*" />
<CleanFiles Include="$(SolutionDir)\**\obj\$(Configuration)\**" />
<CleanFiles Include="$(SolutionDir)\**\obj\**\*.*" />
</ItemGroup>
<ItemGroup>
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.dll" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.pdb" />
<OutputFiles Include="$(SolutionDir)\**\bin\$(Configuration)\*.xml" />
<OutputFiles Include="$(LibDir)\$(Platform)\*.dll" />
</ItemGroup>
<ItemGroup>
<ZeroMQSources Include="ZeroMQ\**\*.cs;Shared\*.cs" Exclude="ZeroMQ\**\Platform.*.cs" />
<ZeroMQSources Include="ZeroMQ\**\Platform.$(OperatingPlatform).cs" />
<ZeroMQSources Include="ZeroMQ\**\Platform.$(NetFramework).cs" />
<Resources Include="$(LibDir)\x64\libzmq.dll">
<Platform>x64</Platform>
</Resources>
<Resources Include="$(LibDir)\x86\libzmq.dll">
<Platform>x86</Platform>
</Resources>
<EmbeddedResources Include="@(Resources)">
<LogicalName>%(filename)%(extension).%(Platform)</LogicalName>
</EmbeddedResources>
</ItemGroup>
<Target Name="Clean">
<Delete Files="@(CleanFiles)" ContinueOnError="true" />
</Target>
<Target Name="Initialize" DependsOnTargets="Clean">
<MakeDir Directories="$(BuildDir)" />
</Target>
<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">
<FindLastDirectory Path="$(NugetPackageDir)" Pattern="Machine.Specifications.*">
<Output TaskParameter="Dir" PropertyName="MSpecDir" />
</FindLastDirectory>
<ItemGroup Condition="'$(OperatingPlatform)' == 'Windows'">
<TestAssembly Condition="'$(Platform)' != 'Any CPU'" Include="$(SolutionDir)\**\bin\$(Platform)\$(Configuration)\*Tests.dll" />
<TestAssembly Condition="'$(Platform)' == 'Any CPU'" Include="$(SolutionDir)\**\bin\$(Configuration)\*Tests.dll" />
</ItemGroup>
<PropertyGroup Condition="'$(OperatingPlatform)' == 'Windows'">
<MSpecExe Condition="'$(MSpecExe)' == '' and '$(Platform)' == 'x64'">$(MSpecDir)\tools\mspec-clr4.exe</MSpecExe>
<MSpecExe Condition="'$(MSpecExe)' == '' and '$(Platform)' == 'x86'">$(MSpecDir)\tools\mspec-x86-clr4.exe</MSpecExe>
</PropertyGroup>
<Exec Condition="'$(OperatingPlatform)' == 'Windows'" Command="$(MSpecExe) $(MSpecOptions) %(TestAssembly.Identity)" />
<!--<Exec Condition="'$(OperatingPlatform)' == 'Unix'" Command="$(MSpecExe) $(MSpecOptions) %(TestAssembly.Identity)" />-->
</Target>
<Target Name="Build" DependsOnTargets="Test">
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="$(BuildDir)" ContinueOnError="true" />
</Target>
<Target Name="Package">
<RemoveDir Directories="$(BuildDir)" />
<MakeDir Directories="$(BuildDir)" />
<Csc Sources="@(ZeroMQSources)"
DocumentationFile="$(BuildDir)\clrzmq.xml"
OutputAssembly="$(BuildDir)\clrzmq.dll"
Resources="@(EmbeddedResources)"
TargetType="library"
DebugType="$(DebugType)"
PdbFile="$(BuildDir)\clrzmq.pdb"
Optimize="$(Optimize)"
KeyFile="$(KeyFile)"
DefineConstants="$(Constants)"
/>
<ItemGroup>
<BuildOutput Include="$(BuildDir)\*.*;$(SolutionDir)\*.txt" />
</ItemGroup>
<RemoveDir Directories="$(PackageDir)" />
<MakeDir Directories="$(PackageDir)" />
<Copy SourceFiles="@(BuildOutput)" DestinationFolder="$(PackageDir)" ContinueOnError="false" />
</Target>
</Project>
Jump to Line
Something went wrong with that request. Please try again.