229 Commits

Author SHA1 Message Date
Krzysztof Wolicki
12f4210558 Update required zig version to 0.12.0-dev.2063+804cee3b9 2024-01-07 20:42:30 +01:00
Krzysztof Wolicki
5776c54225 Update changed build.zig 2024-01-07 15:00:17 +01:00
Krzysztof Wolicki
710b02a2ab Merge branch 'main' of github.com:mitchellh/ghostty 2024-01-06 05:42:55 +01:00
widberg
cc29f06863 Don't build with LTO on Windows 2024-01-04 21:24:15 -05:00
Krzysztof Wolicki
1d49492e04 build.zig: Make use of resolveTargetQuery for wasm_freestanding target 2024-01-04 13:29:43 +01:00
Krzysztof Wolicki
1913243c35 WIP: Update to new build module API after Zig PR #18160
Temporarily change dependency sources to forks until they update
2024-01-03 21:50:32 +01:00
Mitchell Hashimoto
eb46161b5e config: generate vim configs at comptime 2023-12-22 08:19:17 -08:00
Gregory Anders
4f01aafdba build: move Vim plugin file generation into a separate Step 2023-12-21 21:49:38 -06:00
Gregory Anders
e9632a0f91 build: build Vim plugin files for Ghostty config file
Generate Vim syntax and ftplugin files for the Ghostty config file that
highlight Ghostty config keywords and offer completion for valid config
keys. The list of configuration keys is generated at compile time.

The plugin files are installed to ${prefix}/share/vim/vimfiles, which is
a standard location for installing 3rd party Vim plugin files.
2023-12-21 21:46:26 -06:00
Gregory Anders
8751502878 core: look for resources in "ghostty" subdirectory for "share" paths
Installing resources directly under ${prefix}/share causes conflicts
with other packages. This will become more problematic whenever Ghostty
is opened and becomes packaged in distributions.

Instead, install all resources under a "ghostty" subdirectory (i.e.
${prefix}/share/ghostty). This includes themes, shell integration, and
terminfo files.

Only "/usr/share" style paths use the "ghostty" subdirectory. On macOS,
Ghostty is already isolated within its app bundle, and if
$GHOSTTY_RESOURCES_DIR is set then we assume that points to the actual
resources dir (without needing to append "ghostty" to it).
2023-12-21 17:56:17 -08:00
Chris Marchesi
5e7e3be60a build: use dedicated strings for conformance test keys
This uses separate strings for the keys for the conformance tests versus
just deriving them from the sliced path.

This fixed an issue for me where a few of the tests were showing up as
InvalidConformance (notably the "blocks" test), even though, oddly
enough, the key/value entries do appear to be there (e.g. if you iterated
over them). I did notice, though, that we currently sliced the key from
the file entry of the directory iterator, which is closed at the end of
conformanceSteps.
2023-12-14 21:35:04 -08:00
Mitchell Hashimoto
8f5f8fb0bd update Zig version in Nix 2023-11-30 14:06:24 -08:00
Krzysztof Wolicki
bfc688e96e Update required zig version to 0.12.0-dev.1767+1e42a3de8 2023-11-30 21:41:42 +01:00
Krzysztof Wolicki
46699d53d1 Update to latest master 2023-11-30 21:40:01 +01:00
Mitchell Hashimoto
af04d891ff build: dynamically link oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
b85174c7ac build: add oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
dde2339e4d move back to zig pm 2023-11-28 08:11:34 -08:00
Mitchell Hashimoto
c7a1e074dd don't use package manager for iterm2 themes yet 2023-11-22 22:08:27 -08:00
Mitchell Hashimoto
7a91a23e40 build: add iterm2 themes repository, install into resources dir 2023-11-22 21:08:26 -08:00
Mitchell Hashimoto
8576acb89e renderer/opengl: move opengl API to pkg/opengl 2023-11-17 21:51:04 -08:00
Mitchell Hashimoto
291ca16c20 build: add spirv-cross 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
1678c3a038 build: add glslang 2023-11-17 21:50:35 -08:00
Krzysztof Wolicki
44a48f62f1 change unmodified vars to consts in anticipation of zig changes 2023-11-17 15:46:46 +01:00
Mitchell Hashimoto
4781a83e4a replace utf8proc with ziglyph 2023-11-07 13:17:56 -08:00
xdBronch
205b27dc80 remove deps that were already provided by other packages (#797) 2023-11-03 14:04:00 -07:00
Mitchell Hashimoto
1235c33db2 Merge pull request #794 from hqnna/main
Add option to enable or disable libadwaita
2023-11-02 22:14:59 -07:00
hanna
915f1f5e62 change option name and default value 2023-11-02 22:03:11 -07:00
hanna
63fe99809f remove hard dependency on libadwaita 2023-11-02 21:54:05 -07:00
Mitchell Hashimoto
2275768383 font: if a codepoint is emoji presentation, prefer that for shaping
Fixes #787
2023-11-02 21:46:50 -07:00
Hanna
2d7e2c8345 Integrate libadwaita for the gtk backend (#792)
* When using gtk as the backend, link libadwaita

* Update c.zig

* Use libadwaita's theme manager for gtk

* update the documentation for window-theme

* build: add libadwaita to the nix devshell

* forgot to properly import libadwaita

* apprt/gtk: adwaita style change

---------

Co-authored-by: Mitchell Hashimoto <mitchell.hashimoto@gmail.com>
2023-11-02 21:29:29 -07:00
Mitchell Hashimoto
423d0d58c0 build: do not build glfw for gtk anymore 2023-10-27 15:11:04 -07:00
Mitchell Hashimoto
efddef9d1c build: add cimgui to build 2023-10-24 15:27:13 -07:00
Mitchell Hashimoto
cbdf52864a Merge pull request #704 from der-teufel-programming/windows-test
Get `zig build test` working on Windows
2023-10-23 08:52:43 -07:00
Mitchell Hashimoto
b9b33ab25d pkg/fontconfig: make iconv build param non-windows specific 2023-10-23 08:40:25 -07:00
Mitchell Hashimoto
b6a47cef77 build: disable Tracy by default even for debug builds
Our usage has a memory leak and I don't know where it is and don't want
to spend the time finding it because we very rarely use the tracy
integration anyways.
2023-10-19 20:03:36 -07:00
Krzysztof Wolicki
cf9f025a5b Don't enable iconv for fontconfig dep on windows 2023-10-19 17:10:24 +02:00
Krzysztof Wolicki
00c24e4ae6 Fix option name passed to fontconfig dep 2023-10-19 10:52:09 +02:00
Krzysztof Wolicki
3936b471a8 Disable iconv on Windows by default (enabled via cli flag).
Skip various tests not implemented on windows.
2023-10-19 09:39:20 +02:00
Mitchell Hashimoto
8f46d114c0 update zig 2023-10-17 12:45:35 -07:00
Mitchell Hashimoto
2b28106837 update zig 2023-10-02 08:18:35 -07:00
Mitchell Hashimoto
0b6cfac8b0 don't run dependency tests anymore 2023-10-01 18:34:51 -07:00
Mitchell Hashimoto
4e1b3b3224 fix failing test, freetype needs libpng 2023-10-01 18:33:37 -07:00
Mitchell Hashimoto
e3a58526ce fix dynamic build 2023-10-01 17:42:18 -07:00
Mitchell Hashimoto
d71197dc59 no more system_sdk 2023-10-01 17:38:30 -07:00
Mitchell Hashimoto
3a4842a0a5 fix build on linux 2023-10-01 17:32:59 -07:00
Mitchell Hashimoto
ccd6eee5fe progress on glfw 2023-10-01 17:30:11 -07:00
Mitchell Hashimoto
8395bb7470 pkg/tracy 2023-10-01 17:11:04 -07:00
Mitchell Hashimoto
7bd4c96b41 remove unused deps 2023-10-01 17:04:17 -07:00
Mitchell Hashimoto
aece38ecb2 macos: fix missing symbols in archive 2023-10-01 17:03:32 -07:00
Mitchell Hashimoto
ec26fb7cee pkg/macos 2023-10-01 17:02:12 -07:00