From 78bbd75ce02ce7e64bc4dc9c53e820b90f1470e7 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Tue, 3 Sep 2024 17:00:42 +0100 Subject: [PATCH] Update buildscriopts. Add windows ARM64 support --- build/BuildWindowsTask.cs | 13 +++++++++++-- buildscripts | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build/BuildWindowsTask.cs b/build/BuildWindowsTask.cs index 5cbdcef..c6e7a0a 100644 --- a/build/BuildWindowsTask.cs +++ b/build/BuildWindowsTask.cs @@ -11,13 +11,22 @@ public sealed class BuildWindowsTask : FrostingTask public override void Run(BuildContext context) { // Build - var buildDir = "sdl/build"; + var buildDir = "sdl/build_x64"; context.CreateDirectory(buildDir); context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildDir, Arguments = "-A x64 -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded ../" }); context.StartProcess("msbuild", new ProcessSettings { WorkingDirectory = buildDir, Arguments = "SDL2.sln /p:Configuration=Release" }); // Copy artifact context.CreateDirectory(context.ArtifactsDir); - context.CopyFile("sdl/build/Release/SDL2.dll", $"{context.ArtifactsDir}/SDL2.dll"); + context.CopyFile("sdl/build_x64/Release/SDL2.dll", $"{context.ArtifactsDir}/win-x64/SDL2.dll"); + + buildDir = "sdl/build_arm64"; + context.CreateDirectory(buildDir); + context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildDir, Arguments = "-A ARM64 -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded ../" }); + context.StartProcess("msbuild", new ProcessSettings { WorkingDirectory = buildDir, Arguments = "SDL2.sln /p:Configuration=Release" }); + + // Copy artifact + context.CreateDirectory(context.ArtifactsDir); + context.CopyFile("sdl/build_arm64/Release/SDL2.dll", $"{context.ArtifactsDir}/win-arm64/SDL2.dll"); } } diff --git a/buildscripts b/buildscripts index 158f1c1..2fb638c 160000 --- a/buildscripts +++ b/buildscripts @@ -1 +1 @@ -Subproject commit 158f1c19b278e3dae5ed123002d7e5cf847d2bd8 +Subproject commit 2fb638cda1d0f0502cc23e4513d812687aa4053e