-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRegenerateBindings.ps1
More file actions
27 lines (23 loc) · 1.1 KB
/
RegenerateBindings.ps1
File metadata and controls
27 lines (23 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$script = {
# Regenerate bindings
dotnet run --project src/Core/Silk.NET.BuildTools generator.json --profile=FreeType
dotnet run --project src/Core/Silk.NET.BuildTools generator.json --profile=HarfBuzz
dotnet run --project src/Core/Silk.NET.BuildTools generator.json --profile=VulkanMemoryAllocator
dotnet run --project src/Core/Silk.NET.BuildTools generator.json --profile=Tracy
dotnet run --project src/Core/Silk.NET.BuildTools generator.json --profile=Slang
# Ensure solution contains only the relevant projects
nuke sln --projects Silk.NET.FreeType Silk.NET.HarfBuzz Silk.NET.Vulkan.Vma Silk.NET.Tracy Silk.NET.Slang
# Clear outputs folder
Remove-Item -Path "build\output_packages\*" -Recurse -Force
# Create NuGet packages for all bindings
# Increment versions before running this script
nuke pack --Configuration Release --msbuild-properties VersionSuffix=Exanite-3
# nuke pack --Configuration Debug --msbuild-properties VersionSuffix=Exanite-3-Debug-1
}
Push-Location -Path $PSScriptRoot/submodules/Silk.NET
try {
& $script
}
finally {
Pop-Location
}