From 314555a8d488f20a82df2c7bdc6b4745dacfb004 Mon Sep 17 00:00:00 2001 From: Jim McCann Date: Tue, 21 Sep 2021 17:09:17 -0400 Subject: [PATCH] more swaps to /MD and disabling LTCG [libogg, libopus] --- rebuild-libs.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rebuild-libs.py b/rebuild-libs.py index 569596d..33f9c65 100755 --- a/rebuild-libs.py +++ b/rebuild-libs.py @@ -421,7 +421,10 @@ def build_libogg(): if target == 'windows': #patch vcxproj to remove "WindowsTargetPlatformVersion" key: replace_in_file(lib_dir + "/win32/VS2015/libogg.vcxproj", [ - ('8.1','') + ('8.1',''), + (">MultiThreaded<", ">MultiThreadedDLL<"), + ("true", + "false") ]) run_command([ "msbuild", "/m", @@ -490,6 +493,9 @@ def build_libopus(): replace_in_file(lib_dir + "/win32/VS2015/opus.vcxproj", [ ('8.1','') ]) + replace_in_file(lib_dir + "/win32/VS2015/common.props", [ + ('>MultiThreaded<','>MultiThreadedDLL<') + ]) run_command([ "msbuild", "/m", "opus.sln", @@ -741,9 +747,9 @@ def build_opustools(): ]) replace_in_file(lib_dir + "/win32/VS2015/common.props", [ (">MultiThreaded<", ">MultiThreadedDLL<"), + ("true", + "false"), ]) - - run_command([ "msbuild", "/m", "opus-tools.sln",