This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1919LIBSRTP_PATH = os .path .join (THIRD_PARTY_PATH , 'libsrtp' )
2020FFMPEG_PATH = os .path .join (THIRD_PARTY_PATH , 'ffmpeg' )
2121LIBVPX_PATH = os .path .join (THIRD_PARTY_PATH , 'libvpx' )
22+ LIBJPEG_TURBO_PATH = os .path .join (THIRD_PARTY_PATH , 'libjpeg_turbo' )
2223LIBVPX_SOURCE_PATH = os .path .join (LIBVPX_PATH , 'source/libvpx' )
2324WEBRTC_OVERRIDES_PATH = os .path .join (THIRD_PARTY_PATH , 'webrtc_overrides' )
2425BUILD_PATH = os .path .join (HOME_PATH , 'build' )
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
5153def _patch (ignoreFailures = False ):
Original file line number Diff line number Diff line change 1+ From e4850e5a4ae4eb73f7a3625b332241d7cd941c3a Mon Sep 17 00:00:00 2001
2+ From: Jianjun Zhu <jianjun.zhu@intel.com>
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+
You can’t perform that action at this time.
0 commit comments