Ready to fork tizen branch from https://github.com/TizenAPI/opentk/
authoran87.li <an87.li@samsung.com>
Mon, 10 Sep 2018 02:59:46 +0000 (10:59 +0800)
committeran87.li <an87.li@samsung.com>
Mon, 10 Sep 2018 02:59:46 +0000 (10:59 +0800)
src/OpenTK/OpenTK.Tizen.csproj
src/OpenTK/Platform/SDL2/Sdl2.cs

index 0e980bb..c4fb0b2 100755 (executable)
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+<Project Sdk="Microsoft.NET.Sdk">
+
   <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>8.0.30703</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{A37A7E14-0000-0000-0000-000000000000}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <RootNamespace>OpenTK</RootNamespace>
-    <AssemblyKeyContainerName>
-    </AssemblyKeyContainerName>
+    <TargetFramework>netstandard2.0</TargetFramework>
     <AssemblyName>OpenTK</AssemblyName>
-    <DefaultClientScript>JScript</DefaultClientScript>
-    <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
-    <DefaultTargetSchema>IE50</DefaultTargetSchema>
-    <DelaySign>false</DelaySign>
-    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
-    <PublishUrl>publish\</PublishUrl>
-    <Install>true</Install>
-    <InstallFrom>Disk</InstallFrom>
-    <UpdateEnabled>false</UpdateEnabled>
-    <UpdateMode>Foreground</UpdateMode>
-    <UpdateInterval>7</UpdateInterval>
-    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
-    <UpdatePeriodically>false</UpdatePeriodically>
-    <UpdateRequired>false</UpdateRequired>
-    <MapFileExtensions>true</MapFileExtensions>
-    <ApplicationRevision>0</ApplicationRevision>
-    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
-    <IsWebBootstrapper>false</IsWebBootstrapper>
-    <UseApplicationTrust>false</UseApplicationTrust>
-    <BootstrapperEnabled>true</BootstrapperEnabled>
+    <AssemblyVersion>3.0.0</AssemblyVersion>
+    <PackageVersion>3.0.1</PackageVersion>
     <Deterministic>true</Deterministic>
-    <RunCodeAnalysis>true</RunCodeAnalysis>
-    <CodeAnalysisRuleSet>..\..\stylecop.ruleset</CodeAnalysisRuleSet>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <DefineConstants>DEBUG;TRACE;TIZEN;SDL2;OPENGLES</DefineConstants>
-    <DocumentationFile>bin\Debug\Tizen\OpenTK.xml</DocumentationFile>
-    <FileAlignment>4096</FileAlignment>
-    <Optimize>False</Optimize>
-    <OutputPath>bin\Debug\Tizen\</OutputPath>
-    <RegisterForComInterop>False</RegisterForComInterop>
-    <RemoveIntegerChecks>False</RemoveIntegerChecks>
-    <WarningLevel>4</WarningLevel>
-    <DebugSymbols>True</DebugSymbols>
-    <DebugType>full</DebugType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <DefineConstants>TRACE;TIZEN;SDL2;OPENGLES</DefineConstants>
-    <DocumentationFile>bin\Release\Tizen\OpenTK.xml</DocumentationFile>
-    <FileAlignment>4096</FileAlignment>
-    <Optimize>True</Optimize>
-    <OutputPath>bin\Release\Tizen\</OutputPath>
-    <RegisterForComInterop>False</RegisterForComInterop>
-    <RemoveIntegerChecks>False</RemoveIntegerChecks>
-    <WarningLevel>4</WarningLevel>
-    <DebugSymbols>True</DebugSymbols>
-    <DebugType>pdbonly</DebugType>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+    <EnableDefaultItems>false</EnableDefaultItems>
+    <GenerateDocumentationFile>true</GenerateDocumentationFile>
+    <ProduceReferenceAssembly>True</ProduceReferenceAssembly>
+    <DefineConstants>TIZEN;OPENGLES;SDL2;__MOBILE__</DefineConstants>
+    <NoWarn>$(NoWarn);CS3021</NoWarn>
   </PropertyGroup>
