用VS2008编译Google Chromium
Google chromium的源代码是去年这个时候开源的,一直想去看看它的代码,编译一个自己的版本。
以前它需要用VC++2005 SP1编译。值得一提的是,VC++ 2005的SP1非常来装,我折腾了好几次都没有装上(等很久,安装进度条就是不动)
不过,最近注意到可以用VS2008编译了,以下是找到的相关资料:
Google Chrome 源码 SVN 地址:http://src.chromium.org/svn。包含有 Chrome、Gears、Webkit、GCC 等源码以
及编译依赖工具。Chrome 浏览器项目的源码,位于目录 http://src.chromium.org/svn/trunk/src/chrome/
1. 下载代码
Create a directory to hold your source code. This example assumes c:\chromiumtrunk, but other names are fine.
Important: Make sure the full directory path has no spaces.
In a shell window, execute the following commands:
cd c:\chromiumtrunk
gclient config http://src.chromium.org/svn/trunk/src
gclient sync
2. 生成VS2008工程文件
If you are using VS2008;
set GYP_MSVS_VERSION=2008 in your environment before generating the project files. You will have to gclient runhooks –force after this change to regenerate your sln file.
Open the chrome/chrome.sln solution file in Visual Studio and build the solution. This can take from 10 minutes to 2 hours. More likely 1 hour.
本文由IT Farmer的博客创作,欢迎转载并保留对本博的链接。 Tags:chromium,compile,VS2008
February 12th, 2010 at 11:14 am
写的不错