Libwebrtc GYP generated Java files: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Add output note)
(added Priority.java to the list of generated files)
 
(3 intermediate revisions by one other user not shown)
Line 22: Line 22:
autoninja -C out/Debug
autoninja -C out/Debug
</syntaxhighlight>
</syntaxhighlight>
Where do the generated files end up in the upstream libwebrtc build?
==== 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>
<syntaxhighlight lang="Bash">${OUTPUT_DIR}/gen/sdk/android/video_api_java/generated_java/input_srcjars/org/webrtc/</syntaxhighlight>
==== Which files are generated this way? ====
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1780582 Bug 1780582] [https://searchfox.org/mozilla-central/source/third_party/libwebrtc/sdk/android/api/org/webrtc/VideoFrameBufferType.java VideoFrameBufferType.java]
* [https://searchfox.org/mozilla-central/source/third_party/libwebrtc/sdk/android/api/org/webrtc/NetworkPreference.java NetworkPreference.java]
* [https://searchfox.org/mozilla-central/source/third_party/libwebrtc/sdk/android/api/org/webrtc/Priority.java Priority.java]

Latest revision as of 23:43, 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/

Which files are generated this way?