1. 工具
  depot_tools.zip  http://src.chromium.org/svn/trunk/tools/depot_tools.zip 
  python 2.6
  svn
  vs2010+sp1
  将depot_tools,python,svn的三个路径添加到PATH环境变量中。
 
2.下载源码
  2.1 从SVN签出 
  gclient config http://src.chromium.org/svn/trunk/src 
(可选)在.gclient文件中添加这些 
    "custom_deps" : { 
  "src/webkit/data/layout_tests/LayoutTests": None, 
    }, 
  目的是为了不下载LayoutTests的文件。因为这个很浪费时间,而且好像目前对方的SVN还有问题,导致后面的gyp程序不能执行。 
 
 2.2 下载tgz的压缩包 
 http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html
   解压缩后如果想更新到最新版本就执行这个 
   gclient sync (--force) 
 
3.编译 
   命令行中切换到源码的目录src目录,执行gclient.py runhooks --force,在src/hrome目录下就会生成许多VS工程文件,包括chrome.sln

 最后 用vs2010打开chrome.sln,生成解决方案,生成过程中要耐心,然后在src//build/debug目录下(我生成的debug版本)就可以看到chrome.exe了,双击它,chrome浏览器就运行成功了。

 

 
 

相关文章:

  • 2021-10-20
  • 2021-07-18
  • 2021-05-21
  • 2021-10-09
  • 2021-09-10
  • 2021-11-16
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-06-11
  • 2021-06-21
  • 2022-12-23
  • 2021-06-22
  • 2021-11-26
相关资源
相似解决方案