Build Webrtc For Android

1、Get webrtc source
	$ gclient config https://webrtc.googlecode.com/svn/trunk
	$ gclient sync

2、Set env
	export ANDROID_SDK_ROOT=/home/sunsea/work/projects/android-tools/android-sdk-linux
	export ANDROID_NDK_ROOT=/home/sunsea/work/projects/android-tools/android-ndk-r8
	
3、Generate makefiles
	$ cd trunk
	$ source ./build/android/envsetup.sh
	$ gclient runhooks

4、Build
	$ make

5、Build video_engine dynamic library
	$ cd webrtc/video_engine/test/android
	$ /home/sunsea/work/projects/android-tools/android-ndk-r8/ndk-build

6、Build apk

你可能感兴趣的:(Build Webrtc For Android)