Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade WebRTC to M92 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,27 @@ fi
echo "Setting up environment..."
root_dir=$(pwd)
build_dir="${root_dir}/build/"
mkdir $build_dir
mkdir -p $build_dir
cd "${build_dir}"

# Setup tooling
echo "Setting up tooling..."
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
tools_dir="${build_dir}/depot_tools/"
if [ ! -d "$tools_dir" ]; then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
export PATH=$PATH:$tools_dir

# Fetch repo and switch to release
echo "Fetching repo..."
fetch --nohooks webrtc_ios
if [ ! -d "${build_dir}/src" ]; then
fetch --nohooks webrtc_ios
fi
gclient sync

echo "Switching branch to '$branch'..."
cd "${build_dir}/src"
git checkout -b "${branch}"
git checkout -B "${branch}"

# Make the framework
echo "Start creating frameworks..."
Expand All @@ -58,11 +62,14 @@ python build_ios_libs.py --revision "${version}"

cd "${build_dir}/src"

echo "Clean output folder"
rm -rf "${build_dir}/src/out_ios_libs"

frameworkFile="WebRTC.xcframework"

xcodebuild -create-xcframework \
-framework out_ios_libs/arm64_libs/WebRTC.framework \
-framework out_ios_libs/x64_libs/WebRTC.framework \
-framework out_ios_libs/device/arm64_libs/WebRTC.framework \
-framework out_ios_libs/simulator/x64_libs/WebRTC.framework \
-output out_ios_libs/$frameworkFile

echo "Archiving XCFramework..."
Expand Down Expand Up @@ -93,8 +100,8 @@ cd "${build_dir}/src"
frameworkFile="WebRTC-Bitcode.xcframework"

xcodebuild -create-xcframework \
-framework out_ios_libs/arm64_libs/WebRTC.framework \
-framework out_ios_libs/x64_libs/WebRTC.framework \
-framework out_ios_libs/device/arm64_libs/WebRTC.framework \
-framework out_ios_libs/simulator/x64_libs/WebRTC.framework \
-output out_ios_libs/$frameworkFile

echo "Archiving XCFramework..."
Expand Down
4 changes: 2 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

branch="branch-heads/4240"
version="86"
branch="branch-heads/4515"
version="92"