-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to 126.0.6478.173. * Update the GitHub action. * Fix docker files for the new version. * Update build_and_release.yml * Fix aarch64 build on Ubuntu 24.04. * Use_clang instead of GCC. * Fix clang build on amd64. * Revert to GCC. * Fix aarch64 build on Ubuntu 24.04. * Disable enable_perfetto * Update perfetto * Downgrade to 125.0.6422.224. * Update boringssl for 24.04. * Disable SVE for libvpx. * Disable SVE for libvpx. * Fix libvpx_BUILD.gn.patch to disable SVE. * Remove usages of sve functions. * Fix patch files
- Loading branch information
Showing
14 changed files
with
1,196 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule depot_tools
updated
from 6953eb to 9e9fc9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6167.3df661.54 | ||
6422.8505a9.224 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:24.04 | ||
# Change default shell to bash | ||
SHELL ["/bin/bash", "--login", "-c"] | ||
|
||
# Install build dependencies | ||
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \ | ||
build-essential git sudo vim libprotobuf-dev protobuf-compiler locales wget curl cmake pkg-config ca-certificates \ | ||
ninja-build libssl-dev libboost-all-dev libglib2.0-dev libgtk-3-dev libpulse-dev libasound2-dev patch | ||
|
||
# Install cross-compiler | ||
RUN apt install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf clang | ||
|
||
# Define a build-time argument | ||
ARG BUILD_TYPE=Release | ||
ARG BUILD_ARCHITECTURE=amd64 | ||
ARG BUILD_BRANCH=main | ||
|
||
# Set Working directory | ||
WORKDIR /root | ||
|
||
# Checkout code | ||
RUN git clone -b ${BUILD_BRANCH} https://github.com/introlab/webrtc-native-build.git --recurse-submodules | ||
|
||
WORKDIR /root/webrtc-native-build | ||
RUN mkdir build | ||
|
||
WORKDIR /root/webrtc-native-build/build | ||
RUN cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_BUILD_ARCHITECTURE=${BUILD_ARCHITECTURE} | ||
|
||
WORKDIR /root/webrtc-native-build/3rdParty/webrtc_native/webrtc/src/third_party/boringssl/src | ||
RUN git checkout 7c2b62e93487b772990fddc1905f22d4cfaee4a4 | ||
|
||
WORKDIR /root/webrtc-native-build/build | ||
RUN ../patches/apply_patch.sh | ||
RUN cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_BUILD_ARCHITECTURE=${BUILD_ARCHITECTURE} | ||
RUN export PATH=/root/webrtc-native-build/3rdParty/depot_tools:$PATH && make -j2 | ||
RUN make install | ||
|
||
VOLUME [ "/data" ] | ||
|
||
WORKDIR /root/webrtc-native-build/dist/${BUILD_TYPE} | ||
CMD ["/bin/bash", "-c", "tar cvzf /data/release.tar.gz ."] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docker buildx build -t webrtc --build-arg BUILD_TYPE=Debug --build-arg BUILD_ARCHITECTURE=arm64 --build-arg BUILD_BRANCH=update-webrtc . | ||
docker run --rm \ | ||
--volume $PWD:/data webrtc \ | ||
tar cvzf /data/release.tar.gz ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /usr/bin/bash | ||
|
||
SCRIPT=`realpath $0` | ||
SCRIPT_PATH=`dirname $SCRIPT` | ||
|
||
patch -u $SCRIPT_PATH/../3rdParty/webrtc_native/webrtc/src/third_party/libvpx/BUILD.gn $SCRIPT_PATH/libvpx_BUILD.gn.patch | ||
patch -u $SCRIPT_PATH/../3rdParty/webrtc_native/webrtc/src/third_party/libvpx/source/config/linux/arm64-highbd/vp9_rtcd.h $SCRIPT_PATH/libvpx_linux_arm64-highbd_vp9_rtcd.h.patch | ||
patch -u $SCRIPT_PATH/../3rdParty/webrtc_native/webrtc/src/third_party/libvpx/source/config/linux/arm64-highbd/vpx_dsp_rtcd.h $SCRIPT_PATH/libvpx_linux_arm64_vpx_dsp_rtcd.h.patch | ||
patch -u $SCRIPT_PATH/../3rdParty/webrtc_native/webrtc/src/third_party/libvpx/source/config/linux/arm64/vp9_rtcd.h $SCRIPT_PATH/libvpx_linux_arm64_vp9_rtcd.h.patch | ||
patch -u $SCRIPT_PATH/../3rdParty/webrtc_native/webrtc/src/third_party/libvpx/source/config/linux/arm64/vpx_dsp_rtcd.h $SCRIPT_PATH/libvpx_linux_arm64_vpx_dsp_rtcd.h.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@@ -369,7 +369,7 @@ if (current_cpu == "arm64") { | ||
# SVE is disabled for Windows due to a limitation with clang-cl-18: | ||
# third_party\llvm-build\Release+Asserts\lib\clang\18\include\arm_sve.h(271,1): | ||
# error: cannot mangle this built-in __SVInt8_t type yet | ||
- if (!is_win) { | ||
+ if (!is_win && is_clang) { | ||
source_set("libvpx_intrinsics_sve") { | ||
check_includes = false | ||
configs -= [ "//build/config/compiler:chromium_code" ] | ||
@@ -583,7 +583,7 @@ static_library("libvpx") { | ||
if (current_cpu == "arm64") { | ||
deps += [ ":libvpx_intrinsics_neon_dotprod" ] | ||
deps += [ ":libvpx_intrinsics_neon_i8mm" ] | ||
- if (!is_win) { | ||
+ if (!is_win && is_clang) { | ||
deps += [ | ||
":libvpx_intrinsics_sve", | ||
":libvpx_intrinsics_sve2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@@ -41,10 +41,6 @@ int64_t vp9_block_error_neon(const tran_low_t* coeff, | ||
const tran_low_t* dqcoeff, | ||
intptr_t block_size, | ||
int64_t* ssz); | ||
-int64_t vp9_block_error_sve(const tran_low_t* coeff, | ||
- const tran_low_t* dqcoeff, | ||
- intptr_t block_size, | ||
- int64_t* ssz); | ||
RTCD_EXTERN int64_t (*vp9_block_error)(const tran_low_t* coeff, | ||
const tran_low_t* dqcoeff, | ||
intptr_t block_size, | ||
@@ -56,9 +52,6 @@ int64_t vp9_block_error_fp_c(const tran_low_t* coeff, | ||
int64_t vp9_block_error_fp_neon(const tran_low_t* coeff, | ||
const tran_low_t* dqcoeff, | ||
int block_size); | ||
-int64_t vp9_block_error_fp_sve(const tran_low_t* coeff, | ||
- const tran_low_t* dqcoeff, | ||
- int block_size); | ||
RTCD_EXTERN int64_t (*vp9_block_error_fp)(const tran_low_t* coeff, | ||
const tran_low_t* dqcoeff, | ||
int block_size); | ||
@@ -395,13 +388,7 @@ static void setup_rtcd_internal(void) { | ||
(void)flags; | ||
|
||
vp9_block_error = vp9_block_error_neon; | ||
- if (flags & HAS_SVE) { | ||
- vp9_block_error = vp9_block_error_sve; | ||
- } | ||
vp9_block_error_fp = vp9_block_error_fp_neon; | ||
- if (flags & HAS_SVE) { | ||
- vp9_block_error_fp = vp9_block_error_fp_sve; | ||
- } | ||
} | ||
#endif | ||
|
Oops, something went wrong.