Building WebRTC
Nov 24, 2022
for standalone application
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
Create a workspace. I created “webrtc” directory for my workspace.
webrtc$fetch - nohooks - no-history webrtc
→ This will create `src` directory under webrtc
webrtc$gclient sync
→ This will run hooks. This is necessary to set up the tools correctly.
webrtc/src$./build/install-build-deps.sh
→ Need only once.
webrtc/src$ gn gen out/Default - args='is_debug=true'
webrtc/src$ ninja -C out/Default
webrtc/src$ find ./ -name libwebrtc.a | xargs ls -al
-rw-rw-r - 1 378256228 Nov 23 18:17 ./out/Default/obj/libwebrtc.a