Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 3c07da4

Browse files
committed
Add patches for untracked repositories.
1 parent 1caf244 commit 3c07da4

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

scripts/prepare_dev.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
LIBSRTP_PATH = os.path.join(THIRD_PARTY_PATH, 'libsrtp')
2020
FFMPEG_PATH = os.path.join(THIRD_PARTY_PATH, 'ffmpeg')
2121
LIBVPX_PATH = os.path.join(THIRD_PARTY_PATH, 'libvpx')
22+
LIBJPEG_TURBO_PATH = os.path.join(THIRD_PARTY_PATH, 'libjpeg_turbo')
2223
LIBVPX_SOURCE_PATH = os.path.join(LIBVPX_PATH, 'source/libvpx')
2324
WEBRTC_OVERRIDES_PATH = os.path.join(THIRD_PARTY_PATH, 'webrtc_overrides')
2425
BUILD_PATH = os.path.join(HOME_PATH, 'build')
@@ -45,7 +46,8 @@
4546
('0014-Fix-missing-ffmpeg-configure-item-for-msvc-build.patch', FFMPEG_PATH),
4647
('0015-Remove-custom-d8-dependency.patch', BUILD_PATH),
4748
('0016-Remove-deprecated-create_srcjar-property.patch', THIRD_PARTY_PATH),
48-
('0017-Build-libvpx-with-RTC-rate-control-impl-included.patch', THIRD_PARTY_PATH)
49+
('0017-Build-libvpx-with-RTC-rate-control-impl-included.patch', THIRD_PARTY_PATH),
50+
('0018-Support-wasm-build.patch', LIBJPEG_TURBO_PATH)
4951
]
5052

5153
def _patch(ignoreFailures=False):
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From e4850e5a4ae4eb73f7a3625b332241d7cd941c3a Mon Sep 17 00:00:00 2001
2+
From: Jianjun Zhu <[email protected]>
3+
Date: Thu, 9 Jun 2022 18:38:00 +0800
4+
Subject: [PATCH] Support wasm build.
5+
6+
---
7+
BUILD.gn | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/BUILD.gn b/BUILD.gn
11+
index f9c483e..e18123d 100644
12+
--- a/BUILD.gn
13+
+++ b/BUILD.gn
14+
@@ -277,7 +277,7 @@ static_library("libjpeg") {
15+
16+
# MemorySanitizer doesn't support assembly code, so keep it disabled in
17+
# MSan builds for now.
18+
- if (is_msan) {
19+
+ if (is_msan || is_wasm) {
20+
sources += [ "jsimd_none.c" ]
21+
} else {
22+
public_deps += [ ":simd" ]
23+
--
24+
2.36.1
25+

0 commit comments

Comments
 (0)