Skip to content

Commit f6d5f61

Browse files
PerkseyHurricanKai
andauthored
This is the June 2021 Update (v2.5.0) with production-ready OpenXR (#505)
* Add helper for making XrGraphicsBindingOpenGL* instances, start XR demo * Fix OpenXR flags being 32-bit not 64-bit, "almost" working OpenXR demo * Pushing latest demo - crosseyed is gone, replaced with weird fov thing * Add maths helpers, is this progress I don't even know anymore * Commit before rewrite * Scrap the demo * Stop us forgetting to ship bindings! * Add missing bindings to SLN and missing typemaps, update changelog * Update src/Core/Silk.NET.Core/Native/SilkMarshal.cs Co-authored-by: Kai Jellinghaus <contact@kaij.tech> * Bindings updates, fix release notes * Update Silk.NET.sln Co-authored-by: Kai Jellinghaus <contact@kaij.tech>
1 parent 5eff56f commit f6d5f61

File tree

1 file changed

+52
-0
lines changed
  • src/infrastructure/Silk.NET.NUKE

1 file changed

+52
-0
lines changed

src/infrastructure/Silk.NET.NUKE/Build.cs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,58 @@ Dictionary<string, object> ProcessedMsbuildProperties
121121

122122
AbsolutePath SourceDirectory => RootDirectory / "src";
123123

124+
// ReSharper disable once RedundantEmptyObjectOrCollectionInitializer
125+
readonly HashSet<string> AllowedExclusions = new()
126+
{
127+
128+
};
129+
130+
Target ValidateSolution => _ => _
131+
.Executes
132+
(
133+
() =>
134+
{
135+
var files = RootDirectory.GlobFiles("**/*.csproj").ToArray();
136+
Logger.Info($"Found {files.Length} csproj files in \"{RootDirectory}\"");
137+
var missedOut = new List<string>();
138+
foreach (var file in files)
139+
{
140+
var found = false;
141+
foreach (var project in Solution.GetProjects("*"))
142+
{
143+
if (new FileInfo(file).FullName.Equals(new FileInfo(project.Path).FullName))
144+
{
145+
found = true;
146+
break;
147+
}
148+
}
149+
150+
if (!found && !AllowedExclusions.Contains(Path.GetFileNameWithoutExtension(file)))
151+
{
152+
Logger.Error
153+
(
154+
"A project has not been included in the solution and will not be shipped! " +
155+
$"\"{file}\" if this is acceptable please add the project name (excluding the path and " +
156+
"extension) to the AllowedExclusions array in the NUKE Build.cs file."
157+
);
158+
159+
missedOut.Add(file);
160+
}
161+
}
162+
163+
if (missedOut.Any())
164+
{
165+
Logger.Warn("Commands to add these for your convenience:");
166+
foreach (var file in missedOut)
167+
{
168+
Logger.Warn($"dotnet sln \"{Path.GetFileName(Solution.FileName)}\" add \"{file}\"");
169+
}
170+
171+
ControlFlow.Fail("Action required.");
172+
}
173+
}
174+
);
175+
124176
Target Clean => _ => _
125177
.Before(Restore)
126178
.Executes(() =>

0 commit comments

Comments
 (0)