From 66b0b6db3274937e556faa228ac68b2753d68afe Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:41:56 -0500 Subject: [PATCH] Ensure statically linked (#4) --- build/BuildWindowsTask.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/BuildWindowsTask.cs b/build/BuildWindowsTask.cs index b02df05..0d4e028 100644 --- a/build/BuildWindowsTask.cs +++ b/build/BuildWindowsTask.cs @@ -18,6 +18,9 @@ public override void Run(BuildContext context) PlatformTarget = PlatformTarget.x64 }; + // Ensure statically linked + context.ReplaceTextInFiles("freetype/builds/windows/vc2010/freetype.vcxproj", "MultiThreadedDLL", "MultiThreaded"); + context.MSBuild("freetype/builds/windows/vc2010/freetype.vcxproj", buildSettings); context.CopyFile("freetype-demos/bin/freetype.dll", $"{context.ArtifactsDir}/freetype.dll"); }