[msbuild] Define __MACOS__ for Xamarin.Mac. Fixes #36258. (#2048)

https://bugzilla.xamarin.com/show_bug.cgi?id=36258
This commit is contained in:
Rolf Bjarne Kvinge 2017-04-27 20:40:00 +02:00 коммит произвёл Sebastien Pouliot
Родитель 80811d9efb
Коммит e9ce55aac2
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -21,7 +21,7 @@ Copyright (C) 2014 Xamarin. All rights reserved.
<!-- Version/fx properties -->
<TargetFrameworkVersion Condition="'$(TargetFrameworkIdentifier)' == '' And '$(TargetFrameworkVersion)' ==''">v4.5</TargetFrameworkVersion>
<DefineConstants>__UNIFIED__;$(DefineConstants)</DefineConstants>
<DefineConstants>__UNIFIED__;__MACOS__;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

Просмотреть файл

@ -22,7 +22,7 @@ Copyright (C) 2014 Xamarin. All rights reserved.
<!-- Version/fx properties -->
<TargetFrameworkVersion Condition="'$(TargetFrameworkIdentifier)' == '' And '$(TargetFrameworkVersion)' == ''">v4.5</TargetFrameworkVersion>
<DefineConstants>__UNIFIED__;$(DefineConstants)</DefineConstants>
<DefineConstants>__UNIFIED__;__MACOS__;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

Просмотреть файл

@ -35,7 +35,7 @@ Copyright (C) 2014 Xamarin Inc. All rights reserved.
<BTouchToolExe Condition="!Exists('$(BTouchToolPath)/bgen')">bmac-mobile-mono</BTouchToolExe>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DefineConstants>__UNIFIED__;$(DefineConstants)</DefineConstants>
<DefineConstants>__UNIFIED__;__MACOS__;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.props"