firemail
标题:
hg版本库( Mercurial code repository)中下载最新源码编译
[打印本页]
作者:
hechengjin
时间:
2015-12-11 20:28
标题:
hg版本库( Mercurial code repository)中下载最新源码编译
本帖最后由 hechengjin 于 2015-12-11 20:37 编辑
https://developer.mozilla.org/en-US/docs/Simple_Thunderbird_build
1.安装
Visual Studio Community 2013
或从网盘下载
2.安装
MozillaBuild
或从网盘下载
http://pan.baidu.com/s/1eQe3D0u
MozillaBuildSetup-Latest.exe安装后 运行start-shell-msvc2013.bat
3.下载源码
在命令行中执行如下命令//获取源码
hg clone
http://hg.mozilla.org/comm-central
//获取依赖库
cd comm-central
python client.py checkout
4.创建配置文件
回到
comm-central 目录,创建编译配置文件.mozconfig
echo 'ac_add_options --enable-application=mail' > .mozconfig
echo 'ac_add_options --enable-calendar' >> .mozconfig
echo 'ac_add_options --enable-debug' >> .mozconfig
5.comm-central 目录下编译源码
Before you start, make sure that the version you checked out is not busted. For hg tip, you should see green Bs on
https://treeherder.mozilla.org/#/jobs?repo=comm-central
//执行编译
./mozilla/mach build
6.comm-central 目录下运行程序
./mozilla/mach run
7.comm-central 目录下更新到最新源码
python client.py checkout
8.更新源码后再次在comm-central 目录下编译
./mozilla/mach build
9.只针对 C或C++文件的修改进行编译
./mozilla/mach build binaries
10.修改javascript和xul文件
在windows下编译:
./mozilla/mach build path/to/dir -----最好在相关改变的父目录执行
在
Mac OS X or Linux
不用编译,
since the files in the object directory are linked to the ones in the source directory.
11.其它文件的改变,执行全量编译
./mozilla/mach build
欢迎光临 firemail (http://firemail.wang:8088/)
Powered by Discuz! X3