mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Allow mach build to explicitly set the media stack
You can select the media backend by building as follows: $ ./mach build -d --media-stack=dummy or $ ./mach build -d --media-stack=gstreamer
This commit is contained in:
parent
91b612f8df
commit
4e3f164f7b
4 changed files with 24 additions and 7 deletions
|
@ -135,7 +135,7 @@ pub use msg::constellation_msg::TopLevelBrowsingContextId as BrowserId;
|
|||
pub use servo_config as config;
|
||||
pub use servo_url as url;
|
||||
|
||||
#[cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows",))]
|
||||
#[cfg(feature = "servo-media-gstreamer")]
|
||||
mod media_platform {
|
||||
use super::ServoMedia;
|
||||
use servo_media_gstreamer::GStreamerBackend;
|
||||
|
@ -245,7 +245,7 @@ mod media_platform {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "android", target_arch = "x86_64", target_os = "windows",)))]
|
||||
#[cfg(feature = "servo-media-dummy")]
|
||||
mod media_platform {
|
||||
use super::ServoMedia;
|
||||
pub fn init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue