Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1969|回复: 0

hg版本库( Mercurial code repository)中下载最新源码编译

[复制链接]

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
发表于 2015-12-11 20:28:31 | 显示全部楼层 |阅读模式
本帖最后由 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






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-3-28 18:34 , Processed in 0.089663 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表