非专业环境太麻烦了,这里写个笔记作为记录,下载地址如果改变自行搜索下载地址都行,官方都有。
安装环境下载:
Vs2019下载 https://files02.tchspt.com/down/vs_Community2019.exe
设置好环境变量
代理设置:
git config –global https.proxy http://地址:端口
git config –global https.proxy https://地址:端口
git config –global http.proxy socks5://地址:端口
git config –global https.proxy socks5://地址:端口
获取git地址 https://chromium.googlesource.com/chromium/tools/depot_tools
需要使用20240923之前的版本,之前因为版本的问题重装了好多次
为了方便我这里使用python2.7的版本,3的版本要改动的地方太多了。
创建目录v8进入然后先 gclient
fetch v8
继续cd v8
git checkout 7.6.303.28
gclient sync -D
获取指定版本
git reset –hard 1e4b1c521a491c7487028b7f2aec550c1b36606b
gclient sync
进行编译
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
python tools/dev/v8gen.py -vv x64.debug
ninja -C out.gn\x64.debug

比较费时间需要多等等。