Commit Graph

845 Commits

Author SHA1 Message Date
nfroyd@mozilla.com
ff59ffaae8 Bug 1302028 - part 5 - add bindgen feature to gecko-side Cargo.toml files for propagation to geckoservo; r=Manishearth 2017-01-20 16:33:04 +00:00
Aaron Klotz
002dea23d1 Bug 1331738: Include mozilla-config.h in xulrunner.rc; r=tbsaunde
MozReview-Commit-ID: 2YSVJGmZnU0

--HG--
extra : rebase_source : 6234c27b017b6b60124c782f5f87962d2e5a9aa4
2017-01-17 14:12:17 -07:00
Alfredo.Yang
a455e9f1e7 Bug 1328221 - Support GASpecificConfig audio channel in rust mp4 parser. r=rillian
MozReview-Commit-ID: IQKxtjatU9J

--HG--
extra : rebase_source : d710f6f639415e1ff7d99b39a6ef97dfd65868e3
2017-01-11 09:03:30 +08:00
Trevor Saunders
2952bb9ab3 bug 1301148 - add custom gecko interface r=aklotz, mshal 2017-01-05 10:48:09 -05:00
Masatoshi Kimura
a654e25d18 Bug 1317569 - Unship d3dcompiler_43.dll. r=glandium
MozReview-Commit-ID: DSOOKc94wNV

--HG--
extra : rebase_source : 007a4c974ba16f2dc6e77e4b78e919769e0af8d1
extra : source : b448674d91482b214fb2a6c4e83d2e86638f28ef
2016-11-15 06:56:01 +09:00
Alfredo.Yang
7b19067da5 Bug 1323390 - Support audio profile in mp4 rust parser. r=kinetik
MozReview-Commit-ID: DLfLdgvc7B1

--HG--
extra : rebase_source : ac9b059759f73c92f7678ed137f0366e35fdc800
2016-12-14 16:01:43 +08:00
Ralph Giles
924c94f74f Bug 1324920 - Update mozjs_sys vendored crates. r=fitzgen,sfink
Update the vendored third-party dependencies for the mozjs-sys crate.
This picks up recent bug-fixes and reduces noise in unrelated runs
of 'mach vendor'.

The libc crate is also used by the rust url parser.

gcc 0.3.35 -> 0.3.40
libc 0.2.16 -> 0.2.18
libz-sys 1.0.6 -> 1.0.10

MozReview-Commit-ID: 5ri4nOtQQ1n

--HG--
extra : rebase_source : e3bfd2be7f3e615822a9177634dd8545236f0a19
2016-12-20 14:24:05 -08:00
sotaro
4449bd38fd Bug 1324338 - Remove static link to GLES lib on android r=snorp 2016-12-21 10:22:13 +09:00
Manish Goregaokar
17e5f36da9 Bug 1324193 - Bump rust-url to 1.2.4; r=valentin
MozReview-Commit-ID: 2EBQs6hIpku

--HG--
extra : rebase_source : 3339b4220e5452526aa22323d32deb46a997ad0e
2016-12-17 03:03:35 -08:00
Michael Layzell
d50e9eed2b Bug 1318428 - Use the nsstring bindings in rust-url-capi, r=valentin
This patch also drops the pretense that rust-url-capi will be used from
outside of c++, or that it will be used outside of mozilla-central,
removing the ifdef __cplusplus code, and including the C++ header
"nsString.h".

MozReview-Commit-ID: BULhHf3DObe
2016-11-24 12:23:09 -05:00
Alfredo.Yang
c9c1355882 Bug 1313556 - update rust parser for pssh parsing. r=rillian
MozReview-Commit-ID: KH8K7mizUHl

--HG--
extra : rebase_source : 8e53260bbfcee797bbf05c2504810c7a1ad81a55
2016-11-10 14:50:30 +08:00
Ralph Giles
b9e0fc97c3 Bug 1314460 - Update rust mp4parse to v0.6.0. r=kinetik
Result of running the update script.

MozReview-Commit-ID: 4rqFqaFJ028

--HG--
extra : rebase_source : 011cd38d524e2609e2656a084c2ac920d407488f
2016-11-01 16:07:32 -07:00
Michelangelo De Simone
6314d37360 Bug 1310020 - Remove DOM/bluetooth and related code. r=jst
MozReview-Commit-ID: IEhwzzBgb3x

--HG--
extra : rebase_source : 664e30c1d3babc71b2ef77c00e393fa767f4c159
2016-10-28 14:25:23 -07:00
Manish Goregaokar
f68c6230d6 Bug 1151899 - Include rust-url-capi (leave-open); r=valentin,ted
MozReview-Commit-ID: 1ITlPLvwzF4
2016-10-28 16:34:21 -07:00
Wes Kocher
90f6b234f3 Backed out 2 changesets (bug 1151899) for build bustage a=backout
Backed out changeset 7b5270bac41b (bug 1151899)
Backed out changeset 62f38c70d152 (bug 1151899)
2016-10-28 14:27:45 -07:00
Manish Goregaokar
00d282bd65 Bug 1151899 - Include rust-url-capi; r=valentin,ted
MozReview-Commit-ID: 1ITlPLvwzF4
2016-10-28 14:03:13 -07:00
Ted Mielczarek
e9130abab5 bug 1305731 - Revert workaround from bug 1301751 now that we have updated to Rust 1.12. r=froydnj
MozReview-Commit-ID: 3akbELExfKT

--HG--
extra : rebase_source : 0308214bae6eb683df65991fc91d41679acd3530
2016-10-17 10:47:30 -04:00
Carsten "Tomcat" Book
d6850a3a86 merge mozilla-inbound to mozilla-central a=merge 2016-10-17 11:19:02 +02:00
Nathan Froyd
e818915fae Bug 1304815 - rearrange Rust crate structure for newer Rust releases; r=ted.mielczarek
In our current Rust world, we have the following dependency structure:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust
                |
                +--> gkrust-gtest

This structure results in link errors with multiply-defined symbols
between gkrust-gtest and gkrust with newer Rust releases when linking
xul-gtest.so.  So we have to do something different.

Our new structure is:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust --+-> gkrust-shared
                |                               |
                +--> gkrust-gtest --------------+

and we enforce that a given shared library can only have at most one
Rust library that it depends on.  Said Rust library is assumed to
include all significant Rust dependencies of the dependent static
libraries as well.  (In the above structure, gkrust is simply a wrapper
around gkrust-shared, so gkrust-gtest doesn't have to include gkrust as
a dependency.)
2016-10-15 18:16:13 -04:00
Sebastian Hengst
2bd34f750f Bug 1306137 - remove b2g camera code: Remove MOZ_B2G_CAMERA. r=aosmond
MozReview-Commit-ID: D207i9boeTJ

--HG--
extra : rebase_source : 390031b8a74ba145008328129079dcb0dee5a6c1
2016-09-28 21:10:32 +02:00
Chris Pearce
35e13f726f Bug 1308076 - Move ClearKeyCencParser to PsshParser library. r=glandium
To validate the PSSH init data passed to EME, I'd like to reuse the same
PSSH parser that the ClearKey CDM shared library uses. So move the code
out of gmp-clearkey and into its own library, so we can link it statically
into code that needs to use it.



MozReview-Commit-ID: 7xSUSmCueJz

--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
extra : source : 78dcbc5d3c26547c63269eb14034a67863cf28de
2016-10-06 20:23:38 +13:00
Enes Goktas
43ddfab91c Bug 1303227 - Wrap libxul.so linker to prevent getting the linking process killed; r=glandium
This patch removes the memory usage tracking in the script that wraps the
linking of the xul library. This patch also generalizes the wrapping of the
xul linking process to all platforms.

MozReview-Commit-ID: HyncF3aVwdx

--HG--
extra : rebase_source : 8fb90c896dc57793d1c9d9aa4e8492dec8697e36
2016-09-20 17:58:34 -07:00
Ted Mielczarek
abdba70d60 bug 1301751 - work around llvm-dsymutil crash by building rust with debuginfo=1 instead of -g. r=froydnj
MozReview-Commit-ID: 5pK8okLw0Cl

