mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #18189 - JJayet:ios_support, r=larsbergstrom
First step toward iOS Support This mostly prevents Gaol/sandboxing to be used during compilation. There are a number of issues with : `expat-sys`, `servo-freetype-sys`, `fontsan`, `heartbeats-simple-sys`, `mozjs_sys`. Also modified `components/script/dom/navigatorinfo.rs` in order to add iOS. ```rust #[cfg(target_os = "ios")] pub fn Platform() -> DOMString { DOMString::from("iOS") } ``` See here for more informations : https://github.com/servo/servo/issues/18154 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes partially work on #18154 - [X] These changes do not require tests because it deals with the compile toolchain <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18189) <!-- Reviewable:end -->
This commit is contained in:
commit
e61a043a56
7 changed files with 22 additions and 15 deletions
|
@ -24,7 +24,6 @@ serde_json = "1.0"
|
|||
tinyfiledialogs = "2.5.9"
|
||||
|
||||
[dependencies]
|
||||
angle = {git = "https://github.com/servo/angle", branch = "servo"}
|
||||
app_units = "0.5"
|
||||
audio-video-metadata = "0.1.2"
|
||||
base64 = "0.5.2"
|
||||
|
@ -94,3 +93,6 @@ xml5ever = {version = "0.9"}
|
|||
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
|
||||
webvr = {path = "../webvr"}
|
||||
webvr_traits = {path = "../webvr_traits"}
|
||||
|
||||
[target.'cfg(not(target_os = "ios"))'.dependencies]
|
||||
angle = {git = "https://github.com/servo/angle", branch = "servo"}
|
||||
|
|
|
@ -36,6 +36,11 @@ pub fn Platform() -> DOMString {
|
|||
DOMString::from("Mac")
|
||||
}
|
||||
|
||||
#[cfg(target_os = "ios")]
|
||||
pub fn Platform() -> DOMString {
|
||||
DOMString::from("iOS")
|
||||
}
|
||||
|
||||
pub fn UserAgent() -> DOMString {
|
||||
DOMString::from(&*opts::get().user_agent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue