-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[freetype] Make zlib and brotli features #14917
Conversation
So the CI error seems unrelated to the PR... again. (What are the odds that two PRs of mine assigned to you in a row have that issue? 😛)
(empty lines were removed for brevity) Looks like the upstream source for vtk-m silently changed the file. I can confirm the "Actual hash" is what I got downloading the file on my machine. Someone with the original file should confirm what changed and update the expected hash in the port. |
If we decide to move the dependency to default features, the cmake config file and vcpkg-cmake-wrapper.cmake need to update as well, since when users built the port with core, the dependency port will not found, and it would fail when use the port. https://github.com/microsoft/vcpkg/blob/master/ports/freetype/fix-exports.patch |
Sounds good to me! |
b383bec
to
1b44431
Compare
I updated vcpkg-cmake-wrapper.cmake and its related I have no real idea what's going on with |
@LRFLEW, the patch https://github.com/microsoft/vcpkg/blob/master/ports/freetype/fix-exports.patch write |
@PhoebeHui I added a fix for fix-exports.patch. It should be working correctly if I understand it correctly. I could probably skip the separate freetype-config.cmake and freetype-targets.cmake when Zlib is not used, but it's simpler to just not use |
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.
LGTM, thanks for your updates!
Thanks for your contribution! |
I was looking to make a build of Freetype without brotli (as I don't need WOFF2, and the extra dependency increased build sizes), but it wasn't made a feature for some reason. This makes the use of zlib and brotli in freetype info features that can be excluded by users. The new features are added to the defaults so that the default build does not change. The only optional dependency not a feature now is harfbuzz, but that's because there's a circular dependency issue.
I checked to see if there was a reason why brotli wasn't made a feature before, but I couldn't find any explanation for it in #12380 or #12405.
EDIT: I see the CI errors. I'll look into them. My guess is that port dependencies need to be updated for the new features.