+
   <PropertyGroup>
-    <SignAssembly>True</SignAssembly>
+    <TizenNETVersion>5.0.0.14428</TizenNETVersion>
   </PropertyGroup>
+
   <PropertyGroup>
-    <AssemblyOriginatorKeyFile>..\..\OpenTK.snk</AssemblyOriginatorKeyFile>
+    <IncludeBuildOutput>false</IncludeBuildOutput>
+    <NoPackageAnalysis>true</NoPackageAnalysis>
+    <NuspecFile>OpenTK.Tizen.nuspec</NuspecFile>
+    <NuspecBasePath>$(MSBuildThisFileDirectory)</NuspecBasePath>
+    <NuspecProperties>version=$(PackageVersion);configuration=$(Configuration);fxversion=$(TizenNETVersion)</NuspecProperties>
   </PropertyGroup>
+
   <ItemGroup>
-    <Reference Include="System">
-      <Name>System</Name>
-    </Reference>
-    <Reference Include="System.Data">
-      <Name>System.Data</Name>
-    </Reference>
-    <Reference Include="System.Drawing" Condition=" '$(Configuration)' != 'DebugMinimal' And '$(Configuration)' != 'ReleaseMinimal' ">
-      <Name>System.Drawing</Name>
-    </Reference>
-    <Reference Include="System.Xml">
-      <Name>System.Xml</Name>
-    </Reference>
+    <PackageReference Include="Tizen.NET" Version="$(TizenNETVersion)" />
   </ItemGroup>
+
   <ItemGroup>
-    <Compile Include="DisplayDevice.cs" />
-    <Compile Include="DisplayIndex.cs" />
-       <Compile Include="ToolkitOptions.cs" />
-    <Compile Include="WindowBorder.cs" />
-    <Compile Include="ContextHandle.cs" />
-    <Compile Include="WindowState.cs" />
-    <Compile Include="IGameWindow.cs" />
-    <Compile Include="GameWindowFlags.cs" />
-    <Compile Include="KeyPressEventArgs.cs" />
     <Compile Include="AutoGeneratedAttribute.cs" />
     <Compile Include="CountAttribute.cs" />
-    <Compile Include="NativeWindow.cs" />
-    <Compile Include="DisplayResolution.cs" />
     <Compile Include="BindingsBase.cs" />
-    <Compile Include="Toolkit.cs" />
-    <Compile Include="FrameEventArgs.cs" />
     <Compile Include="BlittableValueType.cs" />
-    <Compile Include="GameWindow.cs" />
-    <Compile Include="Minimal.cs" />
     <Compile Include="Configuration.cs" />
+    <Compile Include="ContextHandle.cs" />
+    <Compile Include="DisplayDevice.cs" />
+    <Compile Include="DisplayIndex.cs" />
+    <Compile Include="DisplayResolution.cs" />
     <Compile Include="Exceptions.cs" />
+    <Compile Include="FrameEventArgs.cs" />
+    <Compile Include="GameWindow.cs" />
+    <Compile Include="GameWindowFlags.cs" />
+    <Compile Include="IGameWindow.cs" />
     <Compile Include="INativeWindow.cs" />
-    <Compile Include="InteropHelper.cs" />
     <Compile Include="IntPtrEqualityComparer.cs" />
-    <Compile Include="SlotAttribute.cs" />
-    <Compile Include="RewrittenAttribute.cs" />
-    <Compile Include="Platform\PlatformFactoryBase.cs" />
+    <Compile Include="InteropHelper.cs" />
+    <Compile Include="KeyPressEventArgs.cs" />
+    <Compile Include="Minimal.cs" />
     <Compile Include="MouseCursor.cs" />
+    <Compile Include="NativeWindow.cs" />
+    <Compile Include="Platform\iPhoneOS\iPhoneDisplayDeviceDriver.cs" />
+    <Compile Include="RewrittenAttribute.cs" />
+    <Compile Include="SlotAttribute.cs" />
+    <Compile Include="Toolkit.cs" />
+    <Compile Include="ToolkitOptions.cs" />
+    <Compile Include="WindowBorder.cs" />
     <Compile Include="WindowIcon.cs" />
+    <Compile Include="WindowState.cs" />
+    <Compile Include="Input/*.cs" />
+    <Compile Include="Math/*.cs" />
+    <Compile Include="Graphics/*.cs" />
+    <Compile Include="Graphics/ES11/*.cs" />
+    <Compile Include="Graphics/ES20/*.cs" />
+    <Compile Include="Graphics/ES30/*.cs" />
+    <Compile Include="Platform/*.cs" />
+    <Compile Include="Platform/Dummy/*.cs" />
+    <Compile Include="Platform/SDL2/*.cs" />
+    <Compile Include="Platform/Tizen/*.cs" />
+  </ItemGroup>
 
-    <Compile Include="Audio\AudioDeviceException.cs" />
-    <Compile Include="Audio\AudioContextException.cs" />
-    <Compile Include="Audio\AudioValueException.cs" />
-    <Compile Include="Audio\AudioException.cs" />
-    <Compile Include="Audio\AudioDeviceEnumerator.cs" />
-    <Compile Include="Audio\AudioDeviceErrorChecker.cs" />
-    <Compile Include="Audio\AudioContext.cs" />
-    <Compile Include="Audio\AudioCapture.cs" />
-    <Compile Include="Audio\OpenAL\Alc\AlcEnums.cs" />
-    <Compile Include="Audio\OpenAL\Alc\Alc.cs" />
-    <Compile Include="Audio\OpenAL\AL\EffectsExtensionPresets.cs" />
-    <Compile Include="Audio\OpenAL\AL\EffectsExtensionEnums.cs" />
-    <Compile Include="Audio\OpenAL\AL\XRamExtension.cs" />
-    <Compile Include="Audio\OpenAL\AL\EffectsExtension.cs" />
-    <Compile Include="Audio\OpenAL\AL\AL.cs" />
-    <Compile Include="Audio\OpenAL\AL\ALEnums.cs" />
-    <Compile Include="Compute\Memory.cs" />
-    <Compile Include="Compute\Device.cs" />
-    <Compile Include="Compute\Platform.cs" />
-    <Compile Include="Compute\Sampler.cs" />
-    <Compile Include="Compute\Kernel.cs" />
-    <Compile Include="Compute\Profiler.cs" />
-    <Compile Include="Compute\Program.cs" />
-    <Compile Include="Compute\Enums.cs" />
-    <Compile Include="Compute\CommandQueue.cs" />
-    <Compile Include="Compute\CLHelper.cs" />
-    <Compile Include="Compute\Event.cs" />
-    <Compile Include="Compute\Structs.cs" />
-    <Compile Include="Compute\Configuration.cs" />
-    <Compile Include="Compute\ComputeContext.cs" />
-    <Compile Include="Compute\CL10\Enums.cs" />
-    <Compile Include="Compute\CL10\ErrorHelper.cs" />
-    <Compile Include="Compute\CL10\Delegates.cs" />
-    <Compile Include="Compute\CL10\Core.cs" />
-    <Compile Include="Compute\CL10\CLHelper.cs" />
-    <Compile Include="Compute\CL10\CL.cs" />
-    <Compile Include="Compute\CL10\ImageFormat.cs" />
-    <Compile Include="Graphics\Color4.cs" />
-    <Compile Include="Graphics\ColorFormat.cs" />
-    <Compile Include="Graphics\ES10\Core.cs" />
-    <Compile Include="Graphics\ES10\Enums.cs" />
-    <Compile Include="Graphics\ES10\ErrorHelper.cs" />
-    <Compile Include="Graphics\ES10\ES.cs" />
-    <Compile Include="Graphics\ES10\Helper.cs" />
-    <Compile Include="Graphics\ES11\ES11.cs" />
-    <Compile Include="Graphics\ES11\ES11Enums.cs" />
-    <Compile Include="Graphics\ES11\ES11Obsolete.cs" />
-    <Compile Include="Graphics\ES11\ErrorHelper.cs" />
-    <Compile Include="Graphics\ES11\Helper.cs" />
-    <Compile Include="Graphics\ES20\ES20.cs" />
-    <Compile Include="Graphics\ES20\ES20Enums.cs" />
-    <Compile Include="Graphics\ES20\ErrorHelper.cs" />
-    <Compile Include="Graphics\ES20\Helper.cs" />
-    <Compile Include="Graphics\ES30\ES30.cs" />
-    <Compile Include="Graphics\ES30\ES30Enums.cs" />
-    <Compile Include="Graphics\ES30\ErrorHelper.cs" />
-    <Compile Include="Graphics\ES30\Helper.cs" />
-    <Compile Include="Graphics\GraphicsBindingsBase.cs" />
-    <Compile Include="Graphics\GraphicsContext.cs" />
-    <Compile Include="Graphics\GraphicsContextBase.cs" />
-    <Compile Include="Graphics\GraphicsContextException.cs" />
-    <Compile Include="Graphics\GraphicsContextFlags.cs" />
-    <Compile Include="Graphics\GraphicsContextMissingException.cs" />
-    <Compile Include="Graphics\GraphicsContextVersion.cs" />
-    <Compile Include="Graphics\GraphicsErrorException.cs" />
-    <Compile Include="Graphics\GraphicsExceptions.cs" />
-    <Compile Include="Graphics\GraphicsModeComparer.cs" />
-    <Compile Include="Graphics\GraphicsMode.cs" />
-    <Compile Include="Graphics\GraphicsModeException.cs" />
-    <Compile Include="Graphics\IGraphicsContext.cs" />
-    <Compile Include="Graphics\IGraphicsMode.cs" />
-    <Compile Include="Input\ButtonState.cs" />
-    <Compile Include="Input\Buttons.cs" />
-    <Compile Include="Input\ConfigurationType.cs" />
-    <Compile Include="Input\FileDropEventArgs.cs" />
-    <Compile Include="Input\GamePad.cs" />
-    <Compile Include="Input\GamePadAxes.cs" />
-    <Compile Include="Input\GamePadButtons.cs" />
-    <Compile Include="Input\GamePadCapabilities.cs" />
-    <Compile Include="Input\GamePadConfiguration.cs" />
-    <Compile Include="Input\GamePadConfigurationDatabase.cs" />
-    <Compile Include="Input\GamePadConfigurationItem.cs" />
-    <Compile Include="Input\GamePadConfigurationSource.cs" />
-    <Compile Include="Input\GamePadConfigurationTarget.cs" />
-    <Compile Include="Input\GamePadDPad.cs" />
-    <Compile Include="Input\GamePadState.cs" />
-    <Compile Include="Input\GamePadThumbSticks.cs" />
-    <Compile Include="Input\GamePadTriggers.cs" />
-    <Compile Include="Input\GamePadType.cs" />
-    <Compile Include="Input\HatPosition.cs" />
-    <Compile Include="Input\IGamePadDriver.cs" />
-    <Compile Include="Input\IInputDevice.cs" />
-    <Compile Include="Input\IInputDriver2.cs" />
-    <Compile Include="Input\IJoystickDriver2.cs" />
-    <Compile Include="Input\IKeyboardDriver2.cs" />
-    <Compile Include="Input\IMouseDriver2.cs" />
-    <Compile Include="Input\Joystick.cs" />
-    <Compile Include="Input\JoystickCapabilities.cs" />
-    <Compile Include="Input\JoystickDevice.cs" />
-    <Compile Include="Input\JoystickHat.cs" />
-    <Compile Include="Input\JoystickHatState.cs" />
-    <Compile Include="Input\JoystickState.cs" />
-    <Compile Include="Input\Key.cs" />
-    <Compile Include="Input\KeyModifiers.cs" />
-    <Compile Include="Input\Keyboard.cs" />
-    <Compile Include="Input\KeyboardDevice.cs" />
-    <Compile Include="Input\KeyboardKeyEventArgs.cs" />
-    <Compile Include="Input\KeyboardState.cs" />
-    <Compile Include="Input\Mouse.cs" />
-    <Compile Include="Input\MouseButton.cs" />
-    <Compile Include="Input\MouseDevice.cs" />
-    <Compile Include="Input\MouseEventArgs.cs" />
-    <Compile Include="Input\MouseScroll.cs" />
-    <Compile Include="Input\MouseState.cs" />
-    <Compile Include="Math\BezierCurve.cs" />
-    <Compile Include="Math\BezierCurveCubic.cs" />
-    <Compile Include="Math\BezierCurveQuadric.cs" />
-    <Compile Include="Math\Box2.cs" />
-    <Compile Include="Math\Box2d.cs" />
-    <Compile Include="Math\Half.cs" />
-    <Compile Include="Math\MathHelper.cs" />
-    <Compile Include="Math\Matrix2.cs" />
-    <Compile Include="Math\Matrix2d.cs" />
-    <Compile Include="Math\Matrix2x3.cs" />
-    <Compile Include="Math\Matrix2x3d.cs" />
-    <Compile Include="Math\Matrix2x4.cs" />
-    <Compile Include="Math\Matrix2x4d.cs" />
-    <Compile Include="Math\Matrix3.cs" />
-    <Compile Include="Math\Matrix3d.cs" />
-    <Compile Include="Math\Matrix3x2.cs" />
-    <Compile Include="Math\Matrix3x2d.cs" />
-    <Compile Include="Math\Matrix3x4.cs" />
-    <Compile Include="Math\Matrix3x4d.cs" />
-    <Compile Include="Math\Matrix4.cs" />
-    <Compile Include="Math\Matrix4d.cs" />
-    <Compile Include="Math\Matrix4x2.cs" />
-    <Compile Include="Math\Matrix4x2d.cs" />
-    <Compile Include="Math\Matrix4x3.cs" />
-    <Compile Include="Math\Matrix4x3d.cs" />
-    <Compile Include="Math\Point.cs" />
-    <Compile Include="Math\Quaternion.cs" />
-    <Compile Include="Math\Quaterniond.cs" />
-    <Compile Include="Math\Rectangle.cs" />
-    <Compile Include="Math\Size.cs" />
-    <Compile Include="Math\Vector2.cs" />
-    <Compile Include="Math\Vector2d.cs" />
-    <Compile Include="Math\Vector2h.cs" />
-    <Compile Include="Math\Vector3.cs" />
-    <Compile Include="Math\Vector3d.cs" />
-    <Compile Include="Math\Vector3h.cs" />
-    <Compile Include="Math\Vector4.cs" />
-    <Compile Include="Math\Vector4d.cs" />
-    <Compile Include="Math\Vector4h.cs" />
-    <Compile Include="Platform\Common\Hid.cs" />
-    <Compile Include="Platform\DisplayDeviceBase.cs" />
-    <Compile Include="Platform\DesktopGraphicsContext.cs" />
-    <Compile Include="Platform\DeviceCollection.cs" />
-    <Compile Include="Platform\Dummy\DummyGLContext.cs" />
-    <Compile Include="Platform\Dummy\DummyWindowInfo.cs" />
-    <Compile Include="Platform\Egl\AngleWindowInfo.cs" />
-    <Compile Include="Platform\Egl\Egl.cs" />
-    <Compile Include="Platform\Egl\EglAnglePlatformFactory.cs" />
-    <Compile Include="Platform\Egl\EglContext.cs" />
-    <Compile Include="Platform\Egl\EglException.cs" />
-    <Compile Include="Platform\Egl\EglGraphicsMode.cs" />
-    <Compile Include="Platform\Egl\EglSdl2PlatformFactory.cs" />
-    <Compile Include="Platform\Egl\EglWinContext.cs" />
-    <Compile Include="Platform\Egl\EglWindowInfo.cs" />
-    <Compile Include="Platform\Egl\EglWinPlatformFactory.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="Platform\EmbeddedGraphicsContext.cs" />
-    <Compile Include="Platform\Factory.cs" />
-    <Compile Include="Platform\MappedGamePadDriver.cs" />
-    <Compile Include="Platform\NativeWindowBase.cs" />
-    <Compile Include="Platform\Windows\Bindings\HidProtocol.cs" />
-    <Compile Include="Platform\Windows\WinInputBase.cs" />
-    <Compile Include="Platform\Windows\WinRawJoystick.cs" />
-    <Compile Include="Platform\Windows\XInputJoystick.cs" />
-    <Compile Include="Platform\Windows\WinRawKeyboard.cs" />
-    <Compile Include="Platform\Windows\WinFactory.cs" />
-    <Compile Include="Platform\Windows\WinRawInput.cs" />
-    <Compile Include="Platform\Windows\WinRawMouse.cs" />
-    <Compile Include="Platform\Windows\WinDisplayDevice.cs" />
-    <Compile Include="Platform\Windows\API.cs" />
-    <Compile Include="Platform\Windows\WinKeyMap.cs" />
-    <Compile Include="Platform\Windows\WinGLNative.cs" />
-    <Compile Include="Platform\Windows\WinWindowInfo.cs" />
-    <Compile Include="Platform\Windows\WinGLContext.cs" />
-    <Compile Include="Platform\Windows\WglHelper.cs" />
-    <Compile Include="Platform\Windows\WinGraphicsMode.cs" />
-    <Compile Include="Platform\Windows\Bindings\Wgl.cs" />
-    <Compile Include="Platform\Windows\Bindings\WglEnums.cs" />
-    <Compile Include="Platform\IDisplayDeviceDriver.cs" />
-    <Compile Include="Platform\IWindowInfo.cs" />
-    <Compile Include="Platform\IPlatformFactory.cs" />
-    <Compile Include="Platform\PlatformException.cs" />
-    <Compile Include="Platform\SDL2\Sdl2DisplayDeviceDriver.cs" />
-    <Compile Include="Platform\SDL2\Sdl2Factory.cs" />
-    <Compile Include="Platform\SDL2\Sdl2GraphicsContext.cs" />
-    <Compile Include="Platform\SDL2\Sdl2GraphicsMode.cs" />
-    <Compile Include="Platform\SDL2\Sdl2InputDriver.cs" />
-    <Compile Include="Platform\SDL2\Sdl2KeyMap.cs" />
-    <Compile Include="Platform\SDL2\Sdl2Keyboard.cs" />
-    <Compile Include="Platform\SDL2\Sdl2Mouse.cs" />
-    <Compile Include="Platform\SDL2\Sdl2NativeWindow.cs" />
-    <Compile Include="Platform\SDL2\Sdl2WindowInfo.cs" />
-    <Compile Include="Platform\SDL2\Sdl2.cs" />
-    <Compile Include="Platform\SDL2\Sdl2JoystickDriver.cs" />
-    <Compile Include="Platform\Utilities.cs" />
-
-    <None Include="..\..\OpenTK.snk">
-      <Link>OpenTK.snk</Link>
-    </None>
-    <EmbeddedResource Include="OpenTK.dll.config">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </EmbeddedResource>
+  <!-- Rewrite OpenTK.dll after building -->
+  <Target Name="_AfterBuild" AfterTargets="Build">
+    <!-- Copy dependent files to output dir -->
+    <ItemGroup>
+      <_DependentFilesToCopy Include="@(ResolvedCompileFileDefinitions)" Condition="'%(NuGetPackageId)' == 'Tizen.NET.API5'" />
+    </ItemGroup>
+    <Copy SourceFiles="@(_DependentFilesToCopy)" DestinationFolder="$(TargetDir)" />
 
