| 13 | public class Editor : EditorModule |
| 14 | { |
| 15 | private void AddPlatformTools(BuildOptions options, string platformToolsRoot, string platformToolsRootExternal, string platform, params string[] macros) |
| 16 | { |
| 17 | if (Directory.Exists(Path.Combine(platformToolsRoot, platform))) |
| 18 | { |
| 19 | // Platform Tools bundled inside Editor module |
| 20 | options.PrivateDefinitions.AddRange(macros); |
| 21 | } |
| 22 | else |
| 23 | { |
| 24 | string externalPath = Path.Combine(platformToolsRootExternal, platform, "Editor", "PlatformTools"); |
| 25 | if (Directory.Exists(externalPath)) |
| 26 | { |
| 27 | // Platform Tools inside external platform implementation location |
| 28 | options.PrivateDefinitions.AddRange(macros); |
| 29 | options.SourcePaths.Add(externalPath); |
| 30 | AddSourceFileIfExists(options, Path.Combine(Globals.EngineRoot, "Source", "Platforms", platform, "Engine", "Platform", platform + "PlatformSettings.cs")); |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /// <inheritdoc /> |
| 36 | public override void Setup(BuildOptions options) |