зеркало из https://github.com/stride3d/SDL2-CS.git
Added Linux build to avoid the need of a DllMap config file which
doesn't work with CoreCLR on Linux
This commit is contained in:
Родитель
f3124786b7
Коммит
7981877799
|
@ -54,6 +54,27 @@
|
|||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Linux' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;SDL_LINUX</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Linux' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DefineConstants>SDL_LINUX</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
|
|
15
SDL2-CS.sln
15
SDL2-CS.sln
|
@ -1,27 +1,34 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.23107.0
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SDL2-CS", "SDL2-CS.csproj", "{85480198-8711-4355-830E-72FD794AD3F6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Linux = Debug|Linux
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Linux = Release|Linux
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Any CPU.ActiveCfg = Debug|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Any CPU.Build.0 = Debug|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Linux.ActiveCfg = Debug|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|Linux.Build.0 = Debug|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|x64.Build.0 = Debug|x64
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Debug|x86.Build.0 = Debug|x86
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|Linux.ActiveCfg = Release|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|Linux.Build.0 = Release|Linux
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|x64.ActiveCfg = Release|x64
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|x64.Build.0 = Release|x64
|
||||
{85480198-8711-4355-830E-72FD794AD3F6}.Release|x86.ActiveCfg = Release|x86
|
||||
|
|
|
@ -43,7 +43,11 @@ namespace SDL2
|
|||
/// <summary>
|
||||
/// Used by DllImport to load the native library.
|
||||
/// </summary>
|
||||
#if SDL_LINUX
|
||||
private const string nativeLibName = "libSDL2-2.0.so";
|
||||
#else
|
||||
private const string nativeLibName = "SDL2.dll";
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -38,7 +38,11 @@ namespace SDL2
|
|||
#region SDL2# Variables
|
||||
|
||||
/* Used by DllImport to load the native library. */
|
||||
#if SDL_LINUX
|
||||
private const string nativeLibName = "libSDL2_image-2.0.so";
|
||||
#else
|
||||
private const string nativeLibName = "SDL2_image.dll";
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -38,7 +38,11 @@ namespace SDL2
|
|||
#region SDL2# Variables
|
||||
|
||||
/* Used by DllImport to load the native library. */
|
||||
#if SDL_LINUX
|
||||
private const string nativeLibName = "libSDL2_mixer-2.0.so";
|
||||
#else
|
||||
private const string nativeLibName = "SDL2_mixer.dll";
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -38,7 +38,11 @@ namespace SDL2
|
|||
#region SDL2# Variables
|
||||
|
||||
/* Used by DllImport to load the native library. */
|
||||
#if SDL_LINUX
|
||||
private const string nativeLibName = "libSDL2_ttf-2.0.so";
|
||||
#else
|
||||
private const string nativeLibName = "SDL2_ttf.dll";
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче