Advertisement
Guest User

WebRTC setup

a guest
Feb 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. git clone --depth=50 --branch=master https://github.com/mpromonet/webrtc-streamer.git mpromonet/webrtc-streamer
  2. cd webrtc-streamer
  3. git submodule update --init --recursive
  4. export GNARGSCOMMON='rtc_include_tests=false rtc_enable_protobuf=false use_custom_libcxx=false use_ozone=true rtc_include_pulse_audio=false rtc_build_examples=false'
  5. export GYP_GENERATOR_OUTPUT=x86_64
  6. export GNARGS='is_debug=false rtc_use_h264=true ffmpeg_branding="Chrome"'
  7. export SYSROOT=${TRAVIS_BUILD_DIR}/webrtc/src/build/linux/debian_stretch_amd64-sysroot
  8.  
  9. export CXX=g++
  10. export CC=gcc
  11. gcc --version
  12. git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git && export PATH=$PATH:$(pwd)/depot_tools
  13. if [ "$CROSS" == "arm-linux-gnueabihf-" ]; then git clone --depth 1 https://github.com/raspberrypi/tools.git rpi_tools && export PATH=$PATH:$(pwd)/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin; fi
  14. mkdir webrtc
  15. pushd webrtc
  16. git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.googlesource.com/src.git --depth=1 /home/user/webrtc-streamer/webrtc/_gclient_src_5z03I_' in '/home/user/webrtc-streamer/webrtc
  17. gclient root
  18. gclient config --spec 'solutions = [
  19.  {
  20.    "url": "https://webrtc.googlesource.com/src.git",
  21.    "managed": False,
  22.    "name": "src",
  23.    "deps_file": "DEPS",
  24.    "custom_deps": {},
  25.  },
  26. ]
  27. '
  28. gclient sync --nohooks --no-history --with_branch_heads
  29. git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
  30. git config diff.ignoreSubmodules all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement