aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/utfcpp
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-07 18:29:21 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-07 18:29:21 +0300
commitdcfe11a7588fcd42471159453810abc9b7720a57 (patch)
treec32a77266028e73ca2382b96c96f8438a5fcd621 /vendor/libghostty-vt/pkg/utfcpp
parent2dfed860103c4e4505ac7f25def9fe37da1e1e6a (diff)
build: update libghostty-vt vendor
vendor ghostty 063ac3e and remove the musl libc++ link workaround. expose the new selection formatter and hyperlink uri apis for follow-up rendering work. add manual artifact validation for static linux builds.
Diffstat (limited to 'vendor/libghostty-vt/pkg/utfcpp')
-rw-r--r--vendor/libghostty-vt/pkg/utfcpp/build.zig69
-rw-r--r--vendor/libghostty-vt/pkg/utfcpp/build.zig.zon17
-rw-r--r--vendor/libghostty-vt/pkg/utfcpp/empty.cc2
3 files changed, 0 insertions, 88 deletions
diff --git a/vendor/libghostty-vt/pkg/utfcpp/build.zig b/vendor/libghostty-vt/pkg/utfcpp/build.zig
deleted file mode 100644
index 15c652c1..00000000
--- a/vendor/libghostty-vt/pkg/utfcpp/build.zig
+++ /dev/null
@@ -1,69 +0,0 @@
-const std = @import("std");
-
-pub fn build(b: *std.Build) !void {
- const target = b.standardTargetOptions(.{});
- const optimize = b.standardOptimizeOption(.{});
-
- const lib = b.addLibrary(.{
- .name = "utfcpp",
- .root_module = b.createModule(.{
- .target = target,
- .optimize = optimize,
- }),
- .linkage = .static,
- });
- lib.linkLibC();
- // On MSVC, we must not use linkLibCpp because Zig unconditionally
- // passes -nostdinc++ and then adds its bundled libc++/libc++abi
- // include paths, which conflict with MSVC's own C++ runtime headers.
- // The MSVC SDK include directories (added via linkLibC) contain
- // both C and C++ headers, so linkLibCpp is not needed.
- if (target.result.abi != .msvc) {
- lib.linkLibCpp();
- }
-
- if (target.result.os.tag.isDarwin()) {
- const apple_sdk = @import("apple_sdk");
- try apple_sdk.addPaths(b, lib);
- }
-
- if (target.result.abi.isAndroid()) {
- const android_ndk = @import("android_ndk");
- try android_ndk.addPaths(b, lib);
- }
-
- var flags: std.ArrayList([]const u8) = .empty;
- defer flags.deinit(b.allocator);
-
- lib.addCSourceFiles(.{
- .flags = flags.items,
- .files = &.{"empty.cc"},
- });
-
- if (b.lazyDependency("utfcpp", .{})) |upstream| {
- lib.addIncludePath(upstream.path(""));
- lib.installHeadersDirectory(
- upstream.path("source"),
- "",
- .{ .include_extensions = &.{".h"} },
- );
- }
-
- b.installArtifact(lib);
-
- // {
- // const test_exe = b.addTest(.{
- // .name = "test",
- // .root_source_file = .{ .path = "main.zig" },
- // .target = target,
- // .optimize = optimize,
- // });
- // test_exe.linkLibrary(lib);
- //
- // var it = module.import_table.iterator();
- // while (it.next()) |entry| test_exe.root_module.addImport(entry.key_ptr.*, entry.value_ptr.*);
- // const tests_run = b.addRunArtifact(test_exe);
- // const test_step = b.step("test", "Run tests");
- // test_step.dependOn(&tests_run.step);
- // }
-}
diff --git a/vendor/libghostty-vt/pkg/utfcpp/build.zig.zon b/vendor/libghostty-vt/pkg/utfcpp/build.zig.zon
deleted file mode 100644
index 1077e965..00000000
--- a/vendor/libghostty-vt/pkg/utfcpp/build.zig.zon
+++ /dev/null
@@ -1,17 +0,0 @@
-.{
- .name = .utfcpp,
- .version = "4.0.5",
- .fingerprint = 0xcd99aeb2334ae11a,
- .paths = .{""},
- .dependencies = .{
- // nemtrif/utfcpp
- .utfcpp = .{
- .url = "https://deps.files.ghostty.org/utfcpp-1220d4d18426ca72fc2b7e56ce47273149815501d0d2395c2a98c726b31ba931e641.tar.gz",
- .hash = "N-V-__8AAHffAgDU0YQmynL8K35WzkcnMUmBVQHQ0jlcKpjH",
- .lazy = true,
- },
-
- .apple_sdk = .{ .path = "../apple-sdk" },
- .android_ndk = .{ .path = "../android-ndk" },
- },
-}
diff --git a/vendor/libghostty-vt/pkg/utfcpp/empty.cc b/vendor/libghostty-vt/pkg/utfcpp/empty.cc
deleted file mode 100644
index f2ef7409..00000000
--- a/vendor/libghostty-vt/pkg/utfcpp/empty.cc
+++ /dev/null
@@ -1,2 +0,0 @@
-// Needed for Zig build to be happy
-void ghostty_utfcpp_stub() {}