First of All, You have evaded the “WALL”. God bless you.
Host OS: Ubuntu 16.04 LTE
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Then add depot_tools to your PATH
Here, I will build webrtc for Andorid platform.
export GYP_DEFINES="OS=android"
mkdir webrtc_android
cd webrtc_android
fetch --nohooks webrtc_android
gclient sync
Many cups of coffee (23GB !!)… … … … … … … … … … …
During the download process, You should agree Google Play License (Press y):
sh src/build/install-build-deps-android.sh
cd webrtc_android/src
gn gen out/arm --args='target_os="android" target_cpu="arm"'
You can specify different output directory for your build target:
If you get the error below:
Run the command:
python build/android/play_services/update.py download
Thrilling moment for you !!
ninja -C out/arm
Android Example App is located at src/webrtc/examples/androidapp
export http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080
git clone [email protected]:lnmcc/git-completion.git
cp -av .git-completion.bash ~/
# GIT Settings
source ~/.git-completion.bash
source ~/.profile
Done !