Skip to content

Commit

Permalink
Try to statically link windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 5, 2024
1 parent 52c375f commit 01b2c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public override void Run(BuildContext context)
var buildWorkingDir = "openal-soft/build_windows_x64";
context.CreateDirectory(buildWorkingDir);
context.CreateDirectory($"{context.ArtifactsDir}/win-x64/");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DALSOFT_TESTS=OFF -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL=OFF -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -A x64 .." });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DALSOFT_TESTS=OFF -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL=OFF -DFORCE_STATIC_VCRT=ON -A x64 .." });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" });
context.CopyFile(@"openal-soft/build_windows_x64/Release/OpenAL32.dll", $"{context.ArtifactsDir}/win-x64/openal.dll");

buildWorkingDir = "openal-soft/build_windows_arm64";
context.CreateDirectory(buildWorkingDir);
context.CreateDirectory($"{context.ArtifactsDir}/win-arm64/");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DALSOFT_TESTS=OFF -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL=OFF -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -A ARM64 .." });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DALSOFT_TESTS=OFF -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL=OFF -DFORCE_STATIC_VCRT=ON -A ARM64 .." });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" });
context.CopyFile(@"openal-soft/build_windows_arm64/Release/OpenAL32.dll", $"{context.ArtifactsDir}/win-arm64/openal.dll");
}
Expand Down

0 comments on commit 01b2c89

Please sign in to comment.