gecko-dev/build/moz.configure
Nathan Froyd f7fb6722a6 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
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.
2016-08-06 00:49:26 -04:00
..
android-ndk.configure Bug 1289691 - Get b2g to build again r=glandium 2016-07-27 01:31:08 -07:00
checks.configure Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
compilechecks.configure Bug 1269517 - Implement check_header in Python configure. r=glandium 2016-07-26 15:27:19 -07:00
headers.configure Bug 1269517 - Move various header checks to Python configure. r=glandium 2016-07-26 15:27:19 -07:00
init.configure Bug 1288313 - Ensure the host and target compilers build for the right endianness. r=chmanchester 2016-07-21 08:24:45 +09:00
java.configure Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
memory.configure Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
old.configure merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
pkg.configure Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
rust.configure Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester 2016-08-06 00:49:26 -04:00
toolchain.configure merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
util.configure Bug 1290040 - Make find_program return short paths automatically when paths contain spaces on Windows. r=gps 2016-08-02 13:20:44 +09:00
windows.configure Bug 1291140 - Deduce Universal CRT SDK path from INCLUDE and LIB when it's not in WINDOWSSDKDIR. r=chmanchester 2016-08-02 15:45:08 +09:00