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.
This commit is contained in:
parent
7d246e76b3
commit
a750e31d11
17 changed files with 325 additions and 925 deletions
|
|
@ -28,7 +28,7 @@ const freetype = @import("libs/mach-freetype/build.zig");
|
|||
|
||||
pub fn build(b: *Builder) void {
|
||||
...
|
||||
exe.addPackage(freetype.pkg(b));
|
||||
exe.addPackage(freetype.pkg);
|
||||
freetype.link(b, exe, .{});
|
||||
|
||||
// use this option if you are including zlib separately
|
||||
|
|
@ -46,7 +46,7 @@ freetype.link(b, exe, .{ .harfbuzz = .{} });
|
|||
You can also optionally build brotli compression (for WOFF2 font support):
|
||||
|
||||
```zig
|
||||
exe.addPackage(freetype.pkg(b));
|
||||
exe.addPackage(freetype.pkg);
|
||||
freetype.link(b, exe, .{ .freetype = .{ .brotli = true } });
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue