Skip to main content

servo_media_auto/
lib.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5#[cfg(any(
6    all(
7        target_os = "android",
8        any(target_arch = "arm", target_arch = "aarch64")
9    ),
10    target_arch = "x86_64",
11    target_arch = "aarch64",
12))]
13mod platform {
14    pub use servo_media_gstreamer::GStreamerBackend as Backend;
15}
16
17#[cfg(not(any(
18    all(
19        target_os = "android",
20        any(target_arch = "arm", target_arch = "aarch64")
21    ),
22    target_arch = "x86_64",
23    target_arch = "aarch64",
24)))]
25mod platform {
26    pub use servo_media_dummy::DummyBackend as Backend;
27}
28
29pub type Backend = platform::Backend;