mirror-ghostty/pkg
Mitchell Hashimoto 221f905a1c
pkg/glfw
Closes #6702

This removes our mach-glfw dependency and replaces it with an in-tree
pkg/glfw that includes both the source for compiling glfw as well as the
Zig bindings. This matches the pattern from our other packages.

This is based on the upstream mach-glfw work and therefore includes the
original license and copyright information.

The reasoning is stated in the issue but to summarize for the commit:

  - mach-glfw is no longer maintained, so we have to take ownership
  - mach-glfw depended on some large blobs of header files to enable
    cross-compilation but this isn't something we actually care about,
    so we can (and do) drop the blobs
  - mach-glfw blobs were hosted on mach hosts. given mach-glfw is
    unmaintained, we can't rely on this hosting
  - mach-glfw relied on a "glfw" package which was owned by another
    person to be Zig 0.14 compatible, but we no longer need to rely on
    this
  - mach-glfw builds were outdated based on latest Zig practices
2025-03-13 20:52:33 -07:00
..
apple-sdk Zig 0.14 2025-03-11 14:39:04 -07:00
breakpad update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
cimgui update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
fontconfig fix tests building on Linux 2025-03-12 11:29:13 -07:00
freetype pkg: update to new build.zig.zon format and hash values 2025-03-11 15:00:47 -07:00
glfw pkg/glfw 2025-03-13 20:52:33 -07:00
glslang update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
gtk4-layer-shell pkg/gtk4-layer-shell: disable ubsan 2025-03-13 09:14:37 -07:00
harfbuzz pkg: update to new build.zig.zon format and hash values 2025-03-11 15:00:47 -07:00
highway pkg/highway: upgrade to fix compilation issues on LLVM18 2025-03-12 11:03:54 -07:00
libintl update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
libpng pkg: update to new build.zig.zon format and hash values 2025-03-11 15:00:47 -07:00
libxml2 update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
macos working on macos 2025-03-12 10:15:14 -07:00
oniguruma pkg/oniguruma: fix build 2025-03-12 09:10:17 -07:00
opengl fix mach-glfw on windows 2025-03-12 16:29:17 -07:00
sentry update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
simdutf for iOS simulator builds for apple M1 as base CPU model 2025-03-13 07:13:13 -07:00
spirv-cross update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
utf8proc pkg/utf8proc: yeet usingns 2024-08-16 16:28:39 -07:00
utfcpp update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
wuffs update all packages to new hash for caching 2025-03-12 07:30:01 -07:00
zlib pkg: update to new build.zig.zon format and hash values 2025-03-11 15:00:47 -07:00
README.md pkg: add README and license 2024-09-13 19:55:11 -07:00

README.md

Packages

This folder contains packages written for and used by Ghostty that could potentially be useful for other projects. These are in-tree with Ghostty because I don't want to maintain them as separate projects (i.e. get dedicated issues, PRs, etc.). If you want to use them, you can copy and paste them into your project.

License

This license only applies to the contents of the pkg folder within the Ghostty project. This license does not apply to the rest of the Ghostty project.

Copyright © 2024 Mitchell Hashimoto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.