-
Notifications
You must be signed in to change notification settings - Fork 21
/
webrtc-setup
executable file
·25 lines (20 loc) · 784 Bytes
/
webrtc-setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
CHROME_STABLE="37.0.2062.124"
# check http://src.chromium.org/viewvc/chrome/releases/37.0.2062.12/DEPS?revision=281122
WEBRTC_VERSION="/branches/3.55/webrtc@6541"
# Change directory to the PRODUCT_DIR (e.g. out/Release).
export LD_LIBRARY_PATH=`pwd`
#mkdir build
cd build
gclient config --name src 'git+https://chromium.googlesource.com/external/webrtc'
gclient sync -j200
cd src
git svn init --prefix=origin/ https://webrtc.googlecode.com/svn "-T$WEBRTC_VERSION" --rewrite-root=http://webrtc.googlecode.com/svn
git config svn-remote.svn.fetch trunk:refs/remotes/origin/master
git svn fetch
git checkout master
gclient sync --force
patch talk/session/media/channel.cc < ../../src/webrtc/channel.patch
cp ../../gyp/* .
ninja -C out/Release
cp out/Release/natty ../../