mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Support building for Magic Leap.
This commit is contained in:
parent
e580250d5d
commit
dab8f4a97f
34 changed files with 1601 additions and 7 deletions
65
support/magicleap/Servo2D/.vscode/launch.json
vendored
Normal file
65
support/magicleap/Servo2D/.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Host OS Debug",
|
||||
"request": "launch",
|
||||
"type": "cppdbg",
|
||||
"stopAtEntry": true,
|
||||
"externalConsole": false,
|
||||
"logging": {
|
||||
"engineLogging": false,
|
||||
"trace": false
|
||||
},
|
||||
"windows": {
|
||||
"type": "cppvsdbg",
|
||||
"cwd": "${workspaceFolder}/.out/${config:lumin_package_name}",
|
||||
"environment": [{"name": "PATH", "value": "${config:lumin_sdk}/VirtualDevice/bin;${config:lumin_sdk}/VirtualDevice/lib;${config:lumin_sdk}/lib/win64;${env.PATH}"}],
|
||||
"program": "${workspaceFolder}/.out/debug_win_${config:lumin_host_toolchain}/${config:lumin_exe_name}.exe"
|
||||
},
|
||||
"osx": {
|
||||
"type": "cppdbg",
|
||||
"MIMode": "lldb",
|
||||
"cwd": "${workspaceFolder}/.out/${config:lumin_package_name}",
|
||||
"environment": [{"name": "DYLD_LIBRARY_PATH", "value": "${config:lumin_sdk}/VirtualDevice/bin:${config:lumin_sdk}/VirtualDevice/lib:${config:lumin_sdk}/lib/osx:${env.DYLD_LIBRARY_PATH}"}],
|
||||
"program": "${workspaceFolder}/.out/debug_osx_${config:lumin_host_toolchain}/${config:lumin_exe_name}"
|
||||
},
|
||||
"linux": {
|
||||
"type": "cppdbg",
|
||||
"MIMode": "lldb",
|
||||
"cwd": "${workspaceFolder}/.out/${config:lumin_package_name}",
|
||||
"environment": [{"name": "LD_LIBRARY_PATH", "value": "${config:lumin_sdk}/VirtualDevice/bin:${config:lumin_sdk}/VirtualDevice/lib:${config:lumin_sdk}/lib/linux64:${env.LD_LIBRARY_PATH}"}],
|
||||
"program": "${workspaceFolder}/.out/debug_linux_${config:lumin_host_toolchain}/${config:lumin_exe_name}"
|
||||
},
|
||||
"preLaunchTask": "Build (Host OS Debug)"
|
||||
},
|
||||
{
|
||||
"name": "Lumin OS Debug",
|
||||
"request": "launch",
|
||||
"type": "cppdbg",
|
||||
"stopAtEntry": true,
|
||||
"externalConsole": false,
|
||||
"logging": {
|
||||
"engineLogging": false,
|
||||
"trace": false
|
||||
},
|
||||
"cwd": "${workspaceFolder}/.out/${config:lumin_package_name}",
|
||||
"targetArchitecture": "arm64",
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "${config:lumin_sdk}/tools/toolchains/bin/gdb",
|
||||
"windows": {
|
||||
"miDebuggerPath": "${config:lumin_sdk}/tools/toolchains/bin/gdb.exe",
|
||||
},
|
||||
"miDebuggerServerAddress": "localhost:7777",
|
||||
"program": "${workspaceFolder}/.out/debug_lumin_${config:lumin_device_toolchain}/${config:lumin_exe_name}",
|
||||
"customLaunchSetupCommands": [
|
||||
{"text": "-file-exec-and-symbols \"${workspaceFolder}/.out/debug_lumin_${config:lumin_device_toolchain}/${config:lumin_exe_name}\""},
|
||||
{"text": "source ${workspaceFolder}/.out/debug_lumin_${config:lumin_device_toolchain}/${config:lumin_exe_name}.gdbinit"},
|
||||
{"text": "-enable-pretty-printing"},
|
||||
{"text": "continue", "ignoreFailures": true},
|
||||
{"text": "continue", "ignoreFailures": true}
|
||||
],
|
||||
"preLaunchTask": "Lumin: Setup for remote debugging",
|
||||
}
|
||||
]
|
||||
}
|
22
support/magicleap/Servo2D/.vscode/settings.json
vendored
Normal file
22
support/magicleap/Servo2D/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"lumin_mabu_file": "Servo2D.package",
|
||||
"lumin_package_name": "Servo2D",
|
||||
"lumin_exe_name": "Servo2D",
|
||||
"C_Cpp.default.includePath": [
|
||||
"${workspaceFolder}/code/**",
|
||||
"${config.lumin_sdk}/lumin/usr/include/",
|
||||
"${config.lumin_sdk}/include/runtime/app",
|
||||
"${config.lumin_sdk}/include/runtime/core",
|
||||
"${config.lumin_sdk}/include/runtime/external",
|
||||
"${config.lumin_sdk}/include/runtime/intergen",
|
||||
"${config.lumin_sdk}/include/runtime/loader",
|
||||
"${config.lumin_sdk}/include/runtime/uikit",
|
||||
"${config.lumin_sdk}/include/runtime/util",
|
||||
"${config.lumin_sdk}/include/"
|
||||
],
|
||||
"C_Cpp.default.defines": [
|
||||
"ANDROID"
|
||||
],
|
||||
"C_Cpp.default.cppStandard": "c++11",
|
||||
"debug.allowBreakpointsEverywhere": true
|
||||
}
|
223
support/magicleap/Servo2D/.vscode/tasks.json
vendored
Normal file
223
support/magicleap/Servo2D/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,223 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build (Lumin OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_debug",
|
||||
"-s",
|
||||
"${config:lumin_cert}"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Clean (Lumin OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_debug",
|
||||
"-c"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Run (Lumin OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_debug",
|
||||
"-s",
|
||||
"${config:lumin_cert}",
|
||||
"--invoke"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Build (Lumin OS Release)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_release",
|
||||
"-s",
|
||||
"${config:lumin_cert}"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Clean (Lumin OS Release)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_release",
|
||||
"-c"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Run (Lumin OS Release)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"device_release",
|
||||
"-s",
|
||||
"${config:lumin_cert}",
|
||||
"--invoke"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Build (Host OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
"options": {
|
||||
"env": {
|
||||
"VisualStudioVersion": "15.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"host_debug"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Clean (Host OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"host_debug",
|
||||
"-c"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Run (Host OS Debug)",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/mabu",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/mabu.cmd",
|
||||
"options": {
|
||||
"env": {
|
||||
"VisualStudioVersion": "15.0",
|
||||
"PATH": "${config:lumin_sdk}/VirtualDevice/bin;${config:lumin_sdk}/VirtualDevice/lib;${config:lumin_sdk}/lib/win64;${env.PATH}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"osx": {
|
||||
"options": {
|
||||
"env": {
|
||||
"ML_LIBRARY_PATH": "${config:lumin_sdk}/VirtualDevice/bin:${config:lumin_sdk}/VirtualDevice/lib:${config:lumin_sdk}/lib/osx"
|
||||
}
|
||||
}
|
||||
},
|
||||
"linux": {
|
||||
"options": {
|
||||
"env": {
|
||||
"LD_LIBRARY_PATH": "${config:lumin_sdk}/VirtualDevice/bin:${config:lumin_sdk}/VirtualDevice/lib:${config:lumin_sdk}/lib/linux64:${env.LD_LIBRARY_PATH}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/${config:lumin_mabu_file}",
|
||||
"-t",
|
||||
"host_debug",
|
||||
"--invoke"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$msCompile",
|
||||
"$gcc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Lumin: Setup for remote debugging",
|
||||
"type": "shell",
|
||||
"command": "${config:lumin_sdk}/debug",
|
||||
"windows": {
|
||||
"command": "${config:lumin_sdk}/debug.cmd",
|
||||
},
|
||||
"args": [
|
||||
"--setup-only",
|
||||
"-v",
|
||||
"--sopaths",
|
||||
"${workspaceFolder}/.out/debug_lumin_${config:lumin_device_toolchain}/",
|
||||
"--deploy-mpk",
|
||||
"${workspaceFolder}/.out/${config:lumin_package_name}/${config:lumin_exe_name}.mpk",
|
||||
"${workspaceFolder}/.out/debug_lumin_${config:lumin_device_toolchain}/${config:lumin_exe_name}"
|
||||
],
|
||||
"dependsOn": [
|
||||
"Build (Lumin OS Debug)"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue