Fix includes of thirdparty libs which can be unbundled on Linux#73441
Merged
akien-mga merged 1 commit intogodotengine:masterfrom Feb 17, 2023
Merged
Fix includes of thirdparty libs which can be unbundled on Linux#73441akien-mga merged 1 commit intogodotengine:masterfrom
akien-mga merged 1 commit intogodotengine:masterfrom
Conversation
Changes `builtin_icu` and `builtin_recast` to match the folder names in `thirdparty`.
akien-mga
commented
Feb 16, 2023
Comment on lines
+201
to
+207
| if (not all(ft_linked_deps)) and any(ft_linked_deps): # All or nothing. | ||
| print( | ||
| "These libraries should be either all builtin, or all system provided:\n" | ||
| "freetype, libpng, zlib, graphite, harfbuzz.\n" | ||
| "Please specify `builtin_<name>=no` for all of them, or none." | ||
| ) | ||
| sys.exit() |
Member
Author
There was a problem hiding this comment.
This is a bit brittle, and I think the list is actually longer but with some of the components optional?
Namely fontconfig and msdfgen.
akien-mga
commented
Feb 16, 2023
| if not env["builtin_icu"]: | ||
| env.ParseConfig("pkg-config icu-uc --cflags --libs") | ||
| if not env["builtin_icu4c"]: | ||
| env.ParseConfig("pkg-config icu-i18n icu-uc --cflags --libs") |
Member
Author
There was a problem hiding this comment.
uspoof_* is in icu-i18n.
akien-mga
commented
Feb 16, 2023
|
|
||
| #if BASISD_SUPPORT_KTX2_ZSTD | ||
| #include "../zstd/zstd.h" | ||
| #include <zstd.h> |
Member
Author
There was a problem hiding this comment.
I'll make a patch file for this once I confirm the changes work, and see what upstream thinks about it.
Member
Author
There was a problem hiding this comment.
There's already an upstream PR for it: BinomialLLC/basis_universal#228
bruvzg
approved these changes
Feb 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
builtin_icuandbuiltin_recastto match the folder names inthirdparty.Testing on Mageia together with #73359 for an upcoming update to my official
godotRPM packages for Mageia and Fedora, with the following script:Not 100% done compiling to make sure everything works.Edit: Built a Godot 4 package for Mageia successfully.
For the record, this shaves off around 10% of the binary size, which isn't as huge as some might expect ;) (but it's not the primary reason to unbundle libraries, shared the burden on bugfixes - especially security fixes - among all packages is the goal).