1、平台
Win10
Visual studio 2015update3
安装Cumulative Servicing Release for Microsoft VisualStudio 2015 Update 3 (KB3165756)。
至少4G RAM,建议8G,当然越多越好。35G硬盘空间。
2、源码
本文档编写时,是从http://ftp.mozilla.org/pub/firefox下载的源码:
firefox-57.0b8.source.tar.xz。解压至:d:\firefox57
3、前言
大多数windows机器上并没有安装Mozilla编译过程需要的众多工具。除Visual Studio外,你必须安装MozillaBuild,该工具是一系列软件的合集,包括正确版本的bash, GNU make, autoconf, Mercurial和其它许多的软件。
Win10
Visual studio 2015update3
安装Cumulative Servicing Release for Microsoft VisualStudio 2015 Update 3 (KB3165756)。
至少4G RAM,建议8G,当然越多越好。35G硬盘空间。
2、源码
本文档编写时,是从http://ftp.mozilla.org/pub/firefox下载的源码:
firefox-57.0b8.source.tar.xz。解压至:d:\firefox57
3、前言
大多数windows机器上并没有安装Mozilla编译过程需要的众多工具。除Visual Studio外,你必须安装MozillaBuild,该工具是一系列软件的合集,包括正确版本的bash, GNU make, autoconf, Mercurial和其它许多的软件。
4、准备工作
4.1 安装MozillaBuild
本文档编写时,最新版本为MozillaBuildSetup-3.0。
将C:\mozilla-build,加入到系统环境变量中,并上移到最前。
4.1 安装MozillaBuild
本文档编写时,最新版本为MozillaBuildSetup-3.0。
将C:\mozilla-build,加入到系统环境变量中,并上移到最前。
4.2安装rust
Source\Rust\rust-1_20_0-i686-pc-windows-msvc.msi,根据不同的平台选择。
注:编译Firefox57,需要rust 版本号大于1.19.0。
Source\Rust\rust-1_20_0-i686-pc-windows-msvc.msi,根据不同的平台选择。
注:编译Firefox57,需要rust 版本号大于1.19.0。
4.3修改mozilla-build查询路径
A、用记事本打开C:\mozilla-build\start-shell.bat,修改如下:
SET PATH=C:\mozilla-build;C:\rust\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem
A、用记事本打开C:\mozilla-build\start-shell.bat,修改如下:
SET PATH=C:\mozilla-build;C:\rust\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem

本文详细记录了在Windows 10环境下使用Visual Studio 2015编译Firefox 57.0b8的过程,涵盖了从源码获取、依赖库安装到编译配置的每一步,旨在帮助开发者了解和定制自己的Firefox浏览器。
最低0.47元/天 解锁文章
2577

被折叠的 条评论
为什么被折叠?



