Add basis universal and Web build support for macOS
This commit is contained in:
@@ -137,6 +137,7 @@ namespace FlaxEditor.Windows
|
||||
case BuildPlatform.MacOSARM64:
|
||||
case BuildPlatform.iOSARM64:
|
||||
case BuildPlatform.AndroidARM64:
|
||||
case BuildPlatform.Web:
|
||||
IsSupported = true;
|
||||
break;
|
||||
default:
|
||||
|
||||
BIN
Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libbasisu_encoder.a
LFS
vendored
Normal file
BIN
Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libbasisu_encoder.a
LFS
vendored
Normal file
Binary file not shown.
BIN
Source/Platforms/Mac/Binaries/ThirdParty/x64/libbasisu_encoder.a
LFS
vendored
Normal file
BIN
Source/Platforms/Mac/Binaries/ThirdParty/x64/libbasisu_encoder.a
LFS
vendored
Normal file
Binary file not shown.
@@ -18,6 +18,7 @@ public class basis_universal : EngineDepsModule
|
||||
case TargetPlatform.Windows:
|
||||
case TargetPlatform.Web:
|
||||
case TargetPlatform.Linux:
|
||||
case TargetPlatform.Mac:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
@@ -30,6 +30,11 @@ namespace Flax.Deps.Dependencies
|
||||
{
|
||||
TargetPlatform.Linux,
|
||||
};
|
||||
case TargetPlatform.Mac:
|
||||
return new[]
|
||||
{
|
||||
TargetPlatform.Mac,
|
||||
};
|
||||
default:
|
||||
return new TargetPlatform[0];
|
||||
}
|
||||
@@ -55,6 +60,12 @@ namespace Flax.Deps.Dependencies
|
||||
{
|
||||
TargetArchitecture.x64,
|
||||
};
|
||||
case TargetPlatform.Mac:
|
||||
return new[]
|
||||
{
|
||||
TargetArchitecture.x64,
|
||||
TargetArchitecture.ARM64,
|
||||
};
|
||||
default:
|
||||
return new TargetArchitecture[0];
|
||||
}
|
||||
@@ -137,6 +148,7 @@ namespace Flax.Deps.Dependencies
|
||||
break;
|
||||
}
|
||||
case TargetPlatform.Linux:
|
||||
case TargetPlatform.Mac:
|
||||
{
|
||||
cmakeArgs = ".. " + cmakeArgs;
|
||||
RunCmake(buildDir, platform, architecture, cmakeArgs);
|
||||
|
||||
@@ -115,6 +115,8 @@ namespace Flax.Build.Platforms
|
||||
|
||||
private void AddSharedArgs(List<string> args, BuildOptions options, bool debugInformation, bool optimization)
|
||||
{
|
||||
args.Add("-Wno-experimental");
|
||||
|
||||
if (debugInformation)
|
||||
args.Add("-g2");
|
||||
else
|
||||
@@ -289,7 +291,6 @@ namespace Flax.Build.Platforms
|
||||
args.AddRange(options.LinkEnv.CustomArgs);
|
||||
{
|
||||
args.Add(string.Format("-o \"{0}\"", outputFilePath.Replace('\\', '/')));
|
||||
args.Add("-Wno-experimental");
|
||||
|
||||
// Debug options
|
||||
//args.Add("--minify=0");
|
||||
|
||||
Reference in New Issue
Block a user