博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
获取 Chromium 源代码以及环境配置
阅读量:4648 次
发布时间:2019-06-09

本文共 1644 字,大约阅读时间需要 5 分钟。

一、获取代码

a) 不下载代码,直接浏览,到这里: 或者这里: 

b) 快速下载代码包(tarball),到这里: , 下载完代码包之后也可以继续使用步骤 c 来完成操作。 

c) 使用工具gclient check out代码,下载这个工具: 

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

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

cd c:\chromiumtrunk

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

gclient sync

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

gclient runhooks --force

iv. 工具的具体使用看这里: 

 

二、配置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小时以上,看机器性能。

转载于:https://www.cnblogs.com/Bonker/p/3441897.html

你可能感兴趣的文章
Mysql5.7.16安装过程
查看>>
Linux文件查找命令find用法整理(locate/find)
查看>>
20175333曹雅坤实验四《Android程序设计》实验报告
查看>>
max(min)-device-width和max(min)-width的区别
查看>>
geolocation/ 百度地图api Geolocation 定位当前城市信息
查看>>
JAVA基础
查看>>
ruby的optparse使用小记
查看>>
Helper Devise: could not find the `Warden::Proxy` instance on request environment
查看>>
javascript--识别判断浏览器
查看>>
python实现的json数据以HTTP GET,POST,PUT,DELETE方式页面请求
查看>>
SQL语句增加列、修改列类型、修改列、删除列
查看>>
DataTable相关
查看>>
c++中wstring 和 string的转换
查看>>
Linux的历史
查看>>
ArcGIS API For Silverlight使用在线地图的多种方法总结
查看>>
如何定义 Java 中的方法
查看>>
kmp算法(模板)
查看>>
Alpha冲刺阶段博客汇总
查看>>
python网络编程
查看>>
选择卓越
查看>>