配置git和cmd代理
set http_proxy=http://127.0.0.1:10809
set https_proxy=http://127.0.0.1:10809
git config --global http.proxy “127.0.0.1:10809”
git config --global https.proxy “127.0.0.1:10809”
set DEPOT_TOOLS_WIN_TOOLCHAIN = 0
set NO_AUTH_BOTO_CONFIG=c:\chromium\boto.cfg
set DEPOT_TOOLS_UPDATE = 0
取消git代理
git config --global --unset http.proxy
git config --global --unset https.proxy
cd c:/chromium
拉代码命令
fetch chromium
fetch --no-history chromium
修改h264的文件
c:\chromium\src\third_party\ffmpeg\chromium\config\Chrome\win-msvc\ia32\config.h
#define CONFIG_H264_DECODER 1
编译旧版本的命令
Get date of current revision:
~/chrome/src $ COMMIT_DATE=$(git log -n 1 --pretty=format:%ci)
2019-12-06 13:31:51 -0800
Check out depot_tools revision from the same time:
~/depot_tools $ git checkout $(git rev-list -n 1 --before=“2019-12-06 13:31:51 -0800” main)
git checkout 6b52dc21e166c46707b4c8eb26c74c70d4f9977e
~/depot_tools $ export DEPOT_TOOLS_UPDATE=0
git reset --hard 79.0.3945.79
git reset --hard 87.0.4272.0
gclient sync -D --force --reset --with_branch_heads
相关链接
编译chromium(windows)