Support ARM64 architecture under Windows
This commit is contained in:
@@ -286,11 +286,24 @@ namespace Flax.Build
|
||||
var subdir = "Binaries/Editor/";
|
||||
switch (Platform.BuildTargetPlatform)
|
||||
{
|
||||
case TargetPlatform.Windows: return subdir + "Win64";
|
||||
case TargetPlatform.Windows:
|
||||
{
|
||||
switch (Platform.BuildTargetArchitecture)
|
||||
{
|
||||
case TargetArchitecture.x64:
|
||||
return subdir + "Win64";
|
||||
case TargetArchitecture.x86:
|
||||
return subdir + "Win32";
|
||||
case TargetArchitecture.ARM64:
|
||||
return subdir + "ARM64";
|
||||
default:
|
||||
throw new NotImplementedException($"{Platform.BuildTargetPlatform}: {Platform.BuildTargetArchitecture}");
|
||||
}
|
||||
}
|
||||
case TargetPlatform.Linux: return subdir + "Linux";
|
||||
case TargetPlatform.Mac: return subdir + "Mac";
|
||||
}
|
||||
throw new NotImplementedException();
|
||||
throw new NotImplementedException(Platform.BuildTargetPlatform.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -306,7 +319,7 @@ namespace Flax.Build
|
||||
|
||||
switch (targetPlatform)
|
||||
{
|
||||
case TargetPlatform.Windows: return targetArchitecture == TargetArchitecture.x64 || targetArchitecture == TargetArchitecture.x86;
|
||||
case TargetPlatform.Windows: return targetArchitecture == TargetArchitecture.x64 || targetArchitecture == TargetArchitecture.x86 || targetArchitecture == TargetArchitecture.ARM64;
|
||||
case TargetPlatform.XboxScarlett: return targetArchitecture == TargetArchitecture.x64;
|
||||
case TargetPlatform.XboxOne: return targetArchitecture == TargetArchitecture.x64;
|
||||
case TargetPlatform.UWP: return targetArchitecture == TargetArchitecture.x64;
|
||||
|
||||
Reference in New Issue
Block a user