forked from foxaice/mediasoup-android-client-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5_apply_patches.sh
More file actions
executable file
·36 lines (28 loc) · 1.49 KB
/
5_apply_patches.sh
File metadata and controls
executable file
·36 lines (28 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#"git apply some.patch" causes errors when reapplying a patch.
# It may be fixed by:
# "git apply abc.patch || git apply abc.patch -R --check && echo already applied"
# But this behavior allows you to see real errors during the first patch.
echo "Apply webrtc h264 codec support patch"
cd $SCRIPT_DIR/webrtc_android/src/third_party/ffmpeg
git apply $SCRIPT_DIR/webrtc_h264_codec_support.patch
# Who use "use_custom_libcxx=false" argument build for android
# got "undefined symbol: _Unwind_Backtrace" mistake should do like this:
# https://bugs.chromium.org/p/webrtc/issues/detail?id=13535
echo "Apply use custom libcxx argument support patch"
cd $SCRIPT_DIR/webrtc_android/src/buildtools
git apply $SCRIPT_DIR/use_custom_libcxx_argument_buildtools_support.patch
cd $SCRIPT_DIR/webrtc_android/src/build
git apply $SCRIPT_DIR/use_custom_libcxx_argument_build_support.patch
#webrtc_voice_engine.cc create a default AudioDeviceModule if no supplied.
# adm_ = webrtc::AudioDeviceModule::Create(
# webrtc::AudioDeviceModule::kPlatformDefaultAudio, task_queue_factory_)
echo "Apply support default audio device module patch"
cd $SCRIPT_DIR/webrtc_android/src
git apply $SCRIPT_DIR/support_default_audio_device_module_for_webrtc_voice_engine.patch
# 16 KB page size support
echo "Apply support 16kb page siZe patches"
cd $SCRIPT_DIR/webrtc_android/src
git apply $SCRIPT_DIR/16kb_page_size_support.patch
cd $SCRIPT_DIR/webrtc_android/src/build
git apply $SCRIPT_DIR/config_16kb_page_size_support.patch