aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/platform/mod.rs
blob: 7160c692f3516e216d92c5e6c368ed9d6db61537 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

//! Platform-specific functionality for Servo.

#[cfg(not(shared_gl_windowing), target_os="android")]
pub use platform::common::glut_windowing::{Application, Window};
#[cfg(not(shared_gl_windowing), not(target_os="android"))]
pub use platform::common::glfw_windowing::{Application, Window};
#[cfg(shared_gl_windowing)]
pub use platform::common::shared_gl_windowing::{Application, Window};

pub mod common {
    #[cfg(not(shared_gl_windowing), target_os="android")]
    pub mod glut_windowing;
    #[cfg(not(shared_gl_windowing), not(target_os="android"))]
    pub mod glfw_windowing;
    #[cfg(shared_gl_windowing)]
    pub mod shared_gl_windowing;
}