Build Box2D with BuildTool

This commit is contained in:
Simon Lübeß
2026-04-11 17:28:04 +02:00
parent 3fd5452146
commit aabcd5f9b2
10 changed files with 243 additions and 155 deletions
@@ -0,0 +1,31 @@
using static SimpleExec.Command;
namespace BuildTool.Modules;
class GlitchyEngineHelperModule : Module
{
public static readonly string ModuleName = "GlitchyEngineHelper";
public override string Name => ModuleName;
public override List<Type> DependencyTypes => [];
public override async Task<bool> Run(BuildInfo buildInfo)
{
buildInfo.WorkingDirectory.NavigateFromWorkspaceRoot("GlitchyEngineHelper");
if (buildInfo.BuildDebug)
{
await RunAsync("cmake", "--preset x64-debug");
await RunAsync("cmake", "--build --preset x64-debug");
}
if (buildInfo.BuildRelease)
{
await RunAsync("cmake", "--preset x64-release");
await RunAsync("cmake", "--build --preset x64-release");
}
return true;
}
}