mirror of
https://github.com/servo/servo.git
synced 2025-07-02 13:03:43 +01:00
Get the magicleap build to work in CI
This commit is contained in:
parent
ed0e6e1bb2
commit
08270f07fc
7 changed files with 15 additions and 22 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -230,7 +230,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
[[package]]
|
||||
name = "blurmac"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/devices#967e13521ac9825a6664f1ed3fb2d2025cac0371"
|
||||
source = "git+https://github.com/servo/devices#cb28c4725ffbfece99dab842d17d3e8c50774778"
|
||||
dependencies = [
|
||||
"log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"objc 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -820,7 +820,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "device"
|
||||
version = "0.0.1"
|
||||
source = "git+https://github.com/servo/devices#967e13521ac9825a6664f1ed3fb2d2025cac0371"
|
||||
source = "git+https://github.com/servo/devices#cb28c4725ffbfece99dab842d17d3e8c50774778"
|
||||
dependencies = [
|
||||
"blurdroid 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"blurmac 0.1.0 (git+https://github.com/servo/devices)",
|
||||
|
|
|
@ -13,6 +13,7 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
bluetooth_traits = {path = "../bluetooth_traits"}
|
||||
device = {git = "https://github.com/servo/devices", features = ["bluetooth-test"]}
|
||||
embedder_traits = {path = "../embedder_traits"}
|
||||
ipc-channel = "0.11"
|
||||
log = "0.4"
|
||||
|
@ -21,10 +22,4 @@ servo_rand = {path = "../rand"}
|
|||
uuid = {version = "0.7", features = ["v4"]}
|
||||
|
||||
[features]
|
||||
disable-native-bluetooth = []
|
||||
|
||||
[target.'cfg(feature = "disable-native-bluetooth")'.dependencies]
|
||||
device = {git = "https://github.com/servo/devices", default-features = false, features = ["bluetooth-test"]}
|
||||
|
||||
[target.'cfg(not(feature = "disable-native-bluetooth"))'.dependencies]
|
||||
device = {git = "https://github.com/servo/devices", features = ["bluetooth-test"]}
|
||||
native-bluetooth = ["device/bluetooth"]
|
||||
|
|
|
@ -19,7 +19,7 @@ energy-profiling = ["profile_traits/energy-profiling"]
|
|||
debugmozjs = ["script/debugmozjs"]
|
||||
googlevr = ["webvr/googlevr"]
|
||||
js_backtrace = ["script/js_backtrace"]
|
||||
disable-native-bluetooth = ["bluetooth/disable-native-bluetooth"]
|
||||
native-bluetooth = ["bluetooth/native-bluetooth"]
|
||||
webrender_debugger = ["webrender/debugger"]
|
||||
oculusvr = ["webvr/oculusvr"]
|
||||
unstable = [
|
||||
|
|
|
@ -2,18 +2,14 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
extern crate egl;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate servo;
|
||||
extern crate smallvec;
|
||||
|
||||
use egl::egl::EGLContext;
|
||||
use egl::egl::EGLDisplay;
|
||||
use egl::egl::EGLSurface;
|
||||
use egl::egl::MakeCurrent;
|
||||
use egl::egl::SwapBuffers;
|
||||
use egl::eglext::eglGetProcAddress;
|
||||
use log::info;
|
||||
use log::warn;
|
||||
use servo::compositing::windowing::AnimationState;
|
||||
use servo::compositing::windowing::EmbedderCoordinates;
|
||||
use servo::compositing::windowing::MouseWindowEvent;
|
||||
|
@ -483,7 +479,7 @@ impl log::Log for MLLogger {
|
|||
log::Level::Debug => MLLogLevel::Debug,
|
||||
log::Level::Trace => MLLogLevel::Verbose,
|
||||
};
|
||||
let mut msg = SmallVec::<[c_char; 128]>::new();
|
||||
let mut msg = SmallVec::<[u8; 128]>::new();
|
||||
write!(msg, "{}\0", record.args());
|
||||
(self.0)(lvl, &msg[0] as *const _ as *const _);
|
||||
}
|
||||
|
|
|
@ -43,5 +43,6 @@ debugmozjs = ["libservo/debugmozjs"]
|
|||
unstable = ["libservo/unstable"]
|
||||
googlevr = ["libservo/googlevr"]
|
||||
oculusvr = ["libservo/oculusvr"]
|
||||
native-bluetooth = ["libservo/native-bluetooth"]
|
||||
webgl_backtrace = ["libservo/webgl_backtrace"]
|
||||
js_backtrace = ["libservo/js_backtrace"]
|
||||
|
|
|
@ -29,7 +29,7 @@ ProductName = "Servo"
|
|||
[features]
|
||||
default = ["unstable", "default-except-unstable"]
|
||||
default-except-unstable = ["webdriver", "max_log_level"]
|
||||
disable-native-bluetooth = ["libservo/disable-native-bluetooth"]
|
||||
native-bluetooth = ["libservo/native-bluetooth"]
|
||||
max_log_level = ["log/release_max_level_info"]
|
||||
webdriver = ["libservo/webdriver"]
|
||||
energy-profiling = ["libservo/energy-profiling"]
|
||||
|
|
|
@ -248,9 +248,10 @@ class MachCommands(CommandBase):
|
|||
if android:
|
||||
target = self.config["android"]["target"]
|
||||
|
||||
if magicleap:
|
||||
features += ["disable-native-bluetooth"]
|
||||
if not target:
|
||||
if not magicleap:
|
||||
features += ["native-bluetooth"]
|
||||
|
||||
if magicleap and not target:
|
||||
target = "aarch64-linux-android"
|
||||
|
||||
if target:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue