Permalink
Browse files

Add initial build script.

  • Loading branch information...
1 parent 789ecf8 commit 82696b09a7104edcd1fea244c372cfec469b355c John Gozde committed Dec 15, 2011
Showing with 60 additions and 8 deletions.
  1. +2 −0 build.cmd
  2. +45 −0 build.proj
  3. +5 −0 clrzmq.sln
  4. +8 −8 tests/AcceptanceTests/AcceptanceTests.csproj
View
@@ -0,0 +1,2 @@
+%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj
+if errorlevel 1 pause
View
@@ -0,0 +1,45 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Test">
+
+ <PropertyGroup>
+ <SolutionDir Condition="'$(SolutionDir)' == ''">src\</SolutionDir>
+ <BuildOutput>..\build</BuildOutput>
+ <Platform Condition="'$(Platform)' == ''">x86</Platform>
+ <Configuration Condition="'$(Configuration)' == ''">WIN_DEBUG</Configuration>
+ <BuildVersion Condition="'$(BuildVersion)' == ''">0.0.0.0</BuildVersion>
+ <MSpecOptions Condition="'$(MSpecOptions)' == ''"></MSpecOptions>
+ </PropertyGroup>
+
+ <Target Name="Clean">
+ <ItemGroup>
+ <CleanFiles Include="$(BuildOutput)" />
+ <CleanFiles Include="**\bin\$(Platform)\$(Configuration)\**" />
+ <CleanFiles Include="**\bin\*.*" />
+ <CleanFiles Include="**\obj\$(Platform)\$(Configuration)\**" />
+ <CleanFiles Include="**\obj\*.*" />
+ </ItemGroup>
+
+ <Delete Files="@(CleanFiles)" />
+ </Target>
+
+ <Target Name="Initialize" DependsOnTargets="Clean">
+ <MakeDir Directories="$(BuildOutput)" />
+ </Target>
+
+ <Target Name="Build" DependsOnTargets="Initialize">
+ <MSBuild Projects="clrzmq.sln" Targets="Build" ToolsVersion="3.5" Properties="Configuration=$(Configuration);Platform=$(Platform)" />
+ </Target>
+
+ <Target Name="Test" DependsOnTargets="Build">
+ <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)\$(Configuration)\*Tests.dll" />
+ </ItemGroup>
+
+ <Exec Command="$(MSpecExe) $(MSpecOptions) %(TestAssmbly.Identity)" />
+ </Target>
+
+</Project>
View
@@ -38,6 +38,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkerPool", "tests\WorkerP
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AcceptanceTests", "tests\AcceptanceTests\AcceptanceTests.csproj", "{7B12A63E-EC15-4F13-A91C-C03C7E97D8B6}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{FD546D7B-B1CF-43AF-81B1-A96AF545FDD7}"
+ ProjectSection(SolutionItems) = preProject
+ build.proj = build.proj
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
POSIX_DEBUG|x64 = POSIX_DEBUG|x64
@@ -16,7 +16,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WIN_DEBUG|x64'">
<DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x64\Debug\</OutputPath>
+ <OutputPath>bin\x64\WIN_DEBUG\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
@@ -33,7 +33,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WIN_DEBUG|x86'">
<DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x86\Debug\</OutputPath>
+ <OutputPath>bin\x86\WIN_DEBUG\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<NoWarn>169</NoWarn>
<DebugType>full</DebugType>
@@ -47,7 +47,7 @@
<CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WIN_RELEASE|x64'">
- <OutputPath>bin\x64\Release\</OutputPath>
+ <OutputPath>bin\x64\WIN_RELEASE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -64,7 +64,7 @@
<NoWarn>169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WIN_RELEASE|x86'">
- <OutputPath>bin\x86\Release\</OutputPath>
+ <OutputPath>bin\x86\WIN_RELEASE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -82,7 +82,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'POSIX_DEBUG|x64'">
<DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x64\Debug\</OutputPath>
+ <OutputPath>bin\x64\POSIX_DEBUG\</OutputPath>
<DefineConstants>TRACE;DEBUG;POSIX</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
@@ -99,7 +99,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'POSIX_DEBUG|x86'">
<DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x86\Debug\</OutputPath>
+ <OutputPath>bin\x86\POSIX_DEBUG\</OutputPath>
<DefineConstants>TRACE;DEBUG;POSIX</DefineConstants>
<NoWarn>414</NoWarn>
<DebugType>full</DebugType>
@@ -115,7 +115,7 @@
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'POSIX_RELEASE|x64'">
- <OutputPath>bin\x64\Release\</OutputPath>
+ <OutputPath>bin\x64\POSIX_RELEASE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -131,7 +131,7 @@
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'POSIX_RELEASE|x86'">
- <OutputPath>bin\x86\Release\</OutputPath>
+ <OutputPath>bin\x86\POSIX_RELEASE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>

0 comments on commit 82696b0

Please sign in to comment.