我如何构建 mozilla 项目

how I can build mozilla projects

我发现 https://github.com/mozilla/gecko-dev/tree/master/b2g Mozilla 存储库中有 moz.build 文件,任何人都可以帮助我如何构建这个插件。使用 moz.build 构建项目需要使用哪些工具?

谢谢

如果您正在尝试构建 B2G (Firefox OS),那么您应该按照 here. But I have to advise you that you're using the wrong repository if that's your objective, since the correct one for B2G should be this.

中记录的过程进行操作

在任何情况下,您都需要使用以下命令安装 Linux 的构建先决条件,如 here 所述:

wget -O bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py

现在,如果您真的只想在链接的存储库中构建 b2g 文件夹,下载并安装先决条件后,只需从 gecko-dev 的根目录发出以下命令:

./mach build b2g

这将调用 Mozilla 使用的构建系统 mach 来构建 b2g 目录中的代码。