--HG--
extra : rebase_source : f1c366ae3751bcd70272e77c7754fb4adeafdd7b
2016-09-27 06:24:24 -04:00
Michael Layzell
dace0b2e39 Bug 1295762 - Part 1: Implement rust bindings to XPCOM's string types, r=froydnj
MozReview-Commit-ID: 7fnWSc3AzlR
2016-09-20 11:26:43 -04:00
Michael Layzell
05bd5a1076 Bug 1300208 - Allow specifying multiple rust crates to mozbuild within the same FINAL_LIBRARY, r=froydnj
MozReview-Commit-ID: IIjV4Kg7wOv
2016-09-20 11:26:43 -04:00
Carsten "Tomcat" Book
25a074d342 merge mozilla-inbound to mozilla-central a=merge 2016-09-15 11:59:50 +02:00
Ted Mielczarek
e254cc07b8 bug 1298422 - vendor byteorder into third-party/rust. r=froydnj
MozReview-Commit-ID: ChKCKiIVEfq

--HG--
extra : rebase_source : c0da7411a2f0b7fc171c9ebb99fce91361944aa5
2016-09-08 15:12:34 -07:00
Ralph Giles
73dcf90f19 Bug 1301065 - Update rust mp4parse to v0.5.1. r=kinetik
Result of running the update script, followed by `cargo update`
in tookit/library/rust/.

MozReview-Commit-ID: LNdvuOqVx9a

--HG--
extra : rebase_source : 70b263d1ba1867b5b2b907530fab4beedc25ae56
2016-09-13 09:16:44 -07:00
Sebastian Hengst
c2d659643b Backed out changeset 8c9117de1e7f (bug 1300152) 2016-09-09 16:53:45 +02:00
Ted Mielczarek
d98ac10c0c bug 1300152 - Add nsIDebug2::rustPanic to allow triggering Rust panic for testing. r=froydnj
For testing purposes it will be useful to be able to trigger crashes in Rust
code. Being able to trigger a panic seems like a good place to start. This
will make it easier to validate improvements in crash reporting.

MozReview-Commit-ID: Bh5rBieLLWW

--HG--
rename : toolkit/crashreporter/test/unit/test_crash_moz_crash.js => toolkit/crashreporter/test/unit/test_crash_rust_panic.js
extra : rebase_source : 7cfc08e62de49de869b97ae96630db573f882f18
2016-09-02 13:22:21 -04:00
Mike Hommey
ace23258e7 Bug 1299616 - Rearrange libxul linking such that StaticXULComponentStart always is first. r=gps
When building gtest libxul with LTO, the fact that
StaticXULComponentStart is not passed first to the linker makes the
linker pull the NSModule symbols out of all the other objects first,
presumably because linking the gtest objects (which appear first) pulls
code from the other non StaticXULComponent* objects first.

So, to make things link properly with LTO, we trick the build system
to always put StaticXULComponentStart first.

--HG--
extra : rebase_source : 7ddda118903f5845f6b6d12db2bf39cd22d67ab5
2016-09-02 07:08:16 +09:00
Ralph Giles
104d30ab53 Bug 1300219 - Update mp4parse to v0.5.0. r=kinetik
Result of running the update script and updating gecko's
integration crate for the layout change.

MozReview-Commit-ID: GaIMFKmPmtf

--HG--
extra : rebase_source : 0d3a2f1d211840879e562cb56afcc9ef7e38c730
2016-09-02 14:27:50 -07:00
Wes Kocher
5c55e46366 Backed out changeset d332de446548 (bug 1294650) 2016-09-02 11:02:59 -07:00
Phil Ringnalda
d5a11536ff Back out changeset 58b07057fe25 (bug 1299159) on suspicion of breaking Windows PGO builds
CLOSED TREE
2016-09-01 19:43:22 -07:00
Benjamin Smedberg
388e11f997 Bug 1299159 - Stop exporting *_NSModule from xul.dll, r=glandium
MozReview-Commit-ID: HXxC5Ogquxn

