-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathpatchWebRTCM84.cmd
79 lines (63 loc) · 2.47 KB
/
patchWebRTCM84.cmd
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
if not exist %WEBRTCM84_ROOT% ( goto :missingenv )
set PATCH_DIR=%~dp0
pushd %WEBRTCM84_ROOT%\build
git.exe am "%PATCH_DIR%0001-Adding-flags-for-using-WinRT-C-projections-and-build.patch"
if errorlevel 1 goto :error
popd
pushd %WEBRTCM84_ROOT%\third_party
git.exe am "%PATCH_DIR%1001-Fixing-UWP-build-for-libvpx.patch"
if errorlevel 1 goto :error
popd
pushd %WEBRTCM84_ROOT%\third_party\libyuv
git.exe am "%PATCH_DIR%2001-Fixing-NV12-to-I420-conversion-with-strides-and-gap.patch"
if errorlevel 1 goto :error
popd
pushd %WEBRTCM84_ROOT%\third_party\boringssl\src
git.exe am "%PATCH_DIR%4001-Arm64-is-a-thing-and-has-intrinsic-to-mul-two-64bit-.patch"
if errorlevel 1 goto :error
popd
pushd %WEBRTCM84_ROOT%\third_party\libjpeg_turbo
git.exe am "%PATCH_DIR%5001-cl-aligns-differently-and-hack-for-extracting-first-.patch"
if errorlevel 1 goto :error
popd
pushd %WEBRTCM84_ROOT%
git.exe am "%PATCH_DIR%3001-Removing-unused-files-containing-Win32-APIs-from-rtc.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3002-Fixing-UWP-build-for-file_rotating_stream.cc.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3003-Allowing-no-contiguous-Y-and-UV-planes.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3004-Changes-for-enabling-the-new-video-capture-module.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3005-Adds-the-Media-Foundation-H264-encoder-and-decoder.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3006-Disabling-switch-without-case-warning-for-aec3.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3007-Do-not-push_back-in-foreach.patch"
if errorlevel 1 goto :error
git.exe am "%PATCH_DIR%3008-Fixing-UWP-build-for-time_utils.cc"
if errorlevel 1 goto :error
xcopy /Y /E /Q "%PATCH_DIR%\src" .
if errorlevel 1 goto :error
git.exe add modules/audio_device/win/audio_device_core_win.*
if errorlevel 1 goto :error
git.exe commit -m "Audio device for UWP"
if errorlevel 1 goto :error
git.exe add modules/video_capture/windows/*_winrt.*
if errorlevel 1 goto :error
git.exe commit -m "Video capture for UWP"
if errorlevel 1 goto :error
git.exe add modules/video_coding/codecs/h264/win/*.* modules/video_coding/codecs/h264/win_from_old_master/*.*
if errorlevel 1 goto :error
git.exe commit -m "MF based H264 codec"
if errorlevel 1 goto :error
popd
goto :exit
:missingenv
echo Please define WEBRTCM84_ROOT with the full path of WebRTC's src folder.
goto :exit
:error
echo Last command failed with erro code: %errorlevel%
:exit
exit /b %errorlevel%