-    <None Include="OpenTK.Tizen.csproj.paket.template" />
-    <None Include="paket.references" />
-  </ItemGroup>
-  <ItemGroup>
-    <AdditionalFiles Include="$(SolutionDir)\stylecop.json">
-      <Link>stylecop.json</Link>
-    </AdditionalFiles>
-    <AdditionalFiles Include="$(SolutionDir)\stylecop.ruleset">
-      <Link>stylecop.ruleset</Link>
-    </AdditionalFiles>
-  </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <PropertyGroup>
-    <PreBuildEvent>
-    </PreBuildEvent>
-    <PostBuildEvent>
-    </PostBuildEvent>
-  </PropertyGroup>
-  <Target Name="AfterBuild">
-    <Exec
-      Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Debug'"
-      Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Debug\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\..\OpenTK.snk --debug" />
-    <Exec
-      Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Release'"
-      Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Release\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\..\OpenTK.snk" />
-    <Exec
-      Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Debug'"
-      Command="mono $(OutputPath)../../../../Generator.Rewrite/bin/Debug/Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ../../../OpenTK.snk --debug"  />
-    <Exec
-      Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Release'"
-      Command="mono $(OutputPath)../../../../Generator.Rewrite/bin/Release/Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ../../../OpenTK.snk"  />
+    <!-- Rewrite OpenTK.dll -->
+    <PropertyGroup>
+      <RewriteCmd>dotnet ../Generator.Rewrite/bin/$(Configuration)/netcoreapp2.0/Generator.Rewrite.dll</RewriteCmd>
+      <DebugOpt Condition="'$(Configuration)' == 'Debug'">--debug</DebugOpt>
+    </PropertyGroup>
+    <Exec Command="$(RewriteCmd) --assembly $(TargetPath) --dllimport $(DebugOpt)" />
   </Target>
