配置v8

配置小飞机,下载传送门 

  安装

dpkg -i xxx
apt-get -f install

  设置成全局代理

配置V8

  设置git代理

root@5n1p3r0010:~# git config --global http.proxy socks5://127.0.0.1:1080
root@5n1p3r0010:~# git config --global https.proxy socks5://127.0.0.1:1080

  安装depot_tools

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

写入.bashrc

echo 'export PATH=$PATH:"/path/to/depot_tools"' >> ~/.bashrc
bash

安装ninja并写入.bashrc

git clone https://github.com/ninja-build/ninja.git
cd ninja && ./configure.py --bootstrap && cd ..
echo 'export PATH=$PATH:"/path/to/ninja"' >> ~/.bashrc
bash

下载结束后执行

gclient sync

这时一般会报错

client not configured; see 'gclient config'

执行

gclient config --name=src https://github.com/nwjs/chromium.src.git@origin/nw17

然后为了避免下载测试数据修改.gclient配置文件custom_deps域如下

"custom_deps" : {
    "src/third_party/WebKit/LayoutTests": None,
    "src/chrome_frame/tools/test/reference_build/chrome": None,
    "src/chrome_frame/tools/test/reference_build/chrome_win": None,
    "src/chrome/tools/test/reference_build/chrome": None,
    "src/chrome/tools/test/reference_build/chrome_linux": None,
    "src/chrome/tools/test/reference_build/chrome_mac": None,
    "src/chrome/tools/test/reference_build/chrome_win": None,
}

再次执行gclient sync即可

猜你喜欢

转载自www.cnblogs.com/snip3r/p/12290133.html
v8