Skip to content

Commit

Permalink
Updates example case to use remote dependency source
Browse files Browse the repository at this point in the history
  • Loading branch information
cipharius committed Oct 5, 2023
1 parent 93e2950 commit 8e2b529
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.{
.name = "zig-tracy",
.version = "0.0.1",
.version = "0.0.2",
}
5 changes: 2 additions & 3 deletions example/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const zig_tracy = b.anonymousDependency(
"./libs/zig-tracy",
@import("libs/zig-tracy/build.zig"),
const zig_tracy = b.dependency(
"zig-tracy",
.{
.target = target,
.optimize = optimize,
Expand Down
10 changes: 10 additions & 0 deletions example/build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.{
.name = "zig-tracy-example",
.version = "0.0.1",
.dependencies = .{
.tracy = .{
.url = "https://github.com/cipharius/zig-tracy/archive/refs/tags/v0.0.2.tar.gz",
.hash = "", // TODO To be filled out
},
},
}
1 change: 0 additions & 1 deletion example/libs/zig-tracy

This file was deleted.

0 comments on commit 8e2b529

Please sign in to comment.