mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rename ports/winit package to servoshell (#30163)
* rename winit package to servoshell * revert previous changes and rename only package
This commit is contained in:
parent
cc4fe4981f
commit
66567faeb2
26 changed files with 39 additions and 39 deletions
32
ports/servoshell/main.rs
Normal file
32
ports/servoshell/main.rs
Normal file
|
@ -0,0 +1,32 @@
|
|||
/* 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 https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! The `servo` test application.
|
||||
//!
|
||||
//! Creates a `Servo` instance with a simple implementation of
|
||||
//! the compositor's `WindowMethods` to create a working web browser.
|
||||
//!
|
||||
//! This browser's implementation of `WindowMethods` is built on top
|
||||
//! of [winit], the cross-platform windowing library.
|
||||
//!
|
||||
//! For the engine itself look next door in `components/servo/lib.rs`.
|
||||
//!
|
||||
//! [winit]: https://github.com/rust-windowing/winit
|
||||
|
||||
// Normally, rust uses the "Console" Windows subsystem, which pops up a console
|
||||
// when running an application. Switching to the "Windows" subsystem prevents
|
||||
// this, but also hides debugging output. Use the "Windows" console unless debug
|
||||
// mode is turned on.
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
include!("main2.rs");
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
pub fn main() {
|
||||
println!(
|
||||
"Cannot start /ports/servo/ on Android. \
|
||||
Use /support/android/apk/ + /ports/libsimpleservo/ instead"
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue