servo/components
bors-servo 0699d38e80 Auto merge of #8288 - larsbergstrom:new_android_build, r=mbrubeck
New Android suppport

r/f? @mbrubeck

No need to r+ urgently; I want to do a little bit more testing of the release build, but I'm hoping to land this bit (moving to a more sane build process) next week.

The new version of building an APK:
1) Removes the glutin-based APK builder from the link step
2) Adds a build.rs step to the build of the final Servo library that adds the native code required by glutin's android_rs_glue (e.g., `ANativeActivity_onCreate` definition)
3) Replaces the link step with a `fake-ld.sh` script that instead creates a libservo.so
4) Adds a new mach `package` step to build the APK that has some Rust code that builds the library from a set of in-tree build files

This setup fixes a number of problems:
1) We can use gdb, because we use `ndk-build`, which adds the .gdbserver info, plus we keep around all of the build files (also required by the ndk gdb)
2) We can add more Java code & hooks to handle Android intents
3) We no longer have any git submodules or the awkward two-step build with android-rs-glue

Many other setups were tried (and failed). The most obvious ones is building a libservo.so from a `dylib` target from the servo build on Android. This doesn't work because you can't have a different default lib target on one platform than others in Cargo, and you also can't pass it in from the commandline (e.g., --lib does not have a dylib arg). Additionally, if you don't go through the intermediate libservo.rlib step (which removes unused symbols), then you end up with a TON of missing symbols because our -sys crates are super sloppy about that. I spent a few weeks beginning to clean them up, but since it's something we can't easily enforce (and new -sys packages will have this problem, too, since it's only an issue with the Android loader), it made more sense to me to just have the build set up to discard those unused bits of code before they ever get to the linker, much less the loader.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8288)
<!-- Reviewable:end -->
2015-11-05 05:51:48 +05:30
..
canvas Update euclid to 0.3 2015-10-28 21:34:23 +05:30
canvas_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
compositing Auto merge of #8314 - jdm:timeoutinvestigations, r=metajack 2015-11-05 04:08:30 +05:30
devtools Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
devtools_traits Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
gfx Mix stacking contexts into the positioned content list 2015-11-03 17:47:39 -08:00
gfx_traits Update euclid to 0.3 2015-10-28 21:34:23 +05:30
layout Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
layout_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
msg Fix serde_macros 2015-10-28 21:53:15 +05:30
net Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
net_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
plugins more refactoring 2015-10-30 20:26:29 +09:00
profile New Android suppport 2015-11-04 16:29:39 -06:00
profile_traits Auto merge of #8253 - connorimes:android-energy-profiling, r=mbrubeck 2015-10-30 12:26:10 +05:30
script Auto merge of #8318 - eefriedman:dead-sync-load, r=jdm 2015-11-05 03:21:04 +05:30
script_traits Handle multi-touch events from glutin 2015-11-03 08:56:34 -08:00
servo Auto merge of #8288 - larsbergstrom:new_android_build, r=mbrubeck 2015-11-05 05:51:48 +05:30
style counter-reset defaults to 0, not 1. 2015-11-04 10:55:16 +01:00
style_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
util Auto merge of #8314 - jdm:timeoutinvestigations, r=metajack 2015-11-05 04:08:30 +05:30
webdriver_server update image to 0.4.0 2015-10-21 08:37:41 +02:00
webdriver_traits Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00