Skip to content

Instantly share code, notes, and snippets.

@jasongao
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save jasongao/9652024 to your computer and use it in GitHub Desktop.

Select an option

Save jasongao/9652024 to your computer and use it in GitHub Desktop.
# 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