mirror of
https://github.com/servo/servo.git
synced 2025-06-17 21:04:28 +00:00
Package both Servo2D and Servo3D in one magicleap mpk
This commit is contained in:
parent
c47575535c
commit
9a2ba596e5
5 changed files with 40 additions and 20 deletions
|
@ -57,8 +57,7 @@ PACKAGES = {
|
||||||
'target/release/brew/servo.tar.gz',
|
'target/release/brew/servo.tar.gz',
|
||||||
],
|
],
|
||||||
'magicleap': [
|
'magicleap': [
|
||||||
'target/magicleap/aarch64-linux-android/release/Servo2D.mpk',
|
'target/magicleap/aarch64-linux-android/release/Servo.mpk',
|
||||||
'target/magicleap/aarch64-linux-android/release/Servo3D.mpk',
|
|
||||||
],
|
],
|
||||||
'maven': [
|
'maven': [
|
||||||
'target/android/gradle/servoview/maven/org/mozilla/servoview/servoview-armv7/',
|
'target/android/gradle/servoview/maven/org/mozilla/servoview/servoview-armv7/',
|
||||||
|
@ -237,8 +236,7 @@ class PackageCommands(CommandBase):
|
||||||
|
|
||||||
mabu = path.join(env.get("MAGICLEAP_SDK"), "mabu")
|
mabu = path.join(env.get("MAGICLEAP_SDK"), "mabu")
|
||||||
packages = [
|
packages = [
|
||||||
"./support/magicleap/Servo3D/Servo3D.package",
|
"./support/magicleap/Servo.package",
|
||||||
"./support/magicleap/Servo2D/Servo2D.package",
|
|
||||||
]
|
]
|
||||||
if dev:
|
if dev:
|
||||||
build_type = "lumin_debug"
|
build_type = "lumin_debug"
|
||||||
|
@ -249,6 +247,7 @@ class PackageCommands(CommandBase):
|
||||||
mabu,
|
mabu,
|
||||||
"-o", target_dir,
|
"-o", target_dir,
|
||||||
"-t", build_type,
|
"-t", build_type,
|
||||||
|
"-r",
|
||||||
"GSTREAMER_DIR=" + env["GSTREAMER_DIR"],
|
"GSTREAMER_DIR=" + env["GSTREAMER_DIR"],
|
||||||
package
|
package
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
REFS = Servo3D
|
REFS = \
|
||||||
|
Servo2D/Servo2D \
|
||||||
DATAS = \
|
Servo3D/Servo3D
|
||||||
fonts.xml : etc/fonts.xml
|
|
||||||
|
|
||||||
# Servo SEGVs if we don't set the debuggable flag in the mpk's taildata
|
# Servo SEGVs if we don't set the debuggable flag in the mpk's taildata
|
||||||
# https://github.com/servo/servo/issues/22188
|
# https://github.com/servo/servo/issues/22188
|
|
@ -23,6 +23,7 @@ LDFLAGS.device = \
|
||||||
-L$(MLSDK)/lumin/stl/libc++/lib
|
-L$(MLSDK)/lumin/stl/libc++/lib
|
||||||
|
|
||||||
DATAS = \
|
DATAS = \
|
||||||
|
fonts.xml : etc/fonts.xml \
|
||||||
$(GSTREAMER_DIR)/system/lib64/*.so : bin/ \
|
$(GSTREAMER_DIR)/system/lib64/*.so : bin/ \
|
||||||
$(GSTREAMER_DIR)/system/lib64/gstreamer-1.0/*.so : bin/
|
$(GSTREAMER_DIR)/system/lib64/gstreamer-1.0/*.so : bin/
|
||||||
|
|
||||||
|
@ -51,4 +52,6 @@ CXXFLAGS = \
|
||||||
|
|
||||||
USES = \
|
USES = \
|
||||||
lumin_runtime \
|
lumin_runtime \
|
||||||
|
scenes \
|
||||||
|
pipeline/cache/AssetManifest \
|
||||||
code/srcs
|
code/srcs
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
USES = \
|
|
||||||
scenes \
|
|
||||||
pipeline/cache/AssetManifest
|
|
||||||
|
|
||||||
DATAS = \
|
|
||||||
fonts.xml : etc/fonts.xml
|
|
||||||
|
|
||||||
REFS = Servo2D
|
|
||||||
|
|
||||||
# Servo SEGVs if we don't set the debuggable flag in the mpk's taildata
|
|
||||||
# https://github.com/servo/servo/issues/22188
|
|
||||||
OPTIONS=package/debuggable/on
|
|
31
support/magicleap/manifest.xml
Normal file
31
support/magicleap/manifest.xml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<manifest
|
||||||
|
xmlns:ml="magicleap"
|
||||||
|
ml:package="com.mozilla.servo"
|
||||||
|
ml:version_code="1"
|
||||||
|
ml:version_name="1.0">
|
||||||
|
<application
|
||||||
|
ml:visible_name="Servo"
|
||||||
|
ml:sdk_version="1.0">
|
||||||
|
<component
|
||||||
|
ml:name=".servo2d.universe"
|
||||||
|
ml:visible_name="Servo2D"
|
||||||
|
ml:binary_name="bin/Servo2D"
|
||||||
|
ml:type="Universe">
|
||||||
|
<icon
|
||||||
|
ml:model_folder="Icon/Model/"
|
||||||
|
ml:portal_folder="Icon/Portal/" />
|
||||||
|
</component>
|
||||||
|
<component
|
||||||
|
ml:name=".servo3d.fullscreen"
|
||||||
|
ml:visible_name="Servo3D"
|
||||||
|
ml:binary_name="bin/Servo3D"
|
||||||
|
ml:type="Fullscreen">
|
||||||
|
<icon
|
||||||
|
ml:model_folder="Icon/Model/"
|
||||||
|
ml:portal_folder="Icon/Portal/" />
|
||||||
|
</component>
|
||||||
|
<uses-privilege ml:name="ControllerPose"/>
|
||||||
|
<uses-privilege ml:name="Internet"/>
|
||||||
|
<uses-privilege ml:name="LowLatencyLightwear"/>
|
||||||
|
</application>
|
||||||
|
</manifest>
|
Loading…
Add table
Add a link
Reference in a new issue