You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # WebRTC development - Prerequisite software
  2. ## Depot Tools
  3. 1. [Install the Chromium depot tools][depot-tools].
  4. 2. On Windows, depot tools will download a special version of Git during your
  5. first `gclient sync`. On Mac and Linux, you'll need to install [Git][git] by
  6. yourself.
  7. ## Linux (Ubuntu/Debian)
  8. A script is provided for Ubuntu, which is unfortunately only available after
  9. your first gclient sync:
  10. ```
  11. $ ./build/install-build-deps.sh
  12. ```
  13. Most of the libraries installed with this script are not needed since we now
  14. build using Debian sysroot images in build/linux, but there are still some tools
  15. needed for the build that are installed with
  16. [install-build-deps.sh][install-build-deps].
  17. You may also want to have a look at the [Chromium Linux Build
  18. instructions][chromium-linux-build-instructions] if you experience any other problems building.
  19. ## Windows
  20. Follow the [Chromium's build instructions for Windows][chromium-win-build-instructions].
  21. WebRTC requires Visual Studio 2017 to be used. If you only have version 2015
  22. available, you might be able to keep using it for some time by setting
  23. `GYP_MSVS_VERSION=2015` in your environment. Keep in mind that this is not a
  24. suppported configuration however.
  25. ## macOS
  26. Xcode 9 or higher is required. Latest Xcode is recommended to be able to build
  27. all code.
  28. ## Android
  29. You'll need a Linux development machine. WebRTC is using the same Android
  30. toolchain as Chrome (downloaded into `third_party/android_tools`) so you won't
  31. need to install the NDK/SDK separately.
  32. 1. Install Java OpenJDK as described in the
  33. [Chromium Android prerequisites][chromium-android-build-build-instructions]
  34. 2. All set! If you don't run Ubuntu, you may want to have a look at
  35. [Chromium's Linux prerequisites][chromium-linux-prerequisites] for distro-specific details.
  36. [depot-tools]: http://dev.chromium.org/developers/how-tos/install-depot-tools
  37. [git]: http://git-scm.com
  38. [install-build-deps]: https://cs.chromium.org/chromium/src/build/install-build-deps.sh
  39. [chromium-linux-build-instructions]: https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md
  40. [chromium-win-build-instructions]: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
  41. [chromium-linux-prerequisites]: https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md#Install
  42. [chromium-android-build-build-instructions]: https://www.chromium.org/developers/how-tos/android-build-instructions