diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn index bcb3f2bcc1d..02571329f3b 100644 --- a/rtc_base/BUILD.gn +++ b/rtc_base/BUILD.gn @@ -21,11 +21,18 @@ if (!rtc_build_ssl) { include_dirs = [ rtc_ssl_root ] # WebRTC.Framework on iOS is a shared library. It checks symbol during building. - if (is_ios) { - libs = [ - "crypto", - "ssl", - ] + if (is_ios || is_component_build) { + if (is_win) { + libs = [ + "libcrypto.lib", + "libssl.lib", + ] + } else { + libs = [ + "crypto", + "ssl", + ] + } lib_dirs = [ rtc_ssl_root + "/../lib" ] } }