Compare commits
No commits in common. "cce6e009604fdae0eec45f326dea5dbac38087a6" and "7a81026ca527f26c415a3ece102ed0df4e162ac9" have entirely different histories.
cce6e00960
...
7a81026ca5
@ -37,15 +37,12 @@ public void Run(BuildArgs args)
|
|||||||
CollectAssetFiles(absContentPath, absContentPath, ref contentFiles);
|
CollectAssetFiles(absContentPath, absContentPath, ref contentFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contentFiles.Count > 0)
|
|
||||||
{
|
|
||||||
string importPath = $"{args.ProjectPath}/{PathUtil.ImportFolderName}";
|
string importPath = $"{args.ProjectPath}/{PathUtil.ImportFolderName}";
|
||||||
|
|
||||||
ParallelOptions parallelOptions = new ParallelOptions
|
ParallelOptions parallelOptions = new ParallelOptions
|
||||||
{
|
{
|
||||||
MaxDegreeOfParallelism = contentFiles.Count
|
MaxDegreeOfParallelism = contentFiles.Count
|
||||||
};
|
};
|
||||||
|
|
||||||
Parallel.ForEach(contentFiles, parallelOptions, relativeFile =>
|
Parallel.ForEach(contentFiles, parallelOptions, relativeFile =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -92,14 +89,13 @@ public void Run(BuildArgs args)
|
|||||||
Console.Error.WriteLine($"Import error on asset '{relativeFile}': {e.Message}");
|
Console.Error.WriteLine($"Import error on asset '{relativeFile}': {e.Message}");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine($"Build content completed in {stopwatch.Elapsed.TotalSeconds:F2} seconds");
|
Console.WriteLine($"Build content completed in {stopwatch.Elapsed.TotalSeconds:F2} seconds");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CopyLibs(string projectPath)
|
private void CopyLibs(string projectPath)
|
||||||
{
|
{
|
||||||
string libDir = $"{AppDomain.CurrentDomain.BaseDirectory}/../../Native/";
|
string libDir = $"{Directory.GetCurrentDirectory()}/../../Native/";
|
||||||
if (OperatingSystem.IsWindows())
|
if (OperatingSystem.IsWindows())
|
||||||
{
|
{
|
||||||
libDir += "x64";
|
libDir += "x64";
|
||||||
|
Loading…
Reference in New Issue
Block a user