Skip to content

Commit

Permalink
fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
r4gus committed May 13, 2024
1 parent 1fe702f commit 4a9a400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub fn build(b: *std.Build) !void {
},
});
try b.modules.put(b.dupe("clientlib"), client_module);
client_module.linkLibrary(hidapi_dep.artifact("hidapi"));

// Examples
// ------------------------------------------------
Expand All @@ -64,7 +65,6 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});
client_example.root_module.addImport("client", client_module);
client_example.linkLibrary(hidapi_dep.artifact("hidapi"));

const client_example_step = b.step("client-example", "Build the client application example");
client_example_step.dependOn(&b.addInstallArtifact(client_example, .{}).step);
Expand Down Expand Up @@ -95,7 +95,7 @@ pub fn build(b: *std.Build) !void {
c_bindings.root_module.addImport("keylib", keylib_module);
c_bindings.linkLibC();
c_bindings.installHeadersDirectory(
std.Build.LazyPath{ .path = "bindings/c/include" },
b.path("bindings/c/include"),
"keylib",
.{
.exclude_extensions = &.{},
Expand All @@ -112,7 +112,7 @@ pub fn build(b: *std.Build) !void {
});
uhid.linkLibC();
uhid.installHeadersDirectory(
std.Build.LazyPath{ .path = "bindings/linux/include" },
b.path("bindings/linux/include"),
"keylib",
.{
.exclude_extensions = &.{},
Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
.hidapi = .{
.url = "https://github.com/r4gus/hidapi/archive/master.tar.gz",
.hash = "12207548a5f0765e04ac3da55b49e2ad34ac9f2ca34dd510f62d44cf48d472d57c87",
.hash = "12205468b2476db0f5caca335aa448a51ced34dcfd645643522f0754c5edeb70edd2",
},
},
.paths = .{
Expand Down

0 comments on commit 4a9a400

Please sign in to comment.