Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1692|回复: 4
打印 上一主题 下一主题

development

[复制链接]

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
跳转到指定楼层
楼主
发表于 2020-8-13 15:59:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 Qter 于 2020-8-13 18:01 编辑

修改obj下的文件,执行如下命令生效
./mach run -purgecache
修改源码下的文件,执行如下命令生效
./mach build faster


命令参数
  1. -purgecaches -no-remote -profile $(TopObjDir)\tmp\profile-default -wait-for-browser
复制代码
环境
  1. MOZ_LOG=IMAP:5,nsPipe:5,nsStreamPump:5,timestamp
  2. MOZ_LOG_FILE=F:\Thunderbird_build\source\obj_zh_CN\dist\bin\imap.log
复制代码
./mach build-backend -b VisualStudio
回复

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
沙发
 楼主| 发表于 2020-8-14 14:36:20 | 只看该作者
打包中文版本
  1. ./mach build
  2. ./mach package
  3. ./mach build installers-zh-CN
复制代码
同时打包中英文版本

回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
板凳
 楼主| 发表于 2020-8-24 10:50:07 | 只看该作者
本帖最后由 Qter 于 2020-9-1 09:51 编辑

Rebuilding Specific Parts
If you have made many changes, but only want to rebuild specific parts, you may run the following commands.
C or C++ Files:
  1. ./mach build binaries
复制代码
JavaScript or XUL Files (Windows Only):
  1. ./mach build path/to/dir
复制代码
Replace path/to/dir with the directory with the files changed.
This is the tricky bit since you need to specify the directory that installs the files, which may be a parent directory of the changed file's directory. For example, to just rebuild the Lightning calendar extension:
  1. ./mach build comm/calendar/lightning
复制代码

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Mozilla_build_FAQ
Making builds fasterHow can I build only the parts I've changed?
  • In general, change into your objdir, change down to the specific directory where you want to build (the directory structure of the objdir matches the structure of the source dirs), and type just "make" (or "gmake" if necessary). This only works if you find a directory that contains a "Makefile" (the equivalent directory in the source tree will contain a "Makefile.in"). If you want to get even more specific than that, you can try "make <filename>.obj".
  • If you have changed code of Gecko, e.g. in content/, dom/ or layout/, you also need to build make -C layout/build/
  • With libxul (all code in one library, which is the default for opt builds now), you need to also build make -C toolkit/library/
  • On Mac, you will also have to build make -C browser/app
增量编译
编译缓存   


配置文件
confvars.sh : 编译选项存放文件包括不可用命令行选项
Note that build options, including options not usable from the command-line, may appear in "confvars.sh" files in the source tree.
https://developer.mozilla.org/zh-CN/docs/配置编译选项






  1. cd objxxx
  2. cd toolkit/xre
  3. mozmake
  4. cd toolkit/library
  5. mozmake
复制代码
d

回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
地板
 楼主| 发表于 2020-8-25 14:44:52 | 只看该作者
there's no official recommendation for editors. Amongst Firefox developers who were employees, when we did a survey a while back it was roughly split equally between atom/vscode/sublime, though I don't know about the emacs/vim numbers, I suspect they were lower
The editor isn't important as long as you're comfortable with it. We have things like ESLint/prettier to ensure expected code layouts etc

回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
5#
 楼主| 发表于 2020-8-31 19:21:57 | 只看该作者
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 06:04 , Processed in 0.071241 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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