diff --git a/build.zig b/build.zig index 0fb0600..3a85057 100644 --- a/build.zig +++ b/build.zig @@ -42,8 +42,8 @@ pub fn build(b: *std.Build) void { lib.defineCMacro("TRACY_ENABLE", null); lib.defineCMacro("TRACY_CALLSTACK", null); } - lib.addIncludePath(.{ .path = "src" }); - lib.addIncludePath(.{ .path = "include" }); + lib.addIncludePath(b.path("src")); + lib.addIncludePath(b.path("include")); lib.addCSourceFiles(.{ .files = &[_][]const u8{ "src/backtrace.cpp", "src/c/context.cpp", @@ -69,20 +69,20 @@ pub fn build(b: *std.Build) void { b.installArtifact(lib); const cbor_mod = b.addModule("cbor", .{ - .root_source_file = .{ .path = "src/cbor.zig" }, + .root_source_file = b.path("src/cbor.zig"), }); const thespian_mod = b.addModule("thespian", .{ - .root_source_file = .{ .path = "src/thespian.zig" }, + .root_source_file = b.path("src/thespian.zig"), .imports = &.{ .{ .name = "cbor", .module = cbor_mod }, }, }); - thespian_mod.addIncludePath(.{ .path = "include" }); + thespian_mod.addIncludePath(b.path("include")); thespian_mod.linkLibrary(lib); const tests = b.addTest(.{ - .root_source_file = .{ .path = "test/tests.zig" }, + .root_source_file = b.path("test/tests.zig"), .target = target, .optimize = optimize, }); @@ -90,9 +90,9 @@ pub fn build(b: *std.Build) void { tests.root_module.addImport("build_options", options_mod); tests.root_module.addImport("cbor", cbor_mod); tests.root_module.addImport("thespian", thespian_mod); - tests.addIncludePath(.{ .path = "test" }); - tests.addIncludePath(.{ .path = "src" }); - tests.addIncludePath(.{ .path = "include" }); + tests.addIncludePath(b.path("test")); + tests.addIncludePath(b.path("src")); + tests.addIncludePath(b.path("include")); tests.addCSourceFiles(.{ .files = &[_][]const u8{ "test/cbor_match.cpp", "test/debug.cpp", diff --git a/build.zig.zon b/build.zig.zon index c0b52fe..bdc73a8 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -4,12 +4,12 @@ .dependencies = .{ .asio = .{ - .url = "https://github.com/neurocyte/asio/archive/cd95148112967de017653173c4cad6a9d0bf60b7.tar.gz", - .hash = "12207e740e2924b615c030f9ae64f4257b89f741b1554a2494dbe349b32b815bfefd", + .url = "https://github.com/neurocyte/asio/archive/b9c9c23ef2e6f11b6123535ec33e5a23ed0c59da.tar.gz", + .hash = "1220c85e0d9438ec518849c84e3ea66633a0e191e49c4ae4bbb3bc46626cd8dfad75", }, .tracy = .{ - .url = "https://github.com/neurocyte/zig-tracy/archive/303574aa9015b2c5e80e053234b3ec1d6227f0ed.tar.gz", - .hash = "12209136682cc51f20f5a4ff2365ca1a13445688aadfc570c4684b828bf9e48d2011", + .url = "https://github.com/neurocyte/zig-tracy/archive/58999b786089e5319dd0707f6afbfca04c6340e7.tar.gz", + .hash = "1220a2c8f8db1b5265458ac967ea1f7cc0a8ddcd1d774df3b73d86c4f529aadbfb94", }, }, .paths = .{