官方网址:http://sites.google.com/a/chromium.org/dev/
How-Tos:http://sites.google.com/a/chromium.org/dev/developers/how-tos
以上网址均在墙外。取得代码:
- 先去这里下载tarball代码:http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html 。这个不是最新代码,一会儿再用google提供的depot工具来更新代码。为什么不直接从svn update?因为源码太大了,从svn下载较慢。
- 在本地硬盘里建一个文件夹,用于放置代码。硬盘剩余空间一定要大,因为编译主程序大概需要10G+,如果编测试用例就更大了。注意文件夹名不能有空格。
- 把tarball代码解压到这个文件夹
- 安装depot-tools。这一步请参考http://sites.google.com/a/chromium.org/dev/developers/how-tos/install-depot-tools
- 运行gclient sync --force
- 安装vs2008+sp1
- 安装Windows 7 SDK
- 让vs使用新SDK。Start > All Programs > Microsoft Windows SDK > Visual Studio Registration > Windows SDK Configuration Tool.
- 安装DirectX SDK。在 MSVC|Tools|Options|Projects and Solutions|VC++ Directories 中, Include:
$(DXSDK_DIR)include
和 Lib:$(DXSDK_DIR)lib\x86
把chrome设为StartUp Project,这样可以不用编那些测试用例。
最新评论