Implement Gradle flavors

This commit is contained in:
Imanol Fernandez 2017-09-29 23:19:33 +02:00
parent ffa03380ca
commit e93130026a
13 changed files with 132 additions and 21 deletions

View file

@ -17,6 +17,8 @@ max_log_level = ["log/release_max_level_info"]
webdriver = ["webdriver_server"]
energy-profiling = ["profile_traits/energy-profiling"]
debugmozjs = ["script/debugmozjs"]
googlevr = ["webvr/googlevr"]
oculusvr = ["webvr/oculusvr"]
[dependencies]
bluetooth_traits = {path = "../bluetooth_traits"}

View file

@ -9,13 +9,17 @@ publish = false
name = "webvr"
path = "lib.rs"
[features]
googlevr = ['rust-webvr/googlevr']
oculusvr = ['rust-webvr/oculusvr']
[dependencies]
canvas_traits = {path = "../canvas_traits"}
euclid = "0.15"
ipc-channel = "0.8"
log = "0.3"
msg = {path = "../msg"}
rust-webvr = {version = "0.8", features = ["openvr"]}
rust-webvr = {version = "0.9", features = ["openvr"]}
script_traits = {path = "../script_traits"}
servo_config = {path = "../config"}
webvr_traits = {path = "../webvr_traits" }

View file

@ -12,5 +12,5 @@ path = "lib.rs"
[dependencies]
ipc-channel = "0.8"
msg = {path = "../msg"}
rust-webvr-api = {version = "0.8", features = ["serde-serialization"]}
rust-webvr-api = {version = "0.9", features = ["serde-serialization"]}
serde = "1.0"