mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
make it work with nuke
This commit is contained in:
parent
7629cac8af
commit
87525091c9
7 changed files with 97 additions and 43 deletions
|
|
@ -47,6 +47,14 @@ public class DalamudBuild : NukeBuild
|
|||
AbsolutePath TestProjectDir => RootDirectory / "Dalamud.Test";
|
||||
AbsolutePath TestProjectFile => TestProjectDir / "Dalamud.Test.csproj";
|
||||
|
||||
AbsolutePath ExternalsDir => RootDirectory / "external";
|
||||
AbsolutePath CImGuiDir => ExternalsDir / "cimgui";
|
||||
AbsolutePath CImGuiProjectFile => CImGuiDir / "cimgui.vcxproj";
|
||||
AbsolutePath CImPlotDir => ExternalsDir / "cimplot";
|
||||
AbsolutePath CImPlotProjectFile => CImPlotDir / "cimplot.vcxproj";
|
||||
AbsolutePath CImGuizmoDir => ExternalsDir / "cimguizmo";
|
||||
AbsolutePath CImGuizmoProjectFile => CImGuizmoDir / "cimguizmo.vcxproj";
|
||||
|
||||
AbsolutePath ArtifactsDirectory => RootDirectory / "bin" / Configuration;
|
||||
|
||||
private static AbsolutePath LibraryDirectory => RootDirectory / "lib";
|
||||
|
|
@ -59,9 +67,42 @@ public class DalamudBuild : NukeBuild
|
|||
DotNetTasks.DotNetRestore(s => s
|
||||
.SetProjectFile(Solution));
|
||||
});
|
||||
|
||||
|
||||
Target CompileCImGui => _ => _
|
||||
.Executes(() =>
|
||||
{
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetTargetPath(CImGuiProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargetPlatform(MSBuildTargetPlatform.x64));
|
||||
});
|
||||
|
||||
Target CompileCImPlot => _ => _
|
||||
.Executes(() =>
|
||||
{
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetTargetPath(CImPlotProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargetPlatform(MSBuildTargetPlatform.x64));
|
||||
});
|
||||
|
||||
Target CompileCImGuizmo => _ => _
|
||||
.Executes(() =>
|
||||
{
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetTargetPath(CImGuizmoProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargetPlatform(MSBuildTargetPlatform.x64));
|
||||
});
|
||||
|
||||
Target CompileImGuiNatives => _ => _
|
||||
.DependsOn(CompileCImGui)
|
||||
.DependsOn(CompileCImPlot)
|
||||
.DependsOn(CompileCImGuizmo);
|
||||
|
||||
Target CompileDalamud => _ => _
|
||||
.DependsOn(Restore)
|
||||
.DependsOn(CompileImGuiNatives)
|
||||
.Executes(() =>
|
||||
{
|
||||
DotNetTasks.DotNetBuild(s =>
|
||||
|
|
@ -138,6 +179,21 @@ public class DalamudBuild : NukeBuild
|
|||
Target Clean => _ => _
|
||||
.Executes(() =>
|
||||
{
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetProjectFile(CImGuiProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargets("Clean"));
|
||||
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetProjectFile(CImPlotProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargets("Clean"));
|
||||
|
||||
MSBuildTasks.MSBuild(s => s
|
||||
.SetProjectFile(CImGuizmoProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.SetTargets("Clean"));
|
||||
|
||||
DotNetTasks.DotNetClean(s => s
|
||||
.SetProject(DalamudProjectFile)
|
||||
.SetConfiguration(Configuration));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue