Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Add default linking for VS build. (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
taste1981 authored Jul 12, 2021
1 parent a0e63da commit fa8b907
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions talk/owt/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ static_library("owt_sdk_base") {
}
}

if (owt_use_openssl) {
defines += [ "OWT_USE_OPENSSL" ]
}

if (is_win || is_linux) {
# Custom audio/video input and output.
# When rebasing libwebrtc to a new version, custom audio/video input/output
Expand Down
30 changes: 30 additions & 0 deletions talk/owt/sdk/base/peerconnectiondependencyfactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,36 @@
#endif
#include "owt/base/clientconfiguration.h"
#include "owt/base/globalconfiguration.h"

#if defined(WEBRTC_WIN) && defined(_MSC_VER)
#pragma comment(lib, "crypt32.lib")
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "secur32.lib")
#pragma comment(lib, "dmoguids.lib")
#pragma comment(lib, "msdmo.lib")
#pragma comment(lib, "wmcodecdspuuid.lib")
#pragma comment(lib, "amstrmid.lib")
#pragma comment(lib, "strmiids.lib")
#ifdef OWT_USE_MSDK
#pragma comment(lib, "mf.lib")
#pragma comment(lib, "mfplat.lib")
#pragma comment(lib, "mfuuid.lib")
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "dxva2.lib")
#pragma comment(lib, "dcomp.lib")
#pragma comment(lib, "libmfx_vs2015.lib")
#endif
#ifdef OWT_USE_OPENSSL
#pragma comment(lib, "libssl.lib")
#pragma comment(lib, "libcrypto.lib")
#endif
#ifdef OWT_ENABLE_QUIC
#pragma comment(lib, "owt_web_transport.dll.lib")
#endif
#endif

using namespace rtc;
namespace owt {
namespace base {
Expand Down

0 comments on commit fa8b907

Please sign in to comment.