Merge remote-tracking branch 'origin/master' into sdl_platform

This commit is contained in:
2025-10-14 01:08:57 +03:00
292 changed files with 4020 additions and 1770 deletions

View File

@@ -290,6 +290,21 @@ namespace Flax.Deps
Utilities.Run("git", $"reset --hard {commit}", null, path, Utilities.RunOptions.DefaultTool);
}
/// <summary>
/// Gets the maximum concurrency level for a cmake command. See CMAKE_BUILD_PARALLEL_LEVEL or -j docs.
/// </summary>
public static string CmakeBuildParallel => Math.Min(Math.Max(1, (int)(Environment.ProcessorCount * Configuration.ConcurrencyProcessorScale)), Configuration.MaxConcurrency).ToString();
/// <summary>
/// Builds the cmake project.
/// </summary>
/// <param name="path">The path.</param>
/// <param name="envVars">Custom environment variables to pass to the child process.</param>
public static void BuildCmake(string path, Dictionary<string, string> envVars)
{
BuildCmake(path, "Release", envVars);
}
/// <summary>
/// Builds the cmake project.
/// </summary>