Merge remote-tracking branch 'origin/master' into sdl_platform
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user