-  <ProjectExtensions>
-    <MonoDevelop>
-      <Properties>
-        <Policies>
-          <TextStylePolicy inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/plain" />
-          <CSharpFormattingPolicy IndentSwitchBody="True" AnonymousMethodBraceStyle="NextLine" PropertyBraceStyle="NextLine" PropertyGetBraceStyle="NextLine" PropertySetBraceStyle="NextLine" EventBraceStyle="NextLine" EventAddBraceStyle="NextLine" EventRemoveBraceStyle="NextLine" StatementBraceStyle="NextLine" ElseNewLinePlacement="NewLine" CatchNewLinePlacement="NewLine" FinallyNewLinePlacement="NewLine" WhileNewLinePlacement="NewLine" ArrayInitializerBraceStyle="NextLine" BeforeMethodDeclarationParentheses="False" BeforeMethodCallParentheses="False" BeforeConstructorDeclarationParentheses="False" BeforeIndexerDeclarationBracket="False" BeforeDelegateDeclarationParentheses="False" NewParentheses="False" SpacesBeforeBrackets="False" BlankLinesBeforeFirstDeclaration="1" AlignToFirstMethodDeclarationParameter="False" AlignToFirstIndexerDeclarationParameter="False" inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp" />
-          <TextStylePolicy FileWidth="120" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-csharp" />
-          <StandardHeader Text="#region License&#xA;&#xA;${FileName}&#xA; &#xA;Author:&#xA;      ${AuthorName} &lt;${AuthorEmail}&gt;&#xA;&#xA;Copyright (c) 2006-${Year} ${CopyrightHolder}&#xA;&#xA;Permission is hereby granted, free of charge, to any person obtaining a copy&#xA;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xA;in the Software without restriction, including without limitation the rights&#xA;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xA;copies of the Software, and to permit persons to whom the Software is&#xA;furnished to do so, subject to the following conditions:&#xA;&#xA;The above copyright notice and this permission notice shall be included in&#xA;all copies or substantial portions of the Software.&#xA;&#xA;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xA;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xA;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xA;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xA;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xA;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&#xA;THE SOFTWARE.&#xA;&#xA;#endregion" IncludeInNewFiles="True" />
-          <TextStylePolicy TabWidth="2" IndentWidth="2" NoTabsAfterNonTabs="True" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="application/xml" />
-          <XmlFormattingPolicy inheritsSet="Mono" inheritsScope="application/xml" scope="application/xml" />
-        </Policies>
-      </Properties>
-    </MonoDevelop>
-  </ProjectExtensions>
-  <ItemGroup>
-    <Analyzer Include="..\..\packages\StyleCop.Analyzers\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll">
-      <Paket>True</Paket>
-    </Analyzer>
-    <Analyzer Include="..\..\packages\StyleCop.Analyzers\analyzers\dotnet\cs\StyleCop.Analyzers.dll">
-      <Paket>True</Paket>
-    </Analyzer>
-  </ItemGroup>
+
 </Project>
