Merge pull request #602 from Nihlus/unix-unofficial-xamarin-android

Support building OpenTK.Android on Linux
This commit is contained in:
Jarl Gullberg 2017-07-27 16:56:26 +02:00 committed by GitHub
commit cd1bce55ef
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,10 @@
#if ANDROID || IPHONE || MINIMAL #if ANDROID || IPHONE || MINIMAL
using System; using System;
#if !MINIMAL
using System.Drawing;
#endif
namespace OpenTK namespace OpenTK
{ {
// Override a number of System.* classes when compiling for // Override a number of System.* classes when compiling for

View file

@ -43,6 +43,12 @@
<DocumentationFile>bin\Release\Android\OpenTK.xml</DocumentationFile> <DocumentationFile>bin\Release\Android\OpenTK.xml</DocumentationFile>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Unix' ">
<MonoAndroidToolsDirectory>/usr/lib/mono/mandroid</MonoAndroidToolsDirectory>
<MonoAndroidBinDirectory>/usr/lib/mono/xamarin-android/bin</MonoAndroidBinDirectory>
<AndroidSdkDirectory>$(ANDROID_SDK_PATH)</AndroidSdkDirectory>
<AndroidNdkDirectory>$(ANDROID_NDK_PATH)</AndroidNdkDirectory>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="Mono.Android" /> <Reference Include="Mono.Android" />