|
17 | 17 | internal abstract class DesktopStandalonePostProcessor : DefaultBuildPostprocessor |
18 | 18 | { |
19 | 19 | readonly bool m_HasIl2CppPlayers; |
| 20 | + protected const string k_MonoDirectoryName = "MonoBleedingEdge"; |
20 | 21 |
|
21 | 22 | protected DesktopStandalonePostProcessor(bool hasIl2CppPlayers) |
22 | 23 | { |
@@ -395,13 +396,10 @@ protected static void RecordCommonFiles(BuildPostProcessArgs args, string variat |
395 | 396 | CommonRoles.builtInResources); |
396 | 397 |
|
397 | 398 | // Mark up each mono runtime |
398 | | - foreach (var monoName in new[] {"Mono", "MonoBleedingEdge"}) |
399 | | - { |
400 | | - args.report.RecordFilesAddedRecursive(Path.Combine(monoFolderRoot, monoName + "/EmbedRuntime"), |
401 | | - CommonRoles.monoRuntime); |
402 | | - args.report.RecordFilesAddedRecursive(Path.Combine(monoFolderRoot, monoName + "/etc"), |
403 | | - CommonRoles.monoConfig); |
404 | | - } |
| 399 | + args.report.RecordFilesAddedRecursive(Path.Combine(monoFolderRoot, k_MonoDirectoryName + "/EmbedRuntime"), |
| 400 | + CommonRoles.monoRuntime); |
| 401 | + args.report.RecordFilesAddedRecursive(Path.Combine(monoFolderRoot, k_MonoDirectoryName + "/etc"), |
| 402 | + CommonRoles.monoConfig); |
405 | 403 | } |
406 | 404 |
|
407 | 405 | private void CopyStagingAreaIntoBuildsFolder(BuildPostProcessArgs args) |
@@ -457,19 +455,14 @@ private static void CopyFilesToDestination(string source, string target, HashSet |
457 | 455 |
|
458 | 456 | protected abstract void DeleteDestination(BuildPostProcessArgs args); |
459 | 457 |
|
460 | | - protected static string GetMonoFolderName(ScriptingRuntimeVersion scriptingRuntimeVersion) |
461 | | - { |
462 | | - return "MonoBleedingEdge"; |
463 | | - } |
464 | | - |
465 | 458 | protected static bool UseMono => !UseIl2Cpp || IL2CPPUtils.UseIl2CppCodegenWithMonoBackend(BuildTargetGroup.Standalone); |
466 | 459 |
|
467 | 460 | protected static void DeleteUnusedMono(string dataFolder, BuildReport report) |
468 | 461 | { |
469 | 462 | // Mono is built by the il2cpp builder, so we dont need the libs copied |
470 | 463 | if (!UseMono) |
471 | 464 | { |
472 | | - var monoPath = Path.Combine(dataFolder, GetMonoFolderName(ScriptingRuntimeVersion.Latest)); |
| 465 | + var monoPath = Path.Combine(dataFolder, k_MonoDirectoryName); |
473 | 466 | FileUtil.DeleteFileOrDirectory(monoPath); |
474 | 467 | report.RecordFilesDeletedRecursive(monoPath); |
475 | 468 | } |
|
0 commit comments