Last active
August 29, 2015 13:57
-
-
Save jasongao/9652024 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # prep | |
| sudo apt-get install git subversion | |
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
| export PATH=`pwd`/depot_tools:$PATH | |
| # install jdk | |
| # https://code.google.com/p/chromium/wiki/AndroidBuildInstructions?#Install_prerequisites | |
| mkdir webrtc | |
| cd webrtc/ | |
| gclient config https://webrtc.googlecode.com/svn/trunk | |
| echo "target_os = ['android', 'unix']" >> .gclient | |
| gclient sync --nohooks | |
| cd trunk | |
| sudo ./build/install-build-deps-android.sh | |
| mkdir -p out/Debug | |
| # build | |
| gclient sync --nohooks | |
| . ./build/android/envsetup.sh | |
| export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 $GYP_DEFINES" | |
| export GYP_DEFINES="enable_tracing=1 $GYP_DEFINES" | |
| gclient runhooks | |
| ninja -j `nproc` -C out/Debug AppRTCDemo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment