mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
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 --> |
||
---|---|---|
.. | ||
Servo2D | ||
.gitignore | ||
fake-ld.sh | ||
openssl.sh | ||
README.md | ||
toolchain.cmake |
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.