Permalink
Browse files

Only build gecko-media on macOS and Linux, not on ARM archs and Windows

  • Loading branch information...
jdm authored and nox committed Nov 9, 2017
1 parent fd22760 commit 75cbd8c58038383bdcb0f5c028d45f443a0b938a
Showing with 4 additions and 1 deletion.
  1. +3 −1 components/script/Cargo.toml
  2. +1 −0 components/script/lib.rs
@@ -23,6 +23,9 @@ phf_codegen = "0.7.18"
phf_shared = "0.7.18"
serde_json = "1.0"
[target.'cfg(all(any(target_os = "macos", target_os = "linux"), not(any(target_arch = "arm", target_arch = "aarch64"))))'.dependencies]
gecko-media = {git = "https://github.com/servo/gecko-media.git"}
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies]
tinyfiledialogs = "2.5.9"
@@ -44,7 +47,6 @@ domobject_derive = {path = "../domobject_derive"}
encoding_rs = "0.7"
euclid = "0.15"
fnv = "1.0"
gecko-media = {git = "https://github.com/servo/gecko-media.git"}
gleam = "0.4"
half = "1.0"
html5ever = "0.21"
View
@@ -42,6 +42,7 @@ extern crate encoding_rs;
extern crate euclid;
extern crate fnv;
#[allow(unused_extern_crates)]
#[cfg(all(any(target_os = "macos", target_os = "linux"), not(any(target_arch = "arm", target_arch = "aarch64"))))]
extern crate gecko_media;
extern crate gleam;
extern crate half;

0 comments on commit 75cbd8c

Please sign in to comment.