--HG--
extra : rebase_source : 8998c61cfe47efd95d318030887726394b92a4a8
2016-08-31 12:48:52 -04:00
Wes Kocher
513c6f555b Backed out 2 changesets (bug 1295762) for build bustage a=bustage CLOSED TREE
Backed out changeset b4b5fa96e8ee (bug 1295762)
Backed out changeset 30bb58fbbeb8 (bug 1295762)
2016-08-30 16:17:30 -07:00
Michael Layzell
7ebbb65581 Bug 1295762 - Part 1: Implement rust bindings to XPCOM's string types, r=froydnj
MozReview-Commit-ID: 7fnWSc3AzlR
2016-08-30 16:18:54 -04:00
Jim Mathies
2faf924adc Bug 1294650 - Install shim 'qipcap' dlls into the Firefox folder to circumvent dll injection by the 3rd party Websense product. r=aklotz
MozReview-Commit-ID: 11qJbfim7Lm
2016-08-22 06:53:38 -05:00
Wes Kocher
45575a7f86 Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change

--HG--
extra : amend_source : e590e515ab273d097f88b35be0e5c999502ebdf4
2016-08-16 22:07:30 -07:00
Mike Hommey
e7928a74b0 Bug 1294639 - Move --with-servo to python configure. r=chmanchester
Subtly, as toolkit/moz.configure happens before toolchain tests, we
can't set MOZ_SERVO_LIBS from there. And toolkit/moz.configure is
not always included either, making things awkward to do in python
configure.

OTOH, there's only one place where MOZ_SERVO_LIBS is used, and the
corresponding setup can actually be done there (in moz.build) instead.

I think we shouldn't shy away from moving things this way.
2016-08-16 08:32:55 +09:00
Nathan Froyd
d7beb70278 Bug 1268727 - part 2 - compile Rust code with panic=abort; r=chmanchester 2016-08-09 18:10:19 -04:00
Ralph Giles
9898427959 Bug 1295666 - Build byteorder as a separate crate. r=kinetik
Run the updated import script to split the in-tree byteorder
code into a separate directory and build it as a dependent crate.

MozReview-Commit-ID: EI5X4icOdmM

--HG--
extra : rebase_source : fa0d4cce8503ede5d2fbefc4d4b78735f2140c33
2016-08-16 11:06:46 -07:00
Nathan Froyd
047fb141e9 Bug 1268547 - turn on LTO support for the Rust parts of libxul; r=chmanchester 2016-08-08 18:32:34 -04:00
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
Mike Shal
2238229a3b Bug 1290502 - Avoid duplicate entries in dependentlibs.list; r=ted
MozReview-Commit-ID: CFyf1W3oFju

--HG--
extra : rebase_source : c51082373cf8cfc89efa8a89bfda65c298c03ce0
2016-07-29 14:36:40 -04:00
Wes Kocher
7fcea033ba Backed out changeset 9d5365ee6944 (bug 1290502) for mass bustage a=backout CLOSED TREE 2016-08-03 10:17:40 -07:00
Carsten "Tomcat" Book
6b13b3cde6 Merge mozilla-central to autoland 2016-08-03 17:08:48 +02:00
Mike Shal
d3fb092dbf Bug 1290502 - Avoid duplicate entries in dependentlibs.list; r=ted
MozReview-Commit-ID: CFyf1W3oFju

--HG--
extra : rebase_source : 493075686e73739f9a76b1a21bd629083d65f2f9
2016-07-29 14:36:40 -04:00
Nathan Froyd
fb331bdb6d Bug 1289847 - part 2 - work around Mac linking failures when Rust is enabled; r=mshal
Current stable versions of Rust use two Rust-specific personality
routines to perform exception handling, which empirically does not play
well with the Mac linker's optimizations for using compact unwind
formats. Nightly Rust has solved this issue, but for now, we'll have to
use -no_compact_unwind to disable the linker optimization.  The size
impact is negligible (0.02%) and will be going away once nightly Rust
becomes stable.
2016-08-03 04:24:33 -04:00
Mike Shal
965ee10298 Bug 1254115 - Move dependentlibs.py invocation to moz.build; r=ted
MozReview-Commit-ID: D8NF03tNuTX

--HG--
extra : rebase_source : b8e4f9b672e5e9555cfc841c63e1aeb9130263d3
2016-05-09 17:34:13 -04:00