WebRTC C++ wrapper, which can be used in flutter desktop or packaged into other languages.
Used to generate C++ dynamic link library, suitable for package re-release, such as C#, Dart FFI, Rust
Use the https://github.com/webrtc-sdk/webrtc.git branch m97_release to compile.
mkdir webrtc_src_m97
cd webrtc_src_m97
solutions = [
{
"name" : 'src',
"url" : 'https://github.com/webrtc-sdk/webrtc.git@m97_release',
"deps_file" : 'DEPS',
"managed" : False,
"custom_deps" : {
},
"custom_vars": {},
},
]
target_os = ['win']
gclient sync
Confirm that it is currently in the src.
git clone https://github.com/webrtc-sdk/libwebrtc
diff --git a/BUILD.gn b/BUILD.gn
index e60d7dd0bd..b9b6acab8b 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -29,7 +29,7 @@ if (!build_with_chromium) {
# 'ninja default' and then 'ninja all', the second build should do no work.
group("default") {
testonly = true
- deps = [ ":webrtc" ]
+ deps = [ ":webrtc","//libwebrtc:libwebrtc", ]
if (rtc_build_examples) {
deps += [ "examples" ]
}set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2019
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
cd src
gn gen out-debug/Windows-x64 --args="target_os=\"win\" target_cpu=\"x64\" is_component_build=false is_clang=true is_debug=true rtc_use_h264=true rtc_include_tests=false" --ide=vs2019
ninja -C out-debug/Windows-x64 libwebrtc