|
| 1 | +using Sharpmake; |
| 2 | +using System; |
| 3 | +using System.IO; |
| 4 | + |
| 5 | +namespace VoltSharpmake |
| 6 | +{ |
| 7 | + [Sharpmake.Generate] |
| 8 | + public class ECSCircuitSandbox : CommonVoltExeProject |
| 9 | + { |
| 10 | + public ECSCircuitSandbox() |
| 11 | + { |
| 12 | + Name = "ECSCircuitSandbox"; |
| 13 | + } |
| 14 | + |
| 15 | + public override void ConfigureAll(Configuration conf, CommonTarget target) |
| 16 | + { |
| 17 | + base.ConfigureAll(conf, target); |
| 18 | + |
| 19 | + conf.SolutionFolder = ""; |
| 20 | + |
| 21 | + conf.PrecompHeader = "ecscsbpch.h"; |
| 22 | + conf.PrecompSource = "ecscsbpch.cpp"; |
| 23 | + |
| 24 | + conf.VcxprojUserFile = new Configuration.VcxprojUserFileSettings |
| 25 | + { |
| 26 | + LocalDebuggerWorkingDirectory = Globals.EngineDirectory, |
| 27 | + LocalDebuggerCommandArguments = Globals.VtProjectFilePath |
| 28 | + }; |
| 29 | + |
| 30 | + conf.AddPrivateDependency<VoltEntryPoint>(target); |
| 31 | + conf.AddPrivateDependency<VoltApplication>(target); |
| 32 | + conf.AddPrivateDependency<PlatformsModule>(target); |
| 33 | + |
| 34 | + conf.AddPrivateDependency<ECSCircuit>(target); |
| 35 | + |
| 36 | + conf.AddPrivateDependency<EventSystemModule>(target); |
| 37 | + conf.AddPrivateDependency<InputModule>(target); |
| 38 | + conf.AddPrivateDependency<WindowModule>(target); |
| 39 | + conf.AddPrivateDependency<RHIModule>(target); |
| 40 | + conf.AddPrivateDependency<JobSystemModule>(target); |
| 41 | + conf.AddPrivateDependency<SubSystemModule>(target); |
| 42 | + |
| 43 | + conf.AddPrivateDependency<glm>(target); |
| 44 | + |
| 45 | + Type gameProjectType = Type.GetType("VoltSharpmake.Game"); |
| 46 | + if (gameProjectType != null) |
| 47 | + { |
| 48 | + conf.AddPrivateDependency(target, gameProjectType); |
| 49 | + } |
| 50 | + |
| 51 | + conf.AddPrivateDependency<CrashReportClient>(target, DependencySetting.OnlyBuildOrder); |
| 52 | + |
| 53 | + conf.AdditionalDebuggerCommands = Path.Combine(Globals.VtProjectDirectory, @"Project.vtproj"); |
| 54 | + |
| 55 | + |
| 56 | + conf.IncludePaths.Add("Public/ECSCircuitSandbox"); |
| 57 | + conf.IncludePaths.Add("Private/ECSCircuitSandbox"); |
| 58 | + } |
| 59 | + |
| 60 | + public override void ConfigureWin64(Configuration conf, CommonTarget target) |
| 61 | + { |
| 62 | + base.ConfigureWin64(conf, target); |
| 63 | + |
| 64 | + conf.LibraryFiles.Add( |
| 65 | + "crypt32.lib", |
| 66 | + "Bcrypt.lib", |
| 67 | + |
| 68 | + "Winmm.lib", |
| 69 | + "Version.lib", |
| 70 | + "ws2_32.lib" |
| 71 | + ); |
| 72 | + } |
| 73 | + |
| 74 | + public override void ConfigureMSVC(Configuration conf, CommonTarget target) |
| 75 | + { |
| 76 | + base.ConfigureMSVC(conf, target); |
| 77 | + |
| 78 | + conf.Options.Add(new Sharpmake.Options.Vc.Compiler.DisableSpecificWarnings("4098","4217")); |
| 79 | + } |
| 80 | + } |
| 81 | +} |
0 commit comments