[Mono.Posix] Remove; use Mono's version instead (#2915)
Fixes: https://github.com/xamarin/xamarin-android/issues/2597
Context: https://github.com/mono/mono/issues/11397
Stop building `Mono.Posix.dll` within the xamarin-android build, and
instead use the `Mono.Posix.dll` which is built by mono and included
in the mono archive (333b98b3
).
This commit is contained in:
Родитель
6abd3bbf42
Коммит
7333eb8807
|
@ -69,8 +69,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.EnterpriseServices",
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unix-distribution-setup", "build-tools\unix-distribution-setup\unix-distribution-setup.csproj", "{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Posix", "src\Mono.Posix\Mono.Posix.csproj", "{1A4B041A-842F-40B3-A50D-49E01D30BD18}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "class-parse", "external\Java.Interop\tools\class-parse\class-parse.csproj", "{38C762AB-8FD1-44DE-9855-26AAE7129DC3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "logcat-parse", "external\Java.Interop\tools\logcat-parse\logcat-parse.csproj", "{7387E151-48E3-4885-B2CA-A74434A34045}"
|
||||
|
@ -265,10 +263,6 @@ Global
|
|||
{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A}.Debug|AnyCPU.Build.0 = Debug|Any CPU
|
||||
{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A}.Release|AnyCPU.ActiveCfg = Release|Any CPU
|
||||
{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A}.Release|AnyCPU.Build.0 = Release|Any CPU
|
||||
{1A4B041A-842F-40B3-A50D-49E01D30BD18}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
|
||||
{1A4B041A-842F-40B3-A50D-49E01D30BD18}.Debug|AnyCPU.Build.0 = Debug|Any CPU
|
||||
{1A4B041A-842F-40B3-A50D-49E01D30BD18}.Release|AnyCPU.ActiveCfg = Release|Any CPU
|
||||
{1A4B041A-842F-40B3-A50D-49E01D30BD18}.Release|AnyCPU.Build.0 = Release|Any CPU
|
||||
{38C762AB-8FD1-44DE-9855-26AAE7129DC3}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
|
||||
{38C762AB-8FD1-44DE-9855-26AAE7129DC3}.Debug|AnyCPU.Build.0 = Debug|Any CPU
|
||||
{38C762AB-8FD1-44DE-9855-26AAE7129DC3}.Release|AnyCPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -434,7 +428,6 @@ Global
|
|||
{53E4ABF0-1085-45F9-B964-DCAE4B819998} = {CAB438D8-B0F5-4AF0-BEBD-9E2ADBD7B483}
|
||||
{2868FC32-A4E7-4008-87C8-2C7879CACB58} = {04E3E11E-B47D-4599-8AFC-50515A95E715}
|
||||
{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A} = {E351F97D-EA4F-4E7F-AAA0-8EBB1F2A4A62}
|
||||
{1A4B041A-842F-40B3-A50D-49E01D30BD18} = {04E3E11E-B47D-4599-8AFC-50515A95E715}
|
||||
{38C762AB-8FD1-44DE-9855-26AAE7129DC3} = {864062D3-A415-4A6F-9324-5820237BA058}
|
||||
{7387E151-48E3-4885-B2CA-A74434A34045} = {864062D3-A415-4A6F-9324-5820237BA058}
|
||||
{B8F799C5-D7CE-4E09-9CE6-BAA4173E7EC8} = {04E3E11E-B47D-4599-8AFC-50515A95E715}
|
||||
|
|
|
@ -1,261 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<ProjectGuid>{1A4B041A-842F-40B3-A50D-49E01D30BD18}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Mono.Posix</RootNamespace>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<AndroidResgenClass>Resource</AndroidResgenClass>
|
||||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
||||
<AssemblyName>Mono.Posix</AssemblyName>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<NoStdLib>True</NoStdLib>
|
||||
<AndroidApplication>false</AndroidApplication>
|
||||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\Configuration.props" />
|
||||
<Import Project="..\..\build-tools\scripts\MonoAndroidFramework.props" />
|
||||
<PropertyGroup>
|
||||
<AssemblyOriginatorKeyFile>$(MonoSourceFullPath)\mcs\class\mono.pub</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>$(XAInstallPrefix)xbuild-frameworks\MonoAndroid\v1.0</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE;MONODROID</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>$(XAInstallPrefix)xbuild-frameworks\MonoAndroid\v1.0</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DefineConstants>NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE;MONODROID</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib">
|
||||
<HintPath>$(OutputPath)..\v1.0\mscorlib.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System">
|
||||
<HintPath>$(OutputPath)..\v1.0\System.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Core">
|
||||
<HintPath>$(OutputPath)..\v1.0\System.Core.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<HintPath>$(OutputPath)..\v1.0\System.Xml.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Java.Interop">
|
||||
<HintPath>$(OutputPath)..\v1.0\Java.Interop.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(XamarinAndroidSourcePath)\src\Mono.Android\Android.Runtime\CPUArchitecture.cs">
|
||||
<Link>Android.Runtime\CPUArchitecture.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Assembly\AssemblyInfo.cs">
|
||||
<Link>Assembly\AssemblyInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixBinaryClientFormatterSink.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixBinaryClientFormatterSink.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixBinaryClientFormatterSinkProvider.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixBinaryClientFormatterSinkProvider.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixBinaryCore.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixBinaryCore.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixBinaryServerFormatterSink.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixBinaryServerFormatterSink.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixBinaryServerFormatterSinkProvider.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixBinaryServerFormatterSinkProvider.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixChannel.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixChannel.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixClientChannel.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixClientChannel.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixClientTransportSink.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixClientTransportSink.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixClientTransportSinkProvider.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixClientTransportSinkProvider.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixConnectionPool.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixConnectionPool.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixMessageIO.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixMessageIO.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixServerChannel.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixServerChannel.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Remoting.Channels.Unix\UnixServerTransportSink.cs">
|
||||
<Link>Mono.Remoting.Channels.Unix\UnixServerTransportSink.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\CdeclFunction.cs">
|
||||
<Link>Mono.Unix.Native\CdeclFunction.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\FileNameMarshaler.cs">
|
||||
<Link>Mono.Unix.Native\FileNameMarshaler.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\MapAttribute.cs">
|
||||
<Link>Mono.Unix.Native\MapAttribute.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\NativeConvert.cs">
|
||||
<Link>Mono.Unix.Native\NativeConvert.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Android\AndroidUtils.cs">
|
||||
<Link>Mono.Unix.Android\AndroidUtils.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\NativeConvert.generated.cs">
|
||||
<Link>Mono.Unix.Native\NativeConvert.generated.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\RealTimeSignum.cs">
|
||||
<Link>Mono.Unix.Native\RealTimeSignum.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\Stdlib.cs">
|
||||
<Link>Mono.Unix.Native\Stdlib.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\Syscall.cs">
|
||||
<Link>Mono.Unix.Native\Syscall.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix.Native\TypeAttributes.cs">
|
||||
<Link>Mono.Unix.Native\TypeAttributes.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\AbstractUnixEndPoint.cs">
|
||||
<Link>Mono.Unix\AbstractUnixEndPoint.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\Catalog.cs">
|
||||
<Link>Mono.Unix\Catalog.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\FileAccessPattern.cs">
|
||||
<Link>Mono.Unix\FileAccessPattern.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\FileAccessPermissions.cs">
|
||||
<Link>Mono.Unix\FileAccessPermissions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\FileHandleOperations.cs">
|
||||
<Link>Mono.Unix\FileHandleOperations.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\FileSpecialAttributes.cs">
|
||||
<Link>Mono.Unix\FileSpecialAttributes.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\FileTypes.cs">
|
||||
<Link>Mono.Unix\FileTypes.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\PeerCred.cs">
|
||||
<Link>Mono.Unix\PeerCred.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\StdioFileStream.cs">
|
||||
<Link>Mono.Unix\StdioFileStream.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixClient.cs">
|
||||
<Link>Mono.Unix\UnixClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixDirectoryInfo.cs">
|
||||
<Link>Mono.Unix\UnixDirectoryInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixDriveInfo.cs">
|
||||
<Link>Mono.Unix\UnixDriveInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixEncoding.cs">
|
||||
<Link>Mono.Unix\UnixEncoding.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixEndPoint.cs">
|
||||
<Link>Mono.Unix\UnixEndPoint.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixEnvironment.cs">
|
||||
<Link>Mono.Unix\UnixEnvironment.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixFileInfo.cs">
|
||||
<Link>Mono.Unix\UnixFileInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixFileSystemInfo.cs">
|
||||
<Link>Mono.Unix\UnixFileSystemInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixGroupInfo.cs">
|
||||
<Link>Mono.Unix\UnixGroupInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixIOException.cs">
|
||||
<Link>Mono.Unix\UnixIOException.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixListener.cs">
|
||||
<Link>Mono.Unix\UnixListener.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixMarshal.cs">
|
||||
<Link>Mono.Unix\UnixMarshal.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixPath.cs">
|
||||
<Link>Mono.Unix\UnixPath.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixPipes.cs">
|
||||
<Link>Mono.Unix\UnixPipes.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixProcess.cs">
|
||||
<Link>Mono.Unix\UnixProcess.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixSignal.cs">
|
||||
<Link>Mono.Unix\UnixSignal.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixStream.cs">
|
||||
<Link>Mono.Unix\UnixStream.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixSymbolicLinkInfo.cs">
|
||||
<Link>Mono.Unix\UnixSymbolicLinkInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\class\Mono.Posix\Mono.Unix\UnixUserInfo.cs">
|
||||
<Link>Mono.Unix\UnixUserInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(MonoSourceDirectory)\mcs\build\common\Locale.cs">
|
||||
<Link>Locale.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\bin\$(Configuration)\include\Consts.cs">
|
||||
<Link>Consts.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(XAInstallPrefix)xbuild\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Folder Include="MonoPosixHelper\" />
|
||||
<Folder Include="Assembly\" />
|
||||
<Folder Include="Mono.Posix\" />
|
||||
<Folder Include="Mono.Remoting.Channels.Unix\" />
|
||||
<Folder Include="Mono.Unix.Native\" />
|
||||
<Folder Include="Mono.Unix\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Mono.Android\Mono.Android.csproj">
|
||||
<Project>{66CF299A-CE95-4131-BCD8-DB66E30C4BF7}</Project>
|
||||
<Name>Mono.Android</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Xamarin.Android.Build.Tasks\Xamarin.Android.Build.Tasks.csproj">
|
||||
<Project>{3F1F2F50-AF1A-4A5A-BEDB-193372F068D7}</Project>
|
||||
<Name>Xamarin.Android.Build.Tasks</Name>
|
||||
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<XANativeLibsDir>$(OutputPath)\..\..\..\xbuild\Xamarin\Android\lib</XANativeLibsDir>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1,45 +0,0 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
using Android.Runtime;
|
||||
using Android.Util;
|
||||
|
||||
namespace Mono.Unix.Android
|
||||
{
|
||||
sealed class AndroidUtils
|
||||
{
|
||||
const string TAG = "Mono.Posix";
|
||||
|
||||
delegate void DetectCPUAndArchitecture (out ushort builtForCPU, out ushort runningOnCPU, out bool is64bit);
|
||||
|
||||
readonly static DetectCPUAndArchitecture detectCPUAndArchitecture;
|
||||
|
||||
static AndroidUtils ()
|
||||
{
|
||||
MethodInfo mi = typeof(AndroidEnvironment).GetMethod ("DetectCPUAndArchitecture", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
detectCPUAndArchitecture = (DetectCPUAndArchitecture) Delegate.CreateDelegate (typeof(DetectCPUAndArchitecture), mi);
|
||||
}
|
||||
|
||||
public static bool AreRealTimeSignalsSafe ()
|
||||
{
|
||||
ushort built_for_cpu;
|
||||
ushort running_on_cpu;
|
||||
bool is64bit;
|
||||
|
||||
detectCPUAndArchitecture (out built_for_cpu, out running_on_cpu, out is64bit);
|
||||
|
||||
CPUArchitecture builtForCPU = Enum.IsDefined (typeof (CPUArchitecture), built_for_cpu) ? (CPUArchitecture)built_for_cpu : CPUArchitecture.Unknown;
|
||||
CPUArchitecture runningOnCPU = Enum.IsDefined (typeof (CPUArchitecture), running_on_cpu) ? (CPUArchitecture)running_on_cpu : CPUArchitecture.Unknown;
|
||||
|
||||
Log.Info (TAG, " Built for CPU: {0}", builtForCPU);
|
||||
Log.Info (TAG, "Running on CPU: {0}", runningOnCPU);
|
||||
Log.Info (TAG, "64-bit process: {0}", is64bit ? "yes" : "no");
|
||||
|
||||
// For now real-time signals aren't safe at all, alas
|
||||
bool safe = false;
|
||||
Log.Info (TAG, "Real-time signals are {0}safe on this platform", safe ? String.Empty : "not ");
|
||||
|
||||
return safe;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Mono.Unix.Android;
|
||||
|
||||
namespace Mono.Unix.Native
|
||||
{
|
||||
partial class NativeConvert
|
||||
{
|
||||
[DllImport (LIB, EntryPoint="Mono_Posix_FromRealTimeSignum")]
|
||||
static extern int HelperFromRealTimeSignum (Int32 offset, out Int32 rval);
|
||||
|
||||
static int FromRealTimeSignum (Int32 offset, out Int32 rval)
|
||||
{
|
||||
if (!AndroidUtils.AreRealTimeSignalsSafe ())
|
||||
throw new PlatformNotSupportedException ("Real-time signals are not supported on this Android architecture");
|
||||
return HelperFromRealTimeSignum (offset, out rval);
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче