зеркало из https://github.com/mozilla/gecko-dev.git
f7fb6722a6
This patch is really two separate changes. The first change is that rust crates are large, standalone entities that may contain multitudes of source files. It therefore doesn't make sense to keep them in SOURCES, as we have been doing. Moving to use cargo will require a higher-level approach, which suggests that we need a different, higher-level representation for Rust sources in the build system. The representation here is to have the build system refer to things defined in Cargo.toml files as the entities dealt with in the build system, and let Cargo deal with the details of actually building things. This approach means that adding a new crate to an existing library just requires editing Rust and Cargo.toml files, rather than dealing with moz.build, which seems more natural to Rust programmers. By having the source files for libraries (and binaries in subsequent iterations of this support) checked in to the tree, we can also take advantage of Cargo.lock files. The second is that we switch the core build system over to building via cargo, rather than invoking rustc directly. We also clean up a number of leftover things from the Old Way of doing things. A number of tests are added to confirm that we'll only permit crates to be built that have dependencies in-tree. |
||
---|---|---|
.. | ||
annotationProcessors | ||
autoconf | ||
build-clang | ||
clang-plugin | ||
compare-mozconfig | ||
docs | ||
gabi++ | ||
macosx | ||
mobile | ||
moz.configure | ||
package/mac_osx | ||
pgo | ||
pymake | ||
release | ||
sanitizers | ||
stlport | ||
unix | ||
util | ||
valgrind | ||
win32 | ||
win64 | ||
.gdbinit_python.in | ||
.lldbinit.in | ||
Makefile.in | ||
__init__.py | ||
appini_header.py | ||
application.ini | ||
automation-build.mk | ||
automation.py.in | ||
binary-location.mk | ||
buildconfig.py | ||
checksums.py | ||
defines.sh | ||
dumbmake-dependencies | ||
gecko_templates.mozbuild | ||
gen_test_packages_manifest.py | ||
genrc.sh | ||
gyp.mozbuild | ||
mach_bootstrap.py | ||
moz-automation.mk | ||
moz.build | ||
mozconfig.automation | ||
mozconfig.cache | ||
mozconfig.clang-cl | ||
mozconfig.common | ||
mozconfig.common.override | ||
mozconfig.rust | ||
mozconfig.vs-common | ||
mozconfig.win-common | ||
qemu-wrap | ||
sccache.mk | ||
subconfigure.py | ||
submit_telemetry_data.py | ||
telemetry-schema.json | ||
templates.mozbuild | ||
test_templates.mozbuild | ||
update-settings.ini | ||
upload.py | ||
variables.py | ||
virtualenv_packages.txt | ||
windows_toolchain.py |