\ No newline at end of file
index 3426736..d54f18b 100755 (executable)
@@ -37,15 +37,15 @@ namespace OpenTK.Platform.SDL2
 
     internal partial class SDL
     {
-        #if ANDROID
+#if ANDROID
         const string lib = "libSDL2.so";
-        #elif IPHONE
+#elif IPHONE
         const string lib = "__Internal";
-        #elif TIZEN
+#elif TIZEN
         private const string lib = "libSDL2-2.0.so.0";
-        #else
+#else
         private const string lib = "SDL2.dll";
-        #endif
+#endif
 
         public readonly static object Sync = new object();
         private static Nullable<Version> version;
@@ -113,14 +113,6 @@ namespace OpenTK.Platform.SDL2
         public static extern IntPtr CreateWindow(string title, int x, int y, int w, int h, WindowFlags flags);
 
         [SuppressUnmanagedCodeSecurity]
-        [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_SetMainReady", ExactSpelling = true)]
-        public static extern void SetMainReady();
-
-        [SuppressUnmanagedCodeSecurity]
-        [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_SetHint", ExactSpelling = true)]
-        public static extern IntPtr SetHint(string name, string value);
-
-        [SuppressUnmanagedCodeSecurity]
         [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_CreateWindowFrom", ExactSpelling = true)]
         public static extern IntPtr CreateWindowFrom(IntPtr data);
 
@@ -680,8 +672,23 @@ namespace OpenTK.Platform.SDL2
     {
         FIRSTEVENT = 0,
         QUIT = 0x100,
+        APPTERMINATING,
+        APPLOWMEMORY,
+        APPWILLENTERBACKGROUND,
+        APPDIDENTERBACKGROUND,
+        APPWILLENTERFOREGROUND,
+        APPDIDENTERFOREGROUND,
+#if TIZEN
+        APPCONTROL,
+        APPLOWBATTERY,
+        APPLANGUAGECHANGED,
+        APPREGIONCHANGED,
+#endif
         WINDOWEVENT = 0x200,
         SYSWMEVENT,
+#if TIZEN
+        ROTATEEVENT,
+#endif
         KEYDOWN = 0x300,
         KEYUP,
         TEXTEDITING,
@@ -1437,6 +1444,10 @@ namespace OpenTK.Platform.SDL2
         public ControllerDeviceEvent ControllerDevice;
         [FieldOffset(0)]
         public DropEvent Drop;
+#if TIZEN
+        [FieldOffset(0)]
+        public UserEvent User;
+#endif
 #if false
         [FieldOffset(0)]
         public QuitEvent quit;
@@ -1460,6 +1471,18 @@ namespace OpenTK.Platform.SDL2
         private unsafe fixed byte reserved[128];
     }
 
+#if TIZEN
+    internal struct UserEvent
+    {
+        public UInt32 Type;
+        public UInt32 Timestamp;
+        public UInt32 WindowID;
+        public Int32 code;
+        public IntPtr data1;
+        public IntPtr data2;
+    }
+#endif
+
     [StructLayout(LayoutKind.Explicit)]
     internal struct GameControllerButtonBind
     {