removal of old XboxOneStuff
This commit is contained in:
@@ -56,10 +56,10 @@ namespace Flax.Build.Platforms
|
||||
switch (platform)
|
||||
{
|
||||
case TargetPlatform.Windows: return GetSDKs().Count != 0;
|
||||
case TargetPlatform.XboxOne:
|
||||
case TargetPlatform.UWP: return GetSDKs().FirstOrDefault(x => x.Key != WindowsPlatformSDK.v8_1).Value != null;
|
||||
case TargetPlatform.PS4: return Sdk.HasValid("PS4Sdk");
|
||||
case TargetPlatform.XboxScarlett: return GetSDKs().ContainsKey(WindowsPlatformSDK.v10_0_19041_0) && Sdk.HasValid("GDK");
|
||||
case TargetPlatform.XboxOne:
|
||||
case TargetPlatform.XboxScarlett: return GetSDKs().ContainsKey(WindowsPlatformSDK.v10_0_19041_0) && Sdk.HasValid("GDK");
|
||||
case TargetPlatform.Android: return AndroidSdk.Instance.IsValid && AndroidNdk.Instance.IsValid;
|
||||
case TargetPlatform.Switch: return Sdk.HasValid("SwitchSdk");
|
||||
default: return false;
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using Flax.Build.Projects;
|
||||
|
||||
namespace Flax.Build.Platforms
|
||||
{
|
||||
/// <summary>
|
||||
/// The Xbox One platform implementation.
|
||||
/// </summary>
|
||||
/// <seealso cref="Platform" />
|
||||
/// <seealso cref="UWPPlatform" />
|
||||
public sealed class XboxOnePlatform : UWPPlatform, IProjectCustomizer
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override TargetPlatform Target => TargetPlatform.XboxOne;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool HasSharedLibrarySupport => false;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="XboxOnePlatform"/> class.
|
||||
/// </summary>
|
||||
public XboxOnePlatform()
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override Toolchain CreateToolchain(TargetArchitecture architecture)
|
||||
{
|
||||
return new XboxOneToolchain(this, architecture);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
void IProjectCustomizer.GetSolutionArchitectureName(TargetArchitecture architecture, ref string name)
|
||||
{
|
||||
name = "XboxOne";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using Flax.Build.NativeCpp;
|
||||
|
||||
namespace Flax.Build.Platforms
|
||||
{
|
||||
/// <summary>
|
||||
/// The Xbox One toolchain implementation.
|
||||
/// </summary>
|
||||
/// <seealso cref="Toolchain" />
|
||||
/// <seealso cref="Flax.Build.Platforms.WindowsToolchainBase" />
|
||||
public sealed class XboxOneToolchain : UWPToolchain
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="XboxOneToolchain"/> class.
|
||||
/// </summary>
|
||||
/// <param name="platform">The platform.</param>
|
||||
/// <param name="architecture">The target architecture.</param>
|
||||
public XboxOneToolchain(XboxOnePlatform platform, TargetArchitecture architecture)
|
||||
: base(platform, architecture)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void SetupEnvironment(BuildOptions options)
|
||||
{
|
||||
base.SetupEnvironment(options);
|
||||
|
||||
options.CompileEnv.PreprocessorDefinitions.Add("PLATFORM_XBOX_ONE");
|
||||
//options.CompileEnv.PreprocessorDefinitions.Add("_XBOX_ONE");
|
||||
options.CompileEnv.PreprocessorDefinitions.Add("PX_FOUNDATION_DLL=0"); // TODO: let Physics module decide about PhysX deploy mode
|
||||
options.CompileEnv.PreprocessorDefinitions.Add("WINAPI_FAMILY=WINAPI_FAMILY_PC_APP");
|
||||
options.CompileEnv.PreprocessorDefinitions.Add("_WINRT_DLL");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user