Modify dllimport path on Android builds.

This commit is contained in:
Stefanos A 2013-10-12 15:17:10 +02:00
parent 6df11a8564
commit 915ead34cb
2 changed files with 8 additions and 5 deletions

View file

@ -31,6 +31,14 @@ namespace OpenTK.Platform.SDL2
{
partial class SDL
{
#if ANDROID
const string nativeLibName = "libSDL2.so";
#elif IPHONE
const string nativeLibName = "__Internal";
#else
const string nativeLibName = "SDL2.dll";
#endif
public readonly static object Sync = new object();
public readonly static SDL_version Version;

View file

@ -40,11 +40,6 @@ namespace OpenTK.Platform.SDL2
{
#region SDL2# Variables
/// <summary>
/// Used by DllImport to load the native library.
/// </summary>
private const string nativeLibName = "SDL2.dll";
#endregion
#region SDL_stdinc.h