gecko-dev/servo/ports
Xidorn Quan ab54f9a291 servo: Merge #12498 - Support generating bindings for MSVC (from upsuper:msvc-bindgen); r=emilio
<!-- Please describe your changes on the following line: -->

This pull request includes several patches to the binding generating script to make it work with MSVC. The generated files are not updated because they may not be compatible with other platforms which the majority of developers are working on.

Only `regen.py` is modified. The two `.sh` files are not. Those files are very platform-specific and I don't think it's worth to make them work on Windows at all, and my hope is that we can get rid of those files and only use `regen.py`. I imagine the only left steps to get there are:

1. make clang version detectable via `bindgen` so that we get reliable clang version without needing to duplicate the library searching work (which has already been done in `clang-sys`)
2. checkout the git repo inside the python script and run `cargo build` there

BTW, it seems to me nightly Rust is not required to build `bindgen`, and thus we can probably get rid of the `multirust` detection. (Even if we need that, I think we should prefer `rustup` and optionally fallback to `multirust`. I know `rustup` is not yet available on Homebrew, though...)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is a change to binding generating script

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @emilio

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ce85f1cddb05689c231b1a17dfd2d374ad48377
2016-07-18 22:34:18 -07:00
..
cef servo: Merge #12497 - Update WR to get fix for texture atlas assert (from glennw:wr-update); r=emilio 2016-07-18 18:46:14 -07:00
geckolib servo: Merge #12498 - Support generating bindings for MSVC (from upsuper:msvc-bindgen); r=emilio 2016-07-18 22:34:18 -07:00
glutin servo: Merge #12461 - Add a keyboard shortcut (Command + Q on Mac or Control + Q on other O… (from andrewdavidmackenzie:enable-quit-keyboard-shortcut); r=ConnorGBrewster 2016-07-15 09:33:06 -07:00