From 3de07fc2e11d6bf9a20723413d4e1599de14cf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= <jostein@kjonigsen.net> Date: Fri, 12 Jun 2015 19:43:14 +0200 Subject: [PATCH] Create FreeBSD build-target for corefx. This partially adresses https://github.com/dotnet/corefx/issues/1626 --- dir.props | 4 +++- .../src/System.Runtime.Environment.csproj | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dir.props b/dir.props index a315843c443b..32a59530bd5b 100644 --- a/dir.props +++ b/dir.props @@ -137,6 +137,7 @@ <OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('Windows'))">Windows_NT</OSGroup> <OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('Linux'))">Linux</OSGroup> <OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('OSX'))">OSX</OSGroup> + <OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('FreeBSD'))">FreeBSD</OSGroup> <OSGroup Condition="'$(OSGroup)'==''">Windows_NT</OSGroup> </PropertyGroup> @@ -189,8 +190,9 @@ <TargetsWindows Condition="'$(OSGroup)' == 'Windows_NT'">true</TargetsWindows> <TargetsLinux Condition="'$(OSGroup)' == 'Linux'">true</TargetsLinux> <TargetsOSX Condition="'$(OSGroup)' == 'OSX'">true</TargetsOSX> + <TargetsFreeBSD Condition="'$(OSGroup)' == 'FreeBSD'">true</TargetsFreeBSD> - <TargetsUnix Condition="'$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix> + <TargetsUnix Condition="'$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true' or '$(TargetsFreeBSD)' == 'true'">true</TargetsUnix> </PropertyGroup> <PropertyGroup> diff --git a/src/System.Runtime.Environment/src/System.Runtime.Environment.csproj b/src/System.Runtime.Environment/src/System.Runtime.Environment.csproj index 6d49d5ff2e22..6cfb01d61d0f 100644 --- a/src/System.Runtime.Environment/src/System.Runtime.Environment.csproj +++ b/src/System.Runtime.Environment/src/System.Runtime.Environment.csproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> @@ -17,6 +17,8 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'OSX_Release|AnyCPU' " /> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Windows_Debug|AnyCPU' " /> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Windows_Release|AnyCPU' " /> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'FreeBSD_Debug|AnyCPU' " /> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'FreeBSD_Release|AnyCPU' " /> <ItemGroup Condition=" '$(TargetsWindows)' == 'true' "> <Compile Include="RuntimeInformation.Windows.cs" /> </ItemGroup> @@ -33,4 +35,4 @@ <Compile Include="OSName.cs" /> </ItemGroup> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -</Project> \ No newline at end of file +</Project>