##WebRTC Build Scripts A set of build scripts useful for building WebRTC libraries for Android and iOS.
###Android-- Guide here The following instructions are for building the native WebRTC libraries for Android.
You should only need Ubuntu 12.04 on a 64 bit machine to get going.
This is only required once.
# Source all the routines
source android/build.sh
# Install any dependencies needed
install_dependencies
# Setup jdk
install_jdk1_6
If you don't have a Ubuntu machine available, or you are too lazy to setup a virtual machine manually, you can build WebRTC for Android on your Mac or Windows PC through our Vagrant script.
First of all, you need to download and install Vagrant. After that, from the /android directory, you need to execute the following in you shell:
# Boot up and provision the Vagrant box
vagrant up
# SSH into the Vagrant box
vagrant ssh
Then you can build the Android example
# Build apprtc
build_apprtc
# Build in debug mode
build_debug_apprtc
When the scripts are done you can find the .jar and .so file in $WEBRTC_HOME under "libjingle_peerconnection_builds".
###iOS -- Guide here These steps must be run on Mac OSX
# Source the ios routines
source ios/build.sh
# EDIT 7/29/14: Forgot to mention that you should specify if you want a debug/profile/release build by executing WEBRTC_DEBUG=true WEBRTC_PROFILE=true or WEBRTC_RELEASE=true ... WHOOPS MY B
# Now it will autoselect debug if you do not specify anything (to help find bugs)
# We use the term webrtc dance a lot
dance
# Open the xcode project, and execute the AppRTC Demo on any iOS 7 device or simulator
open ../../../ios/WebRTC.xcodeproj
To run the example AppRTC Demo project, clone the repo, and run pod install from the Example directory first.
A fast internet connection.... for your own sanity
libjingle_peerconnection is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "libjingle_peerconnection"
# Add this to the bottom so it won't have issues with active architecture
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['VALID_ARCHS'] = ['armv7', 'i386']
end
end
end
You might see some versions like 6798.2 .. Yes that is revision number 6798 from the webrtc revision changelist and the minor (the .2 part) reflects any change I'd make on the cocoapods project configuration side.