mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Build Box2D with BuildTool
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using SimpleExec;
|
||||
|
||||
namespace BuildTool.Modules;
|
||||
|
||||
class ScriptCoreModule : Module
|
||||
{
|
||||
public static readonly string ModuleName = "ScriptCore";
|
||||
|
||||
public override string Name => ModuleName;
|
||||
|
||||
public override List<Type> DependencyTypes => [typeof(SetupNethostModule), typeof(BeefWorkspaceModule)];
|
||||
|
||||
public override async Task<bool> Run(BuildInfo buildInfo)
|
||||
{
|
||||
string projectFile = Path.Join(buildInfo.WorkingDirectory.WorkspaceRoot, "ScriptCore/ScriptCore.csproj");
|
||||
|
||||
if (buildInfo.BuildDebug)
|
||||
{
|
||||
await Command.RunAsync("dotnet", $"build \"{projectFile}\" -c Debug");
|
||||
}
|
||||
|
||||
if (buildInfo.BuildRelease)
|
||||
{
|
||||
await Command.RunAsync("dotnet", $"build \"{projectFile}\" -c Release");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user