firemail

标题: development [打印本页]

作者: Qter    时间: 2020-8-13 15:59
标题: development
本帖最后由 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
作者: Qter    时间: 2020-8-14 14:36
打包中文版本
  1. ./mach build
  2. ./mach package
  3. ./mach build installers-zh-CN
复制代码
同时打包中英文版本


作者: Qter    时间: 2020-8-24 10:50
本帖最后由 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?增量编译
编译缓存   


配置文件
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


作者: Qter    时间: 2020-8-25 14:44
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


作者: Qter    时间: 2020-8-31 19:21
开发向导 https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide




欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3