xref: /aosp_15_r20/external/webrtc/docs/native-code/development/prerequisite-sw/index.md (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# WebRTC development - Prerequisite software
2
3## Depot Tools
4
51. [Install the Chromium depot tools][depot-tools].
6
72. On Windows, depot tools will download a special version of Git during your
8first `gclient sync`. On Mac and Linux, you'll need to install [Git][git] by
9yourself.
10
11## Linux (Ubuntu/Debian)
12
13A script is provided for Ubuntu, which is unfortunately only available after
14your first gclient sync:
15
16```
17$ ./build/install-build-deps.sh
18```
19
20Most of the libraries installed with this script are not needed since we now
21build using Debian sysroot images in build/linux, but there are still some tools
22needed for the build that are installed with
23[install-build-deps.sh][install-build-deps].
24
25You may also want to have a look at the [Chromium Linux Build
26instructions][chromium-linux-build-instructions] if you experience any other problems building.
27
28## Windows
29
30Follow the [Chromium's build instructions for Windows][chromium-win-build-instructions].
31
32WebRTC requires Visual Studio 2017 to be used. If you only have version 2015
33available, you might be able to keep using it for some time by setting
34`GYP_MSVS_VERSION=2015` in your environment. Keep in mind that this is not a
35suppported configuration however.
36
37## macOS
38
39Xcode 12 or higher is required. Latest Xcode is recommended to be able to build
40all code. You may use `xcode-select --install` to install it.
41
42Absence of Xcode will cause errors like:
43```
44xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
45```
46
47## Android
48
49You'll need a Linux development machine. WebRTC is using the same Android
50toolchain as Chrome (downloaded into `third_party/android_tools`) so you won't
51need to install the NDK/SDK separately.
52
531. Install Java OpenJDK as described in the
54[Chromium Android prerequisites][chromium-android-build-build-instructions]
552. All set! If you don't run Ubuntu, you may want to have a look at
56[Chromium's Linux prerequisites][chromium-linux-prerequisites] for distro-specific details.
57
58
59[depot-tools]: https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up
60[git]: http://git-scm.com
61[install-build-deps]: https://cs.chromium.org/chromium/src/build/install-build-deps.sh
62[chromium-linux-build-instructions]: https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md
63[chromium-win-build-instructions]: https://chromium.googlesource.com/chromium/src/+/main/docs/windows_build_instructions.md
64[chromium-linux-prerequisites]: https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md#notes
65[chromium-android-build-build-instructions]: https://chromium.googlesource.com/chromium/src/+/main/docs/android_build_instructions.md
66