diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2018-09-12 17:21:51 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2018-10-29 08:49:41 -0500 |
commit | dab8f4a97fe8c122d24281ea7c62ccb3c7bba621 (patch) | |
tree | fec6a477145188b9dda3713c8ff8992a2f60b030 /support/magicleap/README.md | |
parent | e580250d5d99060b0ee8d88e3ff66b6d9ec24050 (diff) | |
download | servo-dab8f4a97fe8c122d24281ea7c62ccb3c7bba621.tar.gz servo-dab8f4a97fe8c122d24281ea7c62ccb3c7bba621.zip |
Support building for Magic Leap.
Diffstat (limited to 'support/magicleap/README.md')
-rw-r--r-- | support/magicleap/README.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/support/magicleap/README.md b/support/magicleap/README.md new file mode 100644 index 00000000000..5aee8dbaea8 --- /dev/null +++ b/support/magicleap/README.md @@ -0,0 +1,31 @@ +# 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. |