servo/support/magicleap
bors-servo c0aa4ada60
Auto merge of #22095 - asajeffrey:magicleap-icon, r=jdm
Add icon for launching Magic Leap Servo

<!-- Please describe your changes on the following line: -->

Add an icon for launching Magic Leap Servo.

---
<!-- 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
- [X] These changes do not require tests because we don't test ML

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22095)
<!-- Reviewable:end -->
2018-11-09 00:37:59 -05:00
..
Servo2D Auto merge of #22095 - asajeffrey:magicleap-icon, r=jdm 2018-11-09 00:37:59 -05:00
.gitignore Support building for Magic Leap. 2018-10-29 08:49:41 -05:00
fake-ld.sh Support building for Magic Leap. 2018-10-29 08:49:41 -05:00
openssl.sh Consistent servo-deps download URLs 2018-11-06 12:20:10 +01:00
README.md Support building for Magic Leap. 2018-10-29 08:49:41 -05:00
toolchain.cmake Support building for Magic Leap. 2018-10-29 08:49:41 -05:00

Servo for Magic Leap

Build requirements

Currently, we only support building Servo for the Magic Leap on macOS.

Install the Magic Leap Lumin and Lumin Runtime SDKs.

Get a signing key for the magic leap app.

Optionally, install Visual Studio Code and the Magic Leap plugin.

Building the mlservo library

Build the mlservo library:

MAGICLEAP_SDK=*directory*  ./mach build -d --magicleap

This builds a static library target/aarch64-linux-android/debug/libmlservo.a.

Building the Servo2D application

From inside the support/magicleap/Servo2D directory:

mabu Servo2D.package -t device -s *signing key*

This builds the application .out/Servo2D/Servo2D.mpk.

Alternatively, in Visual Studio code, open the support/magicleap/Servo2D directory, and use the Terminal/Run Build Task... menu option to build the Servo2D application.