1 Star 0 Fork 0

大汉刺史/build-webrtc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.cmd 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
kazuki matsumoto 提交于 2019-05-21 17:32 . unescape license file
if not exist depot_tools (
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
)
REM workaround
set PATH=%PATH:C:\ProgramData\chocolatey\bin;=%
set PATH=%cd%\depot_tools;%PATH%
set WEBRTC_VERSION=72
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set CPPFLAGS=/WX-
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2017
set OUTPUT_DIR=out
set ARTIFACTS_DIR=%cd%
cmd /k fetch.bat webrtc
cd src
cmd /k git.bat branch -r
cmd /k git.bat checkout -b my_branch refs/remotes/branch-heads/%WEBRTC_VERSION%
cd ..
cmd /k gclient.bat sync
REM change jsoncpp static library
powershell -File .\ReplaceText.ps1 "src\third_party\jsoncpp\BUILD.gn" "source_set" "static_library"
cmd /k gn.bat gen %OUTPUT_DIR% --root="src" --args="is_debug=false is_clang=false target_cpu=\"x64\" symbol_level=0 enable_iterator_debugging=false"
REM add json.obj in link list of webrtc.ninja
powershell -File .\ReplaceText.ps1 "%OUTPUT_DIR%\obj\webrtc.ninja" "obj/rtc_base/rtc_base/crc32.obj" "obj/rtc_base/rtc_base/crc32.obj obj/rtc_base/rtc_json/json.obj"
type "%OUTPUT_DIR%\obj\webrtc.ninja"
REM update LIB_TO_LICENSES_DICT in generate_licenses.py
powershell -File .\ReplaceText.ps1 "src\tools_webrtc\libs\generate_licenses.py" "'ow2_asm': []," "'ow2_asm': [], 'winsdk_samples': [], 'googletest': ['third_party/googletest/src/LICENSE'], 'nasm': ['third_party/nasm/LICENSE'], "
type "src\tools_webrtc\libs\generate_licenses.py"
ninja.exe -C %OUTPUT_DIR%
REM generate license
call python.bat .\src\tools_webrtc\libs\generate_licenses.py --target //:default %OUTPUT_DIR% %OUTPUT_DIR%
REM unescape license
powershell -File .\Unescape.ps1 %OUTPUT_DIR%\LICENSE.md
REM copy header
xcopy src\*.h %ARTIFACTS_DIR%\include /C /S /I /F /H
REM copy lib
mkdir %ARTIFACTS_DIR%\lib
for %%G in (webrtc.lib audio_decoder_opus.lib webrtc_opus.lib jsoncpp.lib) do forfiles /P "%cd%\%OUTPUT_DIR%" /S /M %%G /C "cmd /c copy @path %ARTIFACTS_DIR%\lib"
REM copy license
copy %OUTPUT_DIR%\LICENSE.md %ARTIFACTS_DIR%
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tianzhenjiu/build-webrtc.git
[email protected]:tianzhenjiu/build-webrtc.git
tianzhenjiu
build-webrtc
build-webrtc
master

搜索帮助