Linux WebRTC Repo Build

vpn(must)

It’s import for webrtc to browse web and get the latest source code.You also can view the webrtc code online from Chromium Code Search.

To Prepare

install depot_tools

Make a new file to put depot_tools,and then run the next command.

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

and

export PATH=/your_path/depot_tools:$PATH

Depot_tool has some tools about source code and compile

Source Code Download

douwnload

mkdir webrtc

fetch --nohooks webrtc

gclient sync

You can make a new branch to do your development:

cd src

git checkout master

git checkout -b branch_name

Source Code Refresh

git checkout master

git pull origin master

gdlient sync

git checkout branc_name

git merge master

Compile

First, you can run

./build/install-build-deps.sh

to install related tools.and then,

gn gen out/Default

Application Samples

猜你喜欢

转载自blog.csdn.net/weixin_42762173/article/details/125496918