Jarle,
I'm new to gyp as well and had a similar problem. The lines in question to change how all webrtc libraries use the runtime can be found in \build\common.gypi. For example, I changed the values from:
'conditions': [
['OS=="win" and component=="shared_library"', {
'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL)
'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL)
}, {
# sckime edit
'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
}],
],
to
'conditions': [
['OS=="win" and component=="shared_library"', {
'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL)
'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL)
}, {
# sckime edit
'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL)
'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL)
}],
],
This will update the project files if you call the following batch file from the trunk:
gclient runhooks --force