summaryrefslogtreecommitdiff
path: root/pkg/fontconfig
AgeCommit message (Collapse)Author
2025-10-03zig-15: build binary buildsMitchell Hashimoto
2025-07-22build-system: Replace deprecated usages of root_source_file on addTests (#8031)Mitchell Hashimoto
Yet another low-hanging fruit
2025-07-23build-system: Replace deprecated usages of root_source_file on addTestsJayson Reis
2025-07-22build-system: Replace deprecated usages of addStaticLibrary with addLibrary ↵Jayson Reis
(#8029) Hi there, this is just a low-hanging fruit and it also prepares the way for the future 0.15, which removes addStaticLibrary. Please, let me know what to do on the `// TODO` comments.
2025-06-21build: fix `fontconfig` paths on FreeBSD-k
2025-05-26style: use decl literalsQwerasd
This commit changes a LOT of areas of the code to use decl literals instead of redundantly referring to the type. These changes were mostly driven by some regex searches and then manual adjustment on a case-by-case basis. I almost certainly missed quite a few places where decl literals could be used, but this is a good first step in converting things, and other instances can be addressed when they're discovered. I tested GLFW+Metal and building the framework on macOS and tested a GTK build on Linux, so I'm 99% sure I didn't introduce any syntax errors or other problems with this. (fingers crossed)
2025-03-14build: mark most dependencies as lazyMitchell Hashimoto
Lazy dependencies are only fetched if the build script would actually reach a usage of that dependency at runtime (when the `lazyDependency` function is called). This can save a lot of network traffic, disk uage, and time because we don't have to fetch and build dependencies that we don't actually need. Prior to this commit, Ghostty fetched almost everything for all platforms and configurations all the time. This commit reverses that to fetching almost nothing until it's actually needed. There are very little downsides to doing this[1]. One downside is `zig build --fetch` doesn't fetch lazy dependencies, but we don't rely on this command for packaging and suggest using our custom shell script that downloads a cached list of URLs (`build.zig.zon.txt`). This commit doesn't cover 100% of dependencies, since some provide no benefit to make lazy while the complexity to make them lazy is higher (in code style typically). Conversely, some simple dependencies are marked lazy even if they're almost always needed if they don't introduce any real complexity to the code, because there is very little downside to do so. [1]: https://ziggit.dev/t/lazy-dependencies-best-dependencies/5509/5
2025-03-12fix tests building on LinuxMitchell Hashimoto
2025-03-12update all packages to new hash for cachingMitchell Hashimoto
2025-01-03don't make library building logic publicJan200101
2025-01-03always link system freetype2 using pkg-configJan200101
2025-01-03don't build fontconfig when system integration is enabledJan200101
2024-12-20build: change object story domain to ghostty.orgMitchell Hashimoto
2024-10-24build: use Zig system packaging optionsMitchell Hashimoto
This allows dynamically linking against system libraries, which is particularly useful for packaging.
2024-08-16pkg/fontconfig: yeet usingnsMitchell Hashimoto
2024-07-21font: fontconfig always prefer monospace in patternMitchell Hashimoto
Fixes #1984
2024-06-24begin 0.13 update process -- very brokenMitchell Hashimoto
2024-04-17working on more zig breaking changesMitchell Hashimoto
2024-04-17fix more comptime var leaksMitchell Hashimoto
2024-02-26build API change: update usage of addCSourceFilesKrzysztof Wolicki
2024-01-15Use addCSourceFiles with dependency instead of manually adding files in a loopKrzysztof Wolicki
2024-01-07Clean pkg/fontconfig/build.zigKrzysztof Wolicki
2024-01-07Add include paths to modules in pkg/Krzysztof Wolicki
2024-01-03WIP: Update to new build module API after Zig PR #18160Krzysztof Wolicki
Temporarily change dependency sources to forks until they update
2024-01-02pkg/fontconfig: move some dependencies to our own mirrorMitchell Hashimoto
These are unmodified, so users can still verify the checksum with the official downloads if they feel unsafe.
2023-11-30Update to latest master,Krzysztof Wolicki
update libxev dependency, change mach_glfw to an updated fork until upstream updates
2023-11-17change unmodified `var`s to `const`s in anticipation of zig changesKrzysztof Wolicki
2023-10-23pkg/fontconfig: make iconv build param non-windows specificMitchell Hashimoto
2023-10-19pkg/fontconfig: windows check more readableKrzysztof Wolicki
2023-10-19Disable iconv on Windows by default (enabled via cli flag).Krzysztof Wolicki
Skip various tests not implemented on windows.
2023-10-17pkg/fontconfig: move defines to fix x86_64-windows targetsJames Tucker
Some targets were duplicated in the all-targets definition list that will not build for a Windows target. They're all moved to the non-Windows configuration. The target now builds against a mingw64 prefix with the appropriate dependencies installed. Updates #437
2023-10-01pkg: add test targetsMitchell Hashimoto
2023-10-01fix build on linuxMitchell Hashimoto
2023-10-01pkg/fontconfig moduleMitchell Hashimoto
2023-10-01pkg/fontconfig: depend on libxml2Mitchell Hashimoto
2023-10-01pkg/fontconfigMitchell Hashimoto
2023-09-18windows: fix fontconfig into libxml runtime crash from implicit func declJonathan Marler
Fixes the next issue on windows. The fontconfig library is calling the function xmlCreatePushParserCtxt from libxml2, however, the function declaration was being omitted because fontconfig was not defining the LIBXML_PUSH_ENABLED preprocessor symbol. However, instead of a compile error, C's support for implicit function declrations allows it to happily call the function anyway, with the wrong ABI. The main issue was the return type being implicitly declared as "int" instead of a pointer. On my system this was causing the return pointer to be truncated to 32 bits and then sign-extended which caused a segfault once it was dereferenced. I've gone ahead and added the -Werror=implicit-function-declaration to fontconfig to avoid these issues in the future. However, this flag didn't compile on linux so I've left it as Windows only for now. I also needed to add the LIBXML_STATIC define because not defining it causes some functions on windows to be declared with `__declspec(dllimport)` which results in linker errors since we are actually statically linking libxml2.
2023-09-14windows: initial support for zig build testJonathan Marler
Makes progress getting "zig build test" to work on windows. Mostly fixed issues around build configuration and added some branches throughout the Zig code to return/throw errors for unimplemented parts. I also added an initial implementation for getting the home dir.
2023-08-08Fix typosKevin Hovsäter
2023-08-02fix various build scriptsMitchell Hashimoto
2023-06-30Update Zig (#164)Mitchell Hashimoto
* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
2023-06-25Update zig, mach, fmtMitchell Hashimoto
2023-05-29update zig versionMitchell Hashimoto
2023-05-07update zig versionMitchell Hashimoto
2023-02-27pkg: fmtMitchell Hashimoto
2023-02-14new build systemMitchell Hashimoto
2022-11-17pkg/fontconfig: charset can add charsMitchell Hashimoto
2022-09-23Fix invalid c types with fontconfigMitchell Hashimoto
2022-09-23update to the latest stage2 compiler we canMitchell Hashimoto
2022-09-17pkg/fontconfig: const pointersMitchell Hashimoto