Added Switch as a platform. (#5596)

* Added Switch to supported platforms.

* Added Switch platform to pipeline.

* Fixed up platform references in docs.
Removed references to old PS Mobile platform.
This commit is contained in:
Tom Spilman 2017-03-18 22:47:38 -05:00 committed by Steve 'Sly' Williams
parent c8087bf844
commit c45ebeec99
9 changed files with 29 additions and 8 deletions

View file

@ -5,7 +5,7 @@
<DefaultLinuxPlatforms>Angle,Linux,WindowsGL</DefaultLinuxPlatforms>
<DefaultMacOSPlatforms>Angle,MacOS,iOS,WindowsGL,Android,tvOS,Linux</DefaultMacOSPlatforms>
<DefaultWindowsPlatforms>Android,Angle,Linux,Windows8,Windows,WindowsGL,WindowsPhone81,WindowsUniversal,iOS,tvOS</DefaultWindowsPlatforms>
<SupportedPlatforms>Android,Angle,Linux,Windows8,Windows,WindowsGL,WindowsPhone81,WindowsUniversal,iOS,MacOS,Web,tvOS,PSVita,XBoxOne</SupportedPlatforms>
<SupportedPlatforms>Android,Angle,Linux,Windows8,Windows,WindowsGL,WindowsPhone81,WindowsUniversal,iOS,MacOS,Web,tvOS,PSVita,XBoxOne,Switch</SupportedPlatforms>
<DisableSynchronisation>true</DisableSynchronisation>
<GenerateNuGetRepositories>false</GenerateNuGetRepositories>
<Packages>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Name="MonoGame.Framework" Path="MonoGame.Framework" Type="Library" Platforms="Android,Angle,iOS,Linux,MacOS,Windows,Windows8,WindowsGL,WindowsPhone81,WindowsUniversal,Web,tvOS,PSVita,XBoxOne">
<Project Name="MonoGame.Framework" Path="MonoGame.Framework" Type="Library" Platforms="Android,Angle,iOS,Linux,MacOS,Windows,Windows8,WindowsGL,WindowsPhone81,WindowsUniversal,Web,tvOS,PSVita,XBoxOne,Switch">
<!--
Using Protobuild in your own project? ProjectGuids are only in use here
for backwards compatibility with existing users of MonoGame, and are not

View file

@ -26,8 +26,11 @@ The `/Profile` option defines the platform we're targeting with this effect file
DirectX_11
OpenGL
PlayStation4
PSVita
XboxOne
Switch
```
NOTE: PlayStation 4 support is only available to licensed Sony developers.
NOTE: PlayStation 4, Xbox One, PS Vita, and Switch support is only available to licensed console developers.
### Help
If you use `/?`, `/help`, or simply pass no paramters to 2MGFX.exe you will get information about these command line options.

View file

@ -3,7 +3,6 @@ Links to several useful reference sites related to MonoGame.
- [Microsoft XNA Documentation](http://msdn.microsoft.com/en-us/library/bb203940.aspx)
- [OpenGL 4.3 Reference Card](http://www.khronos.org/files/opengl43-quick-reference-card.pdf)
- [OpenGL ES 2.0 Reference Card](http://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf)
- [PlayStation Mobile SDK Docs](https://psm.playstation.net/static/general/dev/en/sdk_docs/)
- [WebGL Reference Card](http://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf)
- [Collada Specification](http://www.khronos.org/collada/)
- [Valve's Guide to Porting to Linux](https://developer.nvidia.com/sites/default/files/akamai/gamedev/docs/Porting%20Source%20to%20Linux.pdf)

View file

@ -47,23 +47,22 @@ An optional parameter which adds an assembly reference which contains importers,
```
Set the target platform for this build. It must be a member of the TargetPlatform enum:
* Windows
* Xbox360
* iOS
* Android
* DesktopGL
* MacOSX
* WindowsStoreApp
* NativeClient
* PlayStationMobile
* PlayStation4
* WindowsPhone8
* RaspberryPi
* PSVita
* XboxOne
* Switch
If not set it will default to Windows.
NOTE: PlayStation 4 support is only available to licensed Sony developers.
NOTE: PlayStation 4, Xbox One, PS Vita, and Switch support is only available to licensed console developers.
### Target Graphics Profile
```

View file

@ -1 +1,14 @@
MonoGame is an Open Source implementation of the Microsoft XNA 4 Framework. Our goal is to allow XNA developers on Xbox 360, Windows & Windows Phone to port their games to the iOS, Android, Mac OS X, Linux and Windows 8 Metro. PlayStation Mobile, Raspberry PI, and PlayStation 4 platforms are currently in progress.
MonoGame is an Open Source implementation of the Microsoft XNA 4 Framework. Our goal is to allow XNA developers on Xbox 360, Windows & Windows Phone to port their games to any platform where games are found including:
* Windows 7/8/10
* Mac OS X
* Linux
* iPhone/iPad/iTV
* Android
* Windows Phone 8.1
* Windows 10 Mobile
* Raspberry PI
* Xbox One
* PlayStation 4
* PlayStation Vita
* Nintendo Switch

View file

@ -55,6 +55,7 @@ namespace Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler
'P', // PlayStation4
'v', // PSVita
'O', // XboxOne
'S', // Nintendo Switch
};
/// <summary>

View file

@ -95,6 +95,11 @@ namespace Microsoft.Xna.Framework.Content.Pipeline
/// Xbox One
/// </summary>
XboxOne,
/// <summary>
/// Nintendo Switch
/// </summary>
Switch,
}

View file

@ -48,6 +48,7 @@ namespace Microsoft.Xna.Framework.Content
'P', // PlayStation4
'v', // PSVita
'O', // XboxOne
'S', // Nintendo Switch
// NOTE: There are additional idenfiers for consoles that
// are not defined in this repository. Be sure to ask the