Commit graph

75 commits

Author SHA1 Message Date
Stephen Gutekanst
beb93ec893 freetype: update to latest Zig API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-06-29 19:02:44 -07:00
Stephen Gutekanst
4bc32adeb8 all: update to latest Zig APIs (zig fmt)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-06-29 09:54:32 -07:00
Wrench[bot]
68c88c46da all: update Zig to version 0.11.0-dev.3883+7166407d8
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-06-29 01:07:55 -07:00
Stephen Gutekanst
d2ca4391e9 all: update macOS target triples
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-06-25 00:38:45 -07:00
Stephen Gutekanst
29964c99bb update to latest Zig (zig fmt)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-06-25 00:01:55 -07:00
Wrench[bot]
8a05b449ab all: update Zig to version 0.11.0-dev.3798+a5e15eced
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-06-25 00:00:41 -07:00
Stephen Gutekanst
dc87787133 all: update Zig to version 0.11.0-dev.3380+7e0a02ee2 2023-06-14 15:39:55 -07:00
Stephen Gutekanst
99438db111 Revert "all: update Zig to version 0.11.0-dev.3380+7e0a02ee2"
This reverts commit 6e9ce61254.
2023-06-14 15:37:47 -07:00
Wrench[bot]
6e9ce61254 all: update Zig to version 0.11.0-dev.3380+7e0a02ee2
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-06-13 09:55:03 -07:00
mlugg
867d111f6d freetype: fix and re-enable harfbuzz
This wasn't actually broken due to a Zig bug, but rather due to some
pragmas in Harfbuzz which forcibly enable this -Werror. Luckily, there's
a macro you can define to disable them.
2023-06-13 09:52:39 -07:00
Wrench[bot]
6135071a0c all: update Zig to version 0.11.0-dev.3379+629f0d23b
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-06-04 12:22:54 -07:00
Wrench[bot]
a48954cdb3 all: update Zig to version 0.11.0-dev.3332+76aa1fffb
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-05-31 22:08:28 -07:00
Wrench[bot]
026dcd4c06 all: update Zig to version 0.11.0-dev.3312+ab37ab33c
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-05-28 14:34:08 -07:00
Wrench[bot]
4f9cf2ab16 all: update Zig to version 0.11.0-dev.3299+34865d693
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-05-25 16:54:41 -07:00
Wrench[bot]
11a0a8b73e all: update Zig to version 0.11.0-dev.2868+1a455b2dd
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-04-28 16:00:21 -07:00
Stephen Gutekanst
142c8b5b2e freetype: disable harfbuzz for now (build is broken, clang warning cannot be disabled)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-25 15:06:11 -07:00
Stephen Gutekanst
0a435d36a7 freetype: update submodule location
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-25 15:06:11 -07:00
Vivek Roy
ff0258f27d all: use std.Build.installArtifact 2023-04-25 15:06:11 -07:00
Wrench[bot]
beef56a023 all: update Zig to version 0.11.0-dev.2777+b95cdf0ae
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-04-24 21:53:41 -07:00
Ali Chraghi
49b7c940a9 {freetype, harfbuzz}: fix build error 2023-04-11 08:54:51 -07:00
Erik Arvstedt
858ba2eca5 freetype:harfbuzz: expose C API
Like in freetype.
2023-04-08 13:42:25 -07:00
Erik Arvstedt
b4685feb37 freetype:harfbuzz: fix type for shapers args
Non zero-terminated slices of the previous type caused runtime errors.
2023-04-08 13:41:31 -07:00
Erik Arvstedt
762a2074ee freetype: fix type for C string args
Propagate the correct string type required by Freetype to the Zig layer.
Previously, passing non zero-terminated strings caused runtime errors.
2023-04-08 13:41:31 -07:00
Stephen Gutekanst
ee2ee13541 freetype: bury the bodies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-02 10:12:48 -07:00
Wrench[bot]
2025ac8d17 all: update Zig to version 0.11.0-dev.2160+49d37e2d1
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-03-24 23:23:10 -07:00
Ali Chraghi
edd2117174 all: build: update to zig version 0.11.0-dev.6883+da0509750 2023-03-24 23:22:59 -07:00
Wrench[bot]
d9bcb1e291 all: update Zig to version 0.11.0-dev.1987+a2c6ecd6d
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-03-16 09:47:25 -07:00
Stephen Gutekanst
6bd4d91932 all: cache module() returns to avoid duplicate modules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-03-15 21:20:28 -07:00
Wrench[bot]
6561c24df5
all: update Zig to version 0.11.0-dev.1824+a7a709aaa (#709)
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-03-05 12:15:06 -07:00
Stephen Gutekanst
34132c01b2 officially deprecate Matrix chat in favor of Discord
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-02-13 06:46:23 -07:00
Stephen Gutekanst
a2eb384eaf freetype: update to latest Zig build API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-02-12 10:05:03 -07:00
Wrench[bot]
3d769b9671 all: update Zig to version 0.11.0-dev.1605+abc9530a8
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-02-12 10:05:03 -07:00
Wrench[bot]
31a54cc9c5 all: update Zig to version 0.11.0-dev.1479+97b1a9bb6
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-28 17:07:04 -07:00
Ali Chraghi
320090ee42 freetype: ci: don't run tests when cross-compiling 2023-01-20 14:53:22 -07:00
Wrench[bot]
4681425f56 all: update Zig to version 0.11.0-dev.1350+bbab4beda
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-18 10:34:40 -07:00
Ali Chraghi
3e51dc0581 ci: remove git install step 2023-01-12 10:51:16 -07:00
Wrench[bot]
a19dcbbc19 all: update Zig to version 0.11.0-dev.1268+0e66df209
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-12 02:05:33 -07:00
Stephen Gutekanst
a750e31d11 Revert "all: build: fix sdkPath for relative @src.file / fix autocompletion with ZLS / IDEs (#661)"
This reverts commit a1fe671db8.

Lue suggested reverting #661 because ZLS worked around the issue of @src
being relative in that environment: https://github.com/zigtools/zls/pull/898

This is not a perfect solution (what zls did seems to be a workaround), but
is good enough for us until Zig gets an official package manager.
2023-01-10 01:57:52 -07:00
Wrench[bot]
7d246e76b3 all: update Zig to version 0.11.0-dev.1247+87b223428
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-08 18:21:50 -07:00
Lue
a1fe671db8
all: build: fix sdkPath for relative @src.file / fix autocompletion with ZLS / IDEs (#661)
* all: build: fix sdkPath for relative @src.file

Prior to this commit, the build system heavily assumed that the result
`@src.file` would always be absolute, but this is no longer
guaranteed, likely due to there being no such thing as an "absolute
path" in WASI.

It appears that for normal invocations of `zig build`, it is safe to
assume that `@src.file` is absolute. However, when ZLS uses a custom
`build_runner.zig` to collect build configuration, `@src.file` is
actually relative to the current working directory, at least on my
system. For a while, this led to ZLS completions breaking entirely,
but presently it actually causes ZLS to crash!

The solution is not as simple as using relative `sdkPath` results
as-is, because the build system may attempt to resolve these paths
relative to build root, when the paths are actually relative to the
current working directory.

This leads to a sticky situation: the current working directory is a
runtime concept, but `@src.file` is resolved at compile time. However,
it appears that the build runner does not change current working
directory in between compilation and execution, so it is probably safe
to calculate `sdkPath` using runtime current working directory.

Still, this requires major changes with how `sdkPath` works, since
runtime computation and allocations are required. So pretty much
anything that relied on `sdkPath` being comptime-known has been
refactored in this commit.

The most severe result of this is that, for example, `gpu.pkg` can no
longer be a comptime-known constant: it has to be a runtime function
that takes a `*Builder` and returns a `Pkg`.

This commit deals with usages of `*.pkg` and `sdkPath` within Mach
itself, but projects that depend on Mach such as `mach-examples` will
almost certainly require changes as well.

* all: update README to reflect change in pkg usage

For details on updating your code to use this version, see: 88b1106953

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2023-01-02 01:23:46 -07:00
Wrench[bot]
d5f37257c5 all: update Zig to version 0.11.0-dev.1023+1c711b0a6
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-01 02:40:57 -07:00
Wrench[bot]
a3a0417c21 all: update Zig to version 0.11.0-dev.1000+94780f7cd
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2022-12-30 12:52:31 -07:00
Ali Chraghi
5849304fba all: update zig version 2022-12-25 13:36:03 -07:00
Ali Chraghi
3b162fdd7c all: update zig version 2022-12-18 18:02:31 -07:00
Keith Chambers
81fce62133
freetype: fix incorrect font path in embedFile (#636) 2022-12-14 02:19:34 -07:00
David Vanderson
305fa7fa35
freetype: add option to build using separate zlib (#621) 2022-11-22 10:22:10 -07:00
Ali Chraghi
a2c6319bc4 freetype: set packed structs backing integer 2022-11-01 08:59:13 -07:00
BratishkaErik
aafb26189f
all: README: fix links to main repository (#600) 2022-10-28 10:22:23 -07:00
Stephen Gutekanst
628387764c all: CI: update to latest Zig master version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 09:11:16 -07:00
Stephen Gutekanst
2c65845aed all: CI: update to latest Zig 0.10.0-dev.4333+f5f28e0d2
Produced via:

```
ZIG_VERSION=0.10.0-dev.4333+f5f28e0d2 ./dev/update-zig.sh
```

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 09:00:45 -07:00