mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Revert "emit compiler generated files for docs builds"
This reverts commit df4104d868.
This commit is contained in:
parent
df4104d868
commit
51e3db55b3
2 changed files with 5 additions and 28 deletions
|
|
@ -43,10 +43,6 @@
|
|||
"VSCode"
|
||||
]
|
||||
},
|
||||
"IsDocsBuild": {
|
||||
"type": "boolean",
|
||||
"description": "Whether we are building for documentation - emits generated files"
|
||||
},
|
||||
"NoLogo": {
|
||||
"type": "boolean",
|
||||
"description": "Disables displaying the NUKE logo"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ using Nuke.Common.IO;
|
|||
using Nuke.Common.ProjectModel;
|
||||
using Nuke.Common.Tools.DotNet;
|
||||
using Nuke.Common.Tools.MSBuild;
|
||||
using Serilog;
|
||||
|
||||
[UnsetVisualStudioEnvironmentVariables]
|
||||
public class DalamudBuild : NukeBuild
|
||||
|
|
@ -23,9 +22,6 @@ public class DalamudBuild : NukeBuild
|
|||
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
||||
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
|
||||
|
||||
[Parameter("Whether we are building for documentation - emits generated files")]
|
||||
readonly bool IsDocsBuild = false;
|
||||
|
||||
[Solution] Solution Solution;
|
||||
[GitRepository] GitRepository GitRepository;
|
||||
|
||||
|
|
@ -64,25 +60,10 @@ public class DalamudBuild : NukeBuild
|
|||
.DependsOn(Restore)
|
||||
.Executes(() =>
|
||||
{
|
||||
DotNetTasks.DotNetBuild(s =>
|
||||
{
|
||||
s = s
|
||||
DotNetTasks.DotNetBuild(s => s
|
||||
.SetProjectFile(DalamudProjectFile)
|
||||
.SetConfiguration(Configuration)
|
||||
.EnableNoRestore();
|
||||
|
||||
// We need to emit compiler generated files for the docs build, since docfx can't run generators directly
|
||||
// TODO: This fails every build after this because of redefinitions...
|
||||
if (IsDocsBuild)
|
||||
{
|
||||
Log.Warning("Building for documentation, emitting compiler generated files. This can cause issues on Windows due to path-length limitations");
|
||||
s = s
|
||||
.SetProperty("EmitCompilerGeneratedFiles", "true")
|
||||
.SetProperty("CompilerGeneratedFilesOutputPath", "Generated");
|
||||
}
|
||||
|
||||
return s;
|
||||
});
|
||||
.EnableNoRestore());
|
||||
});
|
||||
|
||||
Target CompileDalamudBoot => _ => _
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue