windows下編譯Chrome瀏覽器

本人編譯環境:html

cpu:普通的雙核啦python

內存:2G(感受夠勉強,並且幹不了別的了)chrome

OS: Windows Server2003 sp2windows

IDE: Visual Studio 2008 sp1api

vs2008中文sp1補丁在這裏:ide

http://www.microsoft.com/zh-cn/download/details.aspx?id=13276svn

DirectX SDK: June 2010ui

http://www.microsoft.com/en-us/download/details.aspx?id=6812google

Windows SDK: 7.1spa

http://www.microsoft.com/en-us/download/details.aspx?id=8442

x86 ISO File Name: GRMSDK_EN_DVD.iso 

windows驅動開發包:WDK 7.1

http://www.microsoft.com/en-us/download/details.aspx?id=11800

未使用Cygwin.

1.depot_tools

Chromium和Chromium OS使用一個叫作depot_tools的腳本包來管理簽出與代碼審查。

http://dev.chromium.org/developers/how-tos/install-depot-tools

地址:

https://src.chromium.org/svn/trunk/tools/depot_tools.zip

下載後解壓到一個目錄裏(chrome編譯會產自不少中間文件等,會佔據大量硬盤空間,保證你這個盤下至少10G的剩餘磁盤空間,還不算源碼自己佔的幾個G,好吧15G+吧,呵呵) 

解壓的目錄記爲:###/depot_tools/

開啓命令行,cmd,而後cd到這個目錄裏:

而後執行gclient,這樣第一次使用時會下載python,svn等:

  
  
  
  
  1. ###/depot_tools> gclient  

2.下載Chromium的代碼 svn簽出或下載源碼包

SVN簽出:

  
  
  
  
  1.  
  1. gclient config http://src.chromium.org/svn/trunk/src  

  
  
  
  
  1. gclient sync --force 

 

下載源碼包*.tgz:

http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html

1.3G的文件解壓後好幾個G

3.編譯

src/chrome/chrome.sln這個解決方案,vs2008打開,而後編譯chrome項目就能夠了。 

生成文件在src/build/Debug目錄下。

截圖:

 

相關文章
相關標籤/搜索