Skip to content

Commit

Permalink
more swaps to /MD and disabling LTCG [libogg, libopus]
Browse files Browse the repository at this point in the history
  • Loading branch information
ixchow committed Sep 21, 2021
1 parent 85673c2 commit 314555a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rebuild-libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [
('<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>','')
('<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>',''),
(">MultiThreaded<", ">MultiThreadedDLL<"),
("<WholeProgramOptimization>true</WholeProgramOptimization>",
"<WholeProgramOptimization>false</WholeProgramOptimization>")
])
run_command([
"msbuild", "/m",
Expand Down Expand Up @@ -490,6 +493,9 @@ def build_libopus():
replace_in_file(lib_dir + "/win32/VS2015/opus.vcxproj", [
('<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>','')
])
replace_in_file(lib_dir + "/win32/VS2015/common.props", [
('>MultiThreaded<','>MultiThreadedDLL<')
])
run_command([
"msbuild", "/m",
"opus.sln",
Expand Down Expand Up @@ -741,9 +747,9 @@ def build_opustools():
])
replace_in_file(lib_dir + "/win32/VS2015/common.props", [
(">MultiThreaded<", ">MultiThreadedDLL<"),
("<WholeProgramOptimization>true</WholeProgramOptimization>",
"<WholeProgramOptimization>false</WholeProgramOptimization>"),
])


run_command([
"msbuild", "/m",
"opus-tools.sln",
Expand Down

0 comments on commit 314555a

Please sign in to comment.