Libwebrtc GYP generated Java files: Difference between revisions
Jump to navigation
Jump to search
(Adding build info) |
(Add output note) |
||
Line 18: | Line 18: | ||
./install-build-deps-android.sh | ./install-build-deps-android.sh | ||
cd ~/dev/google/webrtc_android/src/ | 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 | autoninja -C out/Debug | ||
</syntaxhighlight> | </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> |
Revision as of 23:25, 22 February 2023
Building on Ubuntu 20.04 LTS
See: https://webrtc.googlesource.com/src/+/main/docs/native-code/android/index.md
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/
# Warning fetch takes a __long__ time
# 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
- Where do the generated files end up in the upstream libwebrtc build?
${OUTPUT_DIR}/gen/sdk/android/video_api_java/generated_java/input_srcjars/org/webrtc/