Skip to content

Commit

Permalink
windows: set RuntimeLibrary for Debug and Release
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed May 21, 2024
1 parent 8902239 commit 85784ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/mediasoup-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
matrix:
ci:
- os: ubuntu-20.04
node: 18
- os: ubuntu-22.04
node: 20
- os: macos-12
node: 18
- os: macos-14
node: 20
# - os: ubuntu-20.04
# node: 18
# - os: ubuntu-22.04
# node: 20
# - os: macos-12
# node: 18
# - os: macos-14
# node: 20
- os: windows-2022
node: 20
build-type:
Expand Down
17 changes: 14 additions & 3 deletions node/src/workerChannel/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'<(module_root_dir)/../../../worker/out/<(mediasoup_build_type)/build/libmediasoup-worker.a'
],
}, {
"libraries": [
'libraries': [
'<(mediasoup_worker_lib)'
],
}
Expand All @@ -31,6 +31,17 @@
'libraries': [
'Ws2_32.lib', 'Dbghelp.lib', 'Crypt32.lib', 'Userenv.lib',
],
'conditions': [
['mediasoup_build_type=="Release"', {
'variables': {
'runtime_library': '0',
},
}, {
'variables': {
'runtime_library': '1',
},
}],
],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
Expand All @@ -39,8 +50,8 @@
# 1 - MultiThreadedDebug (/MTd)
# 2 - MultiThreadedDLL (/MD)
# 3 - MultiThreadedDebugDLL (/MDd)
'RuntimeLibrary': 0,
'AdditionalOptions': [ '/MT' ],
'RuntimeLibrary': '<(runtime_library)',
# 'AdditionalOptions': [ '/MT' ],
},
'VCLinkerTool': {
'AdditionalOptions': ['/FORCE:MULTIPLE'],
Expand Down

0 comments on commit 85784ad

Please sign in to comment.