Merge branch 'xboxone' of git://github.com/honzapatCZ/FlaxEngine into honzapatCZ-xboxone
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "Linux/LinuxClipboard.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Base/ClipboardBase.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Base/ClipboardBase.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Base/ClipboardBase.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Unix/UnixConditionVariable.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Unix/UnixConditionVariable.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Win32/Win32ConditionVariable.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Win32/Win32ConditionVariable.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Unix/UnixCriticalSection.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Unix/UnixCriticalSection.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Win32/Win32CriticalSection.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Win32/Win32CriticalSection.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -130,6 +130,8 @@ API_ENUM() enum class ArchitectureType
|
||||
#include "Linux/LinuxDefines.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4Defines.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Platforms/XboxOne/Engine/Platform/XboxOneDefines.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Platforms/XboxScarlett/Engine/Platform/XboxScarlettDefines.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
@@ -175,7 +177,7 @@ API_ENUM() enum class ArchitectureType
|
||||
|
||||
// Platform family defines
|
||||
#define PLATFORM_WINDOWS_FAMILY (PLATFORM_WINDOWS || PLATFORM_UWP)
|
||||
#define PLATFORM_MICROSOFT_FAMILY (PLATFORM_WINDOWS_FAMILY || PLATFORM_XBOX_ONE)
|
||||
#define PLATFORM_MICROSOFT_FAMILY (PLATFORM_WINDOWS_FAMILY)
|
||||
#define PLATFORM_UNIX_FAMILY (PLATFORM_LINUX || PLATFORM_ANDROID || PLATFORM_PS4)
|
||||
#define PLATFORM_APPLE_FAMILY (PLATFORM_IOS || PLATFORM_OSX)
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Unix/UnixFile.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Unix/UnixFile.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Win32/Win32File.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Win32/Win32File.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Linux/LinuxFileSystem.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4FileSystem.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Platforms/XboxOne/Engine/Platform/XboxOneFileSystem.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Platforms/XboxScarlett/Engine/Platform/XboxScarlettFileSystem.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Unix/UnixNetwork.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4Network.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Win32/Win32Network.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Win32/Win32Network.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -44,7 +44,6 @@ public class Platform : EngineModule
|
||||
options.Libraries.Add("Dwmapi.dll");
|
||||
}
|
||||
break;
|
||||
case TargetPlatform.XboxOne:
|
||||
case TargetPlatform.UWP:
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Win32"));
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "UWP"));
|
||||
@@ -57,7 +56,11 @@ public class Platform : EngineModule
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Unix"));
|
||||
options.SourcePaths.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "PS4", "Engine", "Platform"));
|
||||
break;
|
||||
case TargetPlatform.XboxScarlett:
|
||||
case TargetPlatform.XboxOne:
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Win32"));
|
||||
options.SourcePaths.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "XboxOne", "Engine", "Platform"));
|
||||
break;
|
||||
case TargetPlatform.XboxScarlett:
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Win32"));
|
||||
options.SourcePaths.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "XboxScarlett", "Engine", "Platform"));
|
||||
break;
|
||||
@@ -77,6 +80,7 @@ public class Platform : EngineModule
|
||||
options.SourceFiles.Add(Path.Combine(FolderPath, "UWP", "UWPPlatformSettings.h"));
|
||||
options.SourceFiles.Add(Path.Combine(FolderPath, "Linux", "LinuxPlatformSettings.h"));
|
||||
options.SourceFiles.Add(Path.Combine(FolderPath, "Android", "AndroidPlatformSettings.h"));
|
||||
AddSourceFileIfExists(options, Path.Combine(Globals.EngineRoot, "Source", "Platforms", "XboxOne", "Engine", "Platform", "XboxOnePlatformSettings.h"));
|
||||
AddSourceFileIfExists(options, Path.Combine(Globals.EngineRoot, "Source", "Platforms", "XboxScarlett", "Engine", "Platform", "XboxScarlettPlatformSettings.h"));
|
||||
AddSourceFileIfExists(options, Path.Combine(Globals.EngineRoot, "Source", "Platforms", "PS4", "Engine", "Platform", "PS4PlatformSettings.h"));
|
||||
AddSourceFileIfExists(options, Path.Combine(Globals.EngineRoot, "Source", "Platforms", "Switch", "Engine", "Platform", "SwitchPlatformSettings.h"));
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#include "Linux/LinuxPlatform.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4Platform.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Platforms/XboxOne/Engine/Platform/XboxOnePlatform.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Platforms/XboxScarlett/Engine/Platform/XboxScarlettPlatform.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Linux/LinuxThread.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4Thread.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Win32/Win32Thread.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Win32/Win32Thread.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
@@ -93,6 +93,28 @@ class PS4Window;
|
||||
typedef PS4Window Window;
|
||||
class PS4Network;
|
||||
typedef PS4Network Network;
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
|
||||
class ClipboardBase;
|
||||
typedef ClipboardBase Clipboard;
|
||||
class Win32CriticalSection;
|
||||
typedef Win32CriticalSection CriticalSection;
|
||||
class Win32ConditionVariable;
|
||||
typedef Win32ConditionVariable ConditionVariable;
|
||||
class XboxOneFileSystem;
|
||||
typedef XboxOneFileSystem FileSystem;
|
||||
class FileSystemWatcherBase;
|
||||
typedef FileSystemWatcherBase FileSystemWatcher;
|
||||
class Win32File;
|
||||
typedef Win32File File;
|
||||
class XboxOnePlatform;
|
||||
typedef XboxOnePlatform Platform;
|
||||
class Win32Thread;
|
||||
typedef Win32Thread Thread;
|
||||
class XboxOneWindow;
|
||||
typedef XboxOneWindow Window;
|
||||
class NetworkBase;
|
||||
typedef NetworkBase Network;
|
||||
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
#include "../Win32/Win32Defines.h"
|
||||
|
||||
// Platform description
|
||||
#if PLATFORM_XBOX_ONE
|
||||
#define PLATFORM_TYPE PlatformType::XboxOne
|
||||
#else
|
||||
#define PLATFORM_TYPE PlatformType::UWP
|
||||
#endif
|
||||
|
||||
// Use AOT for Mono
|
||||
#define USE_MONO_AOT 1
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#endif
|
||||
|
||||
// Override for Xbox Scarlett
|
||||
#if PLATFORM_XBOX_SCARLETT
|
||||
#if PLATFORM_XBOX_SCARLETT || PLATFORM_XBOX_ONE
|
||||
#define NOBITMAP
|
||||
#define NOMCX
|
||||
#define NOSERVICE
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "Linux/LinuxWindow.h"
|
||||
#elif PLATFORM_PS4
|
||||
#include "Platforms/PS4/Engine/Platform/PS4Window.h"
|
||||
#elif PLATFORM_XBOX_ONE
|
||||
#include "Platforms/XboxOne/Engine/Platform/XboxOneWindow.h"
|
||||
#elif PLATFORM_XBOX_SCARLETT
|
||||
#include "Platforms/XboxScarlett/Engine/Platform/XboxScarlettWindow.h"
|
||||
#elif PLATFORM_ANDROID
|
||||
|
||||
Reference in New Issue
Block a user