|
板凳
楼主 |
发表于 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:JavaScript or XUL Files (Windows Only):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:- ./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/配置编译选项
- cd objxxx
- cd toolkit/xre
- mozmake
- cd toolkit/library
- mozmake
复制代码 d
|
|