Switch impl progress

This commit is contained in:
Wojtek Figat
2021-03-11 17:22:06 +01:00
parent e09f4eb6dc
commit 4072796e54
7 changed files with 79 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ namespace Flax.Deps.Dependencies
TargetPlatform.PS4,
TargetPlatform.XboxScarlett,
TargetPlatform.Android,
TargetPlatform.Switch,
};
case TargetPlatform.Linux:
return new[]
@@ -166,6 +167,12 @@ namespace Flax.Deps.Dependencies
binariesPrefix = "lib";
suppressBitsPostfix = true;
break;
case TargetPlatform.Switch:
binariesSubDir = "switch64";
buildPlatform = "NX64";
suppressBitsPostfix = true;
binariesPrefix = "lib";
break;
default: throw new InvalidPlatformException(targetPlatform);
}
@@ -354,6 +361,12 @@ namespace Flax.Deps.Dependencies
Build(options, "android", platform, TargetArchitecture.ARM64);
break;
}
case TargetPlatform.Switch:
{
Utilities.DirectoryCopy(Path.Combine(options.PlatformsFolder, "Switch", "Data", "PhysX"), root, true, true);
Build(options, "switch64", platform, TargetArchitecture.ARM64);
break;
}
}
}