首页 技术 正文
技术 2022年11月6日
0 收藏 928 点赞 1,011 浏览 1987 个字

一、获取代码

a) 不下载代码,直接浏览,到这里:http://src.chromium.org/viewvc/chrome/ 或者这里:http://code.google.com/p/chromium/source/search

b) 快速下载代码包(tarball),到这里:http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html , 下载完代码包之后也可以继续使用步骤 c 来完成操作。

c) 使用工具gclient check out代码,下载这个工具:https://src.chromium.org/svn/trunk/tools/depot_tools.zip

i. 解压,加入path环境变量

ii. 运行下面的命令行取代码

cd c:\chromiumtrunk

gclient config https://src.chromium.org/chrome/trunk/src

gclient sync

iii. 运行下面的命令行生成sln文件

gclient runhooks –force

iv. 工具的具体使用看这里:http://www.chromium.org/developers/how-tos/depottools

http://hovertree.com/

二、配置windows编译环境,编译代码(原文地址:http://www.chromium.org/developers/how-tos/build-instructions-windows )

a) 安装vs2010

b) 安装vs2010 sp1

c) 安装win sdk 8

i. 如果你的安装目录不是默认的目录,要增加以下的环境变量

GYP_DEFINES=windows_sdk_path=”path to sdk”

d) 安装dxdsdk jun10

i. 添加 $(DXSDK_DIR)\include; to the beginning of the ‘IncludePath’ property in %LOCALAPPDATA%\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props.

ii. 添加  $(DXSDK_DIR)\lib\x86; to the beginning of the ‘LibraryPath’ property in the same file. At this point the .props file will look like this:

<?xml version=”1.0″ encoding=”utf-8″?>
<Project DefaultTargets=”Build” ToolsVersion=”4.0″ xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″>
<PropertyGroup>    <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath>    <LibraryPath>$(DXSDK_DIR)\lib\x86;$(LibraryPath)</LibraryPath>

</PropertyGroup>
</Project>

iii. 同样的编辑文件: %LOCALAPPDATA%\Microsoft\MSBuild\v4.0\Microsoft.Cpp.x64.user.props:

<?xml version=”1.0″ encoding=”utf-8″?>
<Project DefaultTargets=”Build” ToolsVersion=”4.0″ xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″>  <PropertyGroup>
  <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath> <LibraryPath>$(DXSDK_DIR)\lib\x64;$(LibraryPath)</LibraryPath>
</PropertyGroup>
</Project>

iv. 不要用vs来编辑,直接用记事本吧,因为vs会增加一些编码。

v. 保证DirectX的SDK在查找顺序的第一位,否则会出现一些编译错误。

打开chrome.sln进行编译,初次编译预计5小时以上,看机器性能。

推荐:http://www.cnblogs.com/roucheng/p/texiao.html

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,958
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,482
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,328
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,111
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,743
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,777