Enable GStreamer on Windows.

This commit is contained in:
Josh Matthews 2019-08-16 13:15:05 -04:00
parent a3e33d6388
commit c0ff30b71f
5 changed files with 1331 additions and 12 deletions

View file

@ -85,10 +85,10 @@ webxr-api = {git = "https://github.com/servo/webxr"}
[target.'cfg(all(not(target_os = "windows"), not(target_os = "ios"), not(target_os="android"), not(target_arch="arm"), not(target_arch="aarch64")))'.dependencies]
gaol = {git = "https://github.com/servo/gaol"}
[target.'cfg(all(not(target_os = "windows"), any(target_os = "android", target_arch = "x86_64")))'.dependencies.servo-media-gstreamer]
[target.'cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows"))'.dependencies.servo-media-gstreamer]
git = "https://github.com/servo/media"
[target.'cfg(any(target_os = "windows", not(any(target_os = "android", target_arch = "x86_64"))))'.dependencies.servo-media-dummy]
[target.'cfg(not(any(target_os = "android", target_arch = "x86_64", target_os = "windows")))'.dependencies.servo-media-dummy]
git = "https://github.com/servo/media"
[target.'cfg(target_os = "windows")'.dependencies]

View file

@ -125,10 +125,7 @@ pub use msg::constellation_msg::TopLevelBrowsingContextId as BrowserId;
pub use servo_config as config;
pub use servo_url as url;
#[cfg(all(
not(target_os = "windows"),
any(target_os = "android", target_arch = "x86_64",)
))]
#[cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows",))]
mod media_platform {
use super::ServoMedia;
use servo_media_gstreamer::GStreamerBackend;
@ -206,10 +203,7 @@ mod media_platform {
}
}
#[cfg(not(all(
not(target_os = "windows"),
any(target_os = "android", target_arch = "x86_64",)
)))]
#[cfg(not(any(target_os = "android", target_arch = "x86_64", target_os = "windows",)))]
mod media_platform {
use super::ServoMedia;
pub fn init() {