mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
Enable GStreamer on Windows.
This commit is contained in:
parent
a3e33d6388
commit
c0ff30b71f
5 changed files with 1331 additions and 12 deletions
|
@ -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]
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue