mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
Add a build switch to disable the native bluetooth backend.
This commit is contained in:
parent
cc0ac89e1a
commit
83fda753a8
4 changed files with 15 additions and 3 deletions
|
@ -12,10 +12,18 @@ path = "lib.rs"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "1.0"
|
bitflags = "1.0"
|
||||||
bluetooth_traits = {path = "../bluetooth_traits"}
|
bluetooth_traits = {path = "../bluetooth_traits"}
|
||||||
device = {git = "https://github.com/servo/devices", features = ["bluetooth-test"]}
|
|
||||||
embedder_traits = {path = "../embedder_traits"}
|
embedder_traits = {path = "../embedder_traits"}
|
||||||
ipc-channel = "0.11"
|
ipc-channel = "0.11"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
servo_config = {path = "../config"}
|
servo_config = {path = "../config"}
|
||||||
servo_rand = {path = "../rand"}
|
servo_rand = {path = "../rand"}
|
||||||
uuid = {version = "0.6", features = ["v4"]}
|
uuid = {version = "0.6", 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"]}
|
||||||
|
|
|
@ -18,6 +18,7 @@ energy-profiling = ["profile_traits/energy-profiling"]
|
||||||
debugmozjs = ["script/debugmozjs"]
|
debugmozjs = ["script/debugmozjs"]
|
||||||
googlevr = ["webvr/googlevr"]
|
googlevr = ["webvr/googlevr"]
|
||||||
js_backtrace = ["script/js_backtrace"]
|
js_backtrace = ["script/js_backtrace"]
|
||||||
|
disable-native-bluetooth = ["bluetooth/disable-native-bluetooth"]
|
||||||
webrender_debugger = ["webrender/debugger"]
|
webrender_debugger = ["webrender/debugger"]
|
||||||
oculusvr = ["webvr/oculusvr"]
|
oculusvr = ["webvr/oculusvr"]
|
||||||
unstable = [
|
unstable = [
|
||||||
|
|
|
@ -25,6 +25,7 @@ ProductName = "Servo"
|
||||||
[features]
|
[features]
|
||||||
default = ["unstable", "default-except-unstable"]
|
default = ["unstable", "default-except-unstable"]
|
||||||
default-except-unstable = ["webdriver", "max_log_level"]
|
default-except-unstable = ["webdriver", "max_log_level"]
|
||||||
|
disable-native-bluetooth = ["libservo/disable-native-bluetooth"]
|
||||||
max_log_level = ["log/release_max_level_info"]
|
max_log_level = ["log/release_max_level_info"]
|
||||||
webdriver = ["libservo/webdriver"]
|
webdriver = ["libservo/webdriver"]
|
||||||
energy-profiling = ["libservo/energy-profiling"]
|
energy-profiling = ["libservo/energy-profiling"]
|
||||||
|
|
|
@ -248,7 +248,9 @@ class MachCommands(CommandBase):
|
||||||
if android:
|
if android:
|
||||||
target = self.config["android"]["target"]
|
target = self.config["android"]["target"]
|
||||||
|
|
||||||
if magicleap and not target:
|
if magicleap:
|
||||||
|
features += ["disable-native-bluetooth"]
|
||||||
|
if not target:
|
||||||
target = "aarch64-linux-android"
|
target = "aarch64-linux-android"
|
||||||
|
|
||||||
if target:
|
if target:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue