Skip to content
This repository was archived by the owner on Jun 8, 2020. It is now read-only.

Windows build and functionality - #74

Closed
vvuk wants to merge 5 commits into
servo:masterfrom
vvuk:win32
Closed

vvuk wants to merge 5 commits into
servo:masterfrom
vvuk:win32

Conversation

@vvuk

@vvuk vvuk commented Sep 29, 2015

Copy link
Copy Markdown
Contributor

Adds support for building on Windows, and fixes some code issues in Skia that prevent building on gcc.

Review on Reviewable

Comment thread makefile.cargo Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of leaving commented lines, I think it would be better to remove them.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And note that comments that end with \ will eat the next line, so definitely never leave any of those.

@vvuk
vvuk force-pushed the win32 branch 4 times, most recently from b47403b to f7eeae2 Compare September 29, 2015 18:40
@vvuk

vvuk commented Sep 29, 2015

Copy link
Copy Markdown
Contributor Author

Okay, commits are split out now.

For the "build fixes" commit -- I need to not do a static link into the rlib here because -lskia ends up needing to go on the link line once after rust-azure. With static, that doesn't happen, as all the rlibs are passed to the linker before any -l libs. For simplicity, we could just do non-static linking for all platforms here.

The uintptr_t fix is already in skia in mozilla-central; not sure if it's in upstream or not.

The ## pasting fix is not in mozilla-central; not sure why it's not a problem there when being built with gcc.

And the final SK_INCLUDE_FREETYPE temporary thing is an addition that will go away once we actually switch Servo to using DirectWrite on windows.

@vvuk

vvuk commented Oct 15, 2015

Copy link
Copy Markdown
Contributor Author

Anything I can do to speed up getting this merged in?

@Manishearth

Copy link
Copy Markdown
Member

r? @glennw

cc @larsbergstrom

@larsbergstrom

Copy link
Copy Markdown
Contributor

I'm fine with everything except for:

  • My one comment on the linking
  • The second patch (on gl context / rasterization stuff), which it would be great if @glennw could look at.

@glennw

glennw commented Oct 15, 2015

Copy link
Copy Markdown
Member

Just a few minor comments on that commit, mostly looks good to me!

@vvuk

vvuk commented Oct 29, 2015

Copy link
Copy Markdown
Contributor Author

Okay, fixed the build.rs linking stuff -- we can do a static link of skia just fine. Depends on servo/rust-azure#205 though (without it, there are library ordering issues).

@metajack

metajack commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

re-r? @glennw

@glennw

glennw commented Nov 3, 2015

Copy link
Copy Markdown
Member

The gl code still looks fine to me - passing back to @larsbergstrom for the other commits.

@larsbergstrom

Copy link
Copy Markdown
Contributor

Reviewed 7 of 15 files at r1, 6 of 8 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from the review on Reviewable.io

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo r+

@jdm

jdm commented Nov 5, 2015

Copy link
Copy Markdown
Member

@bors-servo: r=larsberg

@bors-servo

Copy link
Copy Markdown

📌 Commit 9fcf239 has been approved by larsberg

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit 9fcf239 with merge 364da67...

bors-servo pushed a commit that referenced this pull request Nov 5, 2015
Windows build and functionality

Adds support for building on Windows, and fixes some code issues in Skia that prevent building on gcc.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/skia/74)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown

💔 Test failed - travis

@larsbergstrom

Copy link
Copy Markdown
Contributor

Gah! Defeated by the libc madness...

@jdm

jdm commented Nov 5, 2015

Copy link
Copy Markdown
Member

@bors-servo: retry

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit 9fcf239 with merge fc00a4d...

bors-servo pushed a commit that referenced this pull request Nov 5, 2015
Windows build and functionality

Adds support for building on Windows, and fixes some code issues in Skia that prevent building on gcc.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/skia/74)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown

💔 Test failed - travis

@jdm

jdm commented Nov 5, 2015

Copy link
Copy Markdown
Member

I'm having a hard time figuring out what in the dependency chain relies on a pinned version of glutin :<

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo: retry

Let's see if enough of the libcpocalypse has been sorted out for this to land or if we need to get a few more things.

@jdm

jdm commented Nov 11, 2015

Copy link
Copy Markdown
Member

@bors-servo: retry

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit 9fcf239 with merge e83d780...

bors-servo pushed a commit that referenced this pull request Nov 11, 2015
Windows build and functionality

Adds support for building on Windows, and fixes some code issues in Skia that prevent building on gcc.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/skia/74)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown

💔 Test failed - travis

@jdm

jdm commented Nov 11, 2015

Copy link
Copy Markdown
Member
/home/travis/.cargo/registry/src/github.com-0a35038f75765ae4/glutin-0.3.7/src/api/osmesa/mod.rs:82:63: 83:69 error: mismatched types:
/home/travis/.cargo/registry/src/github.com-0a35038f75765ae4/glutin-0.3.7/src/api/x11/window.rs:517:38: 517:63 error: mismatched

@larsbergstrom

Copy link
Copy Markdown
Contributor

Problem is that skia directly relies on glutin 0.3.7 (via a "0.3.5"). Changing this to "0.4" works!

Though I'm a little worried because we are using a glutin from crates.io and the servo version in servo proper?

@larsbergstrom

Copy link
Copy Markdown
Contributor

Oh, actually, it looks like the glutin line was added here and should just be removed from this PR.

@vvuk Why was that line added? Is it required on Windows?

@vvuk

vvuk commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

src/gl_content_wgl.rs is implemented in terms of glutin on Windows, so glutin is required. There's no specific dependency on a version of glutin... also in theory mixing mutliple versions shouldn't be an issue, since the glutin used in skia is kept purely to internal skia code.

@bors-servo

Copy link
Copy Markdown

☔ The latest upstream changes (presumably #81) made this pull request unmergeable. Please resolve the merge conflicts.

@larsbergstrom larsbergstrom mentioned this pull request Nov 26, 2015
bors-servo pushed a commit that referenced this pull request Nov 26, 2015
Win32 support

This rebases and adds a final fix required for the win32 support authored by @vvuk originally in #74.

r? @Manishearth (for just my simple Cargo.toml update - rest has been reviewed)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/skia/82)
<!-- Reviewable:end -->
@larsbergstrom

Copy link
Copy Markdown
Contributor

Merged in #82 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants