gecko-dev/media/libstagefright
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
..
binding Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester 2016-08-06 00:49:26 -04:00
frameworks/av Bug 1285928: [mp4] Ignore non-supported entries in edit list. r=kentuckyfriedtakahe 2016-07-19 12:02:46 +10:00
gtest Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
patches Bug 1016150 - Fix Windows date assert in libstagefright demuxer; r=cpearce 2014-06-09 18:07:46 +12:00
ports Bug 1150357: Remove libstagefright's stdbool.h to fix MSVC 2015 CTP 6 build, r=cpearce 2015-04-01 18:49:24 -10:00
stubs Bug 1143575. Add RefBase #include to stagefright stubs. r=cpearce 2015-05-12 15:36:19 +12:00
system/core Bug 1255866 - stagefright: Fix unused variable warnings. r=ajones 2016-03-21 14:20:43 -07:00
additional_headers Bug 1211741 - Remove libstagefright ID3 files. r=k17e 2015-10-06 14:24:00 +02:00
checkout.sh Bug 908503: Change to stagefright demuxer; r=cpearce 2014-05-22 14:42:39 +12:00
files.py Bug 908503: Change to stagefright demuxer; r=cpearce 2014-05-22 14:42:39 +12:00
moz.build Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester 2016-08-06 00:49:26 -04:00
update-patches.sh Bug 908503: Change to stagefright demuxer; r=cpearce 2014-05-22 14:42:39 +12:00