Libwebrtc GYP generated Java files

From New wiki
Jump to navigation Jump to search

Building on Ubuntu 20.04 LTS

See: https://webrtc.googlesource.com/src/+/main/docs/native-code/android/index.md

<syntaxhighlight Lang="bash"> mkdir -p ~/dev/google cd ~/dev/google/ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git cd depot_tools/ export PATH=`pwd`:$PATH cd ~/dev/google/ mkdir webrtc_android cd webrtc_android/

  1. Warning fetch takes a __long__ time
  2. This is much longer than fetch for the webrtc target

fetch --nohooks webrtc_android gclient sync cd src/build/ ./install-build-deps-android.sh cd ~/dev/google/webrtc_android/src/ OUTPUT_DIR=out/Debug gn gen ${OUTPUT_DIR} --args='target_os="android" target_cpu="arm"' autoninja -C out/Debug </syntaxhighlight>

Where do the generated files end up in the upstream libwebrtc build?

<syntaxhighlight lang="Bash">${OUTPUT_DIR}/gen/sdk/android/video_api_java/generated_java/input_srcjars/org/webrtc/</syntaxhighlight>

Which files are generated this way?