-
Notifications
You must be signed in to change notification settings - Fork 481
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
Enable building code without System.Drawing.Common dependency #931
Conversation
I don't know how to surround |
If you remove |
In Svg.Skia I substituted the System.Drawing.Common with SkiaSharp alternative. |
302ce0d
to
a7c155e
Compare
@wieslawsoltes - I have rebased this with master, please check if all still works with Svg.Skia and I haven't messed something up while resolving conflicts. Will merge if you give the ok. |
@mrbean-bremen Works fine with Svg.Skia. Thanks! |
…BuildProcessTemplates CONTRIBUTING.md Generators Nuget README.md Samples Source Tests doc docfx.json index.md license.txt Remove System.Drawing.Common dependency
The questions are listed below.
|
In my Svg.Custom project https://github.com/wieslawsoltes/Svg.Skia/blob/407a032aeaaf9a3716959e52e63aca6953f50c6d/src/Svg.Custom/Svg.Custom.csproj#L14 When it's defined I replace all removed functionality with my code. |
Thanks ! This PR depends on |
@H1Gdev - it is the other way around, |
@@ -34,6 +36,7 @@ private static PointF CalculateSecondControlPoint(PointF controlPoint, PointF en | |||
return new PointF(x2, y2); | |||
} | |||
|
|||
#if !NO_SDC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it surrounds AddToPath
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It surrounds AddToPath
and the helper function CalculateControlPoint
used in AddToPath
. Is that wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will submit PR with splitting of all drawing code inside NO_SDC if/def into separate files. This should be easier to read and maintain also make next step closer for #590
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Started work here #934 @H1Gdev @mrbean-bremen your input would be appreciated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good, thanks! I will have a look later today.
I need to not include "system. Drawing. Common". Due to the problem of memory non release in Linux, when can It release a new version? |
Reference Issue
What does this implement/fix? Explain your changes.
Enabled building library without System.Drawing.Common dependency by defining
NO_SDC
.Any other comments?