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> <DefaultLinuxPlatforms>Angle,Linux,WindowsGL</DefaultLinuxPlatforms>
<DefaultMacOSPlatforms>Angle,MacOS,iOS,WindowsGL,Android,tvOS,Linux</DefaultMacOSPlatforms> <DefaultMacOSPlatforms>Angle,MacOS,iOS,WindowsGL,Android,tvOS,Linux</DefaultMacOSPlatforms>
<DefaultWindowsPlatforms>Android,Angle,Linux,Windows8,Windows,WindowsGL,WindowsPhone81,WindowsUniversal,iOS,tvOS</DefaultWindowsPlatforms> <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> <DisableSynchronisation>true</DisableSynchronisation>
<GenerateNuGetRepositories>false</GenerateNuGetRepositories> <GenerateNuGetRepositories>false</GenerateNuGetRepositories>
<Packages> <Packages>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?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 Using Protobuild in your own project? ProjectGuids are only in use here
for backwards compatibility with existing users of MonoGame, and are not 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 DirectX_11
OpenGL OpenGL
PlayStation4 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 ### Help
If you use `/?`, `/help`, or simply pass no paramters to 2MGFX.exe you will get information about these command line options. 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) - [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 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) - [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) - [WebGL Reference Card](http://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf)
- [Collada Specification](http://www.khronos.org/collada/) - [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) - [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: Set the target platform for this build. It must be a member of the TargetPlatform enum:
* Windows * Windows
* Xbox360
* iOS * iOS
* Android * Android
* DesktopGL * DesktopGL
* MacOSX * MacOSX
* WindowsStoreApp * WindowsStoreApp
* NativeClient * NativeClient
* PlayStationMobile
* PlayStation4 * PlayStation4
* WindowsPhone8 * WindowsPhone8
* RaspberryPi * RaspberryPi
* PSVita * PSVita
* XboxOne * XboxOne
* Switch
If not set it will default to Windows. 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 ### 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 'P', // PlayStation4
'v', // PSVita 'v', // PSVita
'O', // XboxOne 'O', // XboxOne
'S', // Nintendo Switch
}; };
/// <summary> /// <summary>

View file

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

View file

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