diff --git a/video_engine/main/test/WindowsTest/windowstest.gyp b/video_engine/main/test/WindowsTest/windowstest.gyp index 486083f4ca..28d1432b8a 100644 --- a/video_engine/main/test/WindowsTest/windowstest.gyp +++ b/video_engine/main/test/WindowsTest/windowstest.gyp @@ -49,10 +49,16 @@ 'CaptureDevicePool.h', ], - 'configurations': { + 'configurations': { 'Common_Base': { 'msvs_configuration_attributes': { - 'UseOfMFC': '1', # Static + 'conditions': [ + ['component=="shared_library"', { + 'UseOfMFC': '2', # Shared DLL + },{ + 'UseOfMFC': '1', # Static + }], + ], }, }, }, diff --git a/voice_engine.gyp b/voice_engine.gyp index 4556e4572e..0587cd302d 100644 --- a/voice_engine.gyp +++ b/voice_engine.gyp @@ -163,7 +163,13 @@ 'configurations': { 'Common_Base': { 'msvs_configuration_attributes': { - 'UseOfMFC': '1', # Static + 'conditions': [ + ['component=="shared_library"', { + 'UseOfMFC': '2', # Shared DLL + },{ + 'UseOfMFC': '1', # Static + }], + ], }, }, },