Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/conditional x11 #35

Closed
wants to merge 3 commits into from
Closed

Conversation

haf
Copy link

@haf haf commented Nov 2, 2015

This PR rebases the PR for compiling without x11 support.

This fixes cross-compilation.

This code is contributed under the terms of the MIT license.
This code is contributed under the terms of the MIT license.
This code is contributed under the terms of the MIT license.
@monojenkins
Copy link

Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message.

@haf
Copy link
Author

haf commented Nov 2, 2015

approve

@akoeplinger
Copy link
Member

whitelist

@qmfrederik
Copy link
Contributor

@akoeplinger @haf

I'm working on getting Mono's System.Drawing to work on .NET Core on OS X. This patch would help building libgdiplus on more recent versions of OS X (which don't have X11).

From what I gather, this is a rebased version of #13, which was opened in 2013. Anything I can do to help to have this patch merged?

This would also help Homebrew/legacy-homebrew#45393.

@haf
Copy link
Author

haf commented Aug 25, 2016

It works and is ready to merge. It would seem the people behind this repo has taken a hiatus.

@qmfrederik
Copy link
Contributor

qmfrederik commented Aug 25, 2016

@haf This fix causes the build to fail on Linux, so I'm guessing it can't go in "as is", I'll comment on the diff itself

To make the test compile, you would at least need to #ifdef the call to GdipCreateFromXDrawable_linux in tests/testgdi.c

@@ -105,8 +105,10 @@ typedef struct _Graphics {
cairo_t *ct;
GpMatrix *copy_of_ctm;
cairo_matrix_t previous_matrix;
#ifdef CAIRO_HAS_XLIB_SURFACE
Display *display;
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like Display and Drawable are never used in the codebase (except for setting them to NULL), so I'd guess it'd be better to just remove them alltogether?

@Mask66
Copy link

Mask66 commented Nov 6, 2016

Conditional X11 would also be a very good thing for headless FreeBSD systems, but I couldn't get the patches to work , especially disabling tests won't work for me.

@akoeplinger
Copy link
Member

This was merged with #46. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants