Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excise pixman, use z2d for sprite fonts, refactor box drawing, add new box characters #2439

Merged
merged 14 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1007,10 +1007,6 @@ fn addDeps(
.optimize = optimize,
});
const opengl_dep = b.dependency("opengl", .{});
const pixman_dep = b.dependency("pixman", .{
.target = target,
.optimize = optimize,
});
const sentry_dep = b.dependency("sentry", .{
.target = target,
.optimize = optimize,
Expand Down Expand Up @@ -1044,6 +1040,7 @@ fn addDeps(
.target = target,
.optimize = optimize,
});
const z2d_dep = b.dependency("z2d", .{});

// Wasm we do manually since it is such a different build.
if (step.rootModuleTarget().cpu.arch == .wasm32) {
Expand Down Expand Up @@ -1125,12 +1122,16 @@ fn addDeps(
step.root_module.addImport("spirv_cross", spirv_cross_dep.module("spirv_cross"));
step.root_module.addImport("xev", libxev_dep.module("xev"));
step.root_module.addImport("opengl", opengl_dep.module("opengl"));
step.root_module.addImport("pixman", pixman_dep.module("pixman"));
step.root_module.addImport("sentry", sentry_dep.module("sentry"));
step.root_module.addImport("ziglyph", ziglyph_dep.module("ziglyph"));
step.root_module.addImport("vaxis", vaxis_dep.module("vaxis"));
step.root_module.addImport("wuffs", wuffs_dep.module("wuffs"));
step.root_module.addImport("zf", zf_dep.module("zf"));
step.root_module.addImport("z2d", b.addModule("z2d", .{
.root_source_file = z2d_dep.path("src/z2d.zig"),
.target = target,
.optimize = optimize,
}));

// Mac Stuff
if (step.rootModuleTarget().isDarwin()) {
Expand Down Expand Up @@ -1196,7 +1197,6 @@ fn addDeps(
step.linkSystemLibrary2("freetype2", dynamic_link_opts);
step.linkSystemLibrary2("libpng", dynamic_link_opts);
step.linkSystemLibrary2("oniguruma", dynamic_link_opts);
step.linkSystemLibrary2("pixman-1", dynamic_link_opts);
step.linkSystemLibrary2("zlib", dynamic_link_opts);

if (config.font_backend.hasFontconfig()) {
Expand All @@ -1222,10 +1222,6 @@ fn addDeps(
step.linkLibrary(freetype_dep.artifact("freetype"));
try static_libs.append(freetype_dep.artifact("freetype").getEmittedBin());

// Pixman
step.linkLibrary(pixman_dep.artifact("pixman"));
try static_libs.append(pixman_dep.artifact("pixman").getEmittedBin());

// Harfbuzz
if (config.font_backend.hasHarfbuzz()) {
step.linkLibrary(harfbuzz_dep.artifact("harfbuzz"));
Expand Down
5 changes: 4 additions & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
.macos = .{ .path = "./pkg/macos" },
.oniguruma = .{ .path = "./pkg/oniguruma" },
.opengl = .{ .path = "./pkg/opengl" },
.pixman = .{ .path = "./pkg/pixman" },
.sentry = .{ .path = "./pkg/sentry" },
.simdutf = .{ .path = "./pkg/simdutf" },
.utfcpp = .{ .path = "./pkg/utfcpp" },
Expand All @@ -61,5 +60,9 @@
.url = "git+https://github.com/natecraddock/zf.git?ref=main#bb27a917c3513785c6a91f0b1c10002a5029cacc",
.hash = "1220a74107c7f153a2f809e41c7fa7e8dbf75c91043e39fad998247804e5edac2cc8",
},
.z2d = .{
.url = "git+https://github.com/vancluever/z2d?ref=main#285a796eb9c25a2389f087d008f0e60faf0b8eda",
.hash = "12206445aa45bcf0170ace371905f705aec1d8d4f61e7dd77839c6621b8c407680a5",
},
},
}
3 changes: 0 additions & 3 deletions nix/devShell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
libXi,
libXinerama,
libXrandr,
pixman,
zlib,
alejandra,
pandoc,
Expand All @@ -61,7 +60,6 @@
harfbuzz
libpng
oniguruma
pixman
zlib

libX11
Expand Down Expand Up @@ -126,7 +124,6 @@ in
harfbuzz
libpng
oniguruma
pixman
zlib

libX11
Expand Down
2 changes: 0 additions & 2 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
freetype,
harfbuzz,
libpng,
pixman,
zlib,
libGL,
libX11,
Expand Down Expand Up @@ -133,7 +132,6 @@ in
freetype
harfbuzz
libpng
pixman
zlib

libX11
Expand Down
122 changes: 0 additions & 122 deletions pkg/pixman/build.zig

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/pixman/build.zig.zon

This file was deleted.

3 changes: 0 additions & 3 deletions pkg/pixman/c.zig

This file was deleted.

4 changes: 0 additions & 4 deletions pkg/pixman/error.zig

This file was deleted.

118 changes: 0 additions & 118 deletions pkg/pixman/format.zig

This file was deleted.

Loading
Loading