1 $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2 $ export PATH=`pwd`/depot_tools:"$PATH"
3
./build/install-build-deps.sh
4. build/android/envsetup.sh
5
fetch --nohooks webrtc_android
gclient sync
. build/android/envsetup.sh
6
gn gen out/Debug --args='target_os="android" target_cpu="arm"'
You can specify a directory of your own choice instead of out/Debug
, to enable managing multiple configurations in parallel.
- To build for ARM64: use
target_cpu="arm64"
- To build for 32-bit x86: use
target_cpu="x86"
- To build for 64-bit x64: use
target_cpu="x64"
7
ninja -C out/Debug