361 Commits

Author SHA1 Message Date
Mitchell Hashimoto
1a9f80c403 add helpgen entrypoint 2024-02-04 20:17:47 -08:00
Mitchell Hashimoto
1f2b30496b move mdgen main to build dir 2024-02-04 20:04:18 -08:00
Mitchell Hashimoto
c2b3f99faa build: create new build options per compile step
This is going to let us put more object-specific config into the options
rather than affecting every object build per build.
2024-02-04 19:40:59 -08:00
Krzysztof Wolicki
9f6e97d090 Update mach-glfw dependency 2024-02-04 18:41:14 -08:00
Mitchell Hashimoto
c40fc51f2a build: only default emit-docs to true if pandoc is on PATH 2024-01-21 14:49:45 -08:00
Mitchell Hashimoto
ba98aa3aeb build: shuffle files around for mdgen 2024-01-21 14:40:48 -08:00
Mitchell Hashimoto
0967fb46f8 build: use emit-docs for docs, don't need it on build config 2024-01-21 14:22:58 -08:00
Jeffrey C. Ollie
ef09fa89b0 Generate documenation (manpages, etc.) from help strings. 2024-01-21 15:07:22 -06:00
Mitchell Hashimoto
203b38fdac rewrite generate_help for personal style
- Output to stdin instead of a file
- Less nesting
- Utilize ranged for loops instead of while loops
- Eliminate unnecessary state tracking
- Put help in a struct
2024-01-20 09:05:25 -08:00
Jeffrey C. Ollie
f9ac37cdf7 Generate help strings from doc comments
Doc strings attached to fields of the Config struct and doc strings
attached to the run function of actions will be used to generate Zig
code that makes those doc strings available to be used at runtime.

Based on PR #853 by @Raiden1411
2024-01-19 21:19:09 -08:00
Mitchell Hashimoto
d1ad8e4740 build: copy header files, build static lib too 2024-01-18 08:59:07 -08:00
Mitchell Hashimoto
df09c21103 apprt/embedded: compile for Linux 2024-01-18 08:44:56 -08:00
Mitchell Hashimoto
0a1fba0059 Merge pull request #1305 from der-teufel-programming/better-build
Make addDeps cleaner, use addCSourceFiles instead of addCSourceFile in a loop
2024-01-15 14:30:37 -08:00
Mitchell Hashimoto
b5cd2e7a33 build: set os_version_min on default target so tests work 2024-01-15 14:29:55 -08:00
Krzysztof Wolicki
c8c2f4b0ff Make addDeps cleaner 2024-01-15 21:49:22 +01:00
Mitchell Hashimoto
635e6808f6 build: fix mistaken dependency for iOS simulator lib 2024-01-14 19:39:27 -08:00
Mitchell Hashimoto
3c7fe08d87 build: add iOS simulator target 2024-01-13 22:11:13 -08:00
Mitchell Hashimoto
722348f552 build: build iOS lib into XCFramework 2024-01-13 21:39:08 -08:00
Mitchell Hashimoto
3360a008cd build: build produces a broken object file for iOS
This gets `zig build -Dtarget=aarch64-ios` working. By "working" I mean
it produces an object file without compiler errors. However, the object
file certainly isn't useful since it uses a number of features that will
not work in the iOS sandbox.

This is just an experiment more than anything to see how hard it would be to
get libghostty working within iOS to render a terminal. Note iOS doesn't
support ptys so this wouldn't be a true on-device terminal. The
challenge right now is to just get a terminal rendering (not usable).
2024-01-13 21:38:58 -08:00
Krzysztof Wolicki
5b5bfb259b Update mach-glfw dependency 2024-01-13 19:43:51 -08:00
Mitchell Hashimoto
f61eaea4d0 build: update our macOS checks to check for macOS specifically 2024-01-13 15:29:12 -08:00
Mitchell Hashimoto
bfe3c356f0 build: move our configuration out of globals 2024-01-13 15:18:45 -08:00
Mitchell Hashimoto
d4b53cac06 build: move more options to BuildConfig 2024-01-13 15:11:28 -08:00
Mitchell Hashimoto
dfa55988d6 build: use BuildConfig struct 2024-01-13 15:08:37 -08:00
Mitchell Hashimoto
29717269ca build: remove tracy completely 2024-01-13 14:30:56 -08:00
Mitchell Hashimoto
5216b4cfe9 build: remove generate_rgb_names 2024-01-10 20:40:21 -08:00
Jeffrey C. Ollie
bc1544a3f0 add ability to specify RGB colors as names from the X11 rgb name list 2024-01-10 20:26:59 -08:00
Mitchell Hashimoto
829776bebd pkg/apple-sdk: always require a module 2024-01-09 22:11:03 -08:00
Mitchell Hashimoto
ec6d470985 build: only build embedded lib when targeting macos specifically 2024-01-09 21:36:10 -08:00
Tristan Partin
d2813655e5 fix: update code to compile with 0.12.0-dev.2075+f5978181e 2024-01-08 20:08:10 -06:00
Mitchell Hashimoto
a8a42c8658 fix macos zig build test failures 2024-01-07 12:10:48 -08:00
Mitchell Hashimoto
c1bde28af4 update flake 2024-01-07 12:03:23 -08:00
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