Skip to content

Commit

Permalink
chore: update raylib dependency and add raygui module
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticdog committed Sep 1, 2024
1 parent dde9162 commit 273c4e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});
const raylib_artifact = raylib_dep.artifact("raylib");
const raylib_artifact = raylib_dep.artifact("raylib"); // raylib C library

const rtmidi_dep = b.dependency("rtmidi_z", .{
.target = target,
Expand All @@ -32,6 +32,7 @@ pub fn build(b: *std.Build) void {
});
exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib_dep.module("raylib"));
exe.root_module.addImport("raygui", raylib_dep.module("raygui"));
exe.root_module.addImport("rtmidi", rtmidi_dep.module("rtmidi_z"));
b.installArtifact(exe);

Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.minimum_zig_version = "0.12.0",
.dependencies = .{
.@"raylib-zig" = .{
.url = "https://github.com/Not-Nik/raylib-zig/archive/6cc4aec3c478b88559e7d7e40b9e29d01de0a18b.tar.gz",
.hash = "1220ff1a9e774784fe3f11ffe71bc0186f9e62eb0fe1727f676d038b62665a5c74c5",
.url = "https://github.com/Not-Nik/raylib-zig/archive/e3e3a7518a308261551dc143bf347fd142bc80b3.tar.gz",
.hash = "12209ba41100c91e36311568875d56f90f73fea84521ec15fc83963078bbc8f0def1",
},
.rtmidi_z = .{
.url = "https://github.com/ryleelyman/rtmidi_z/archive/74a1eaac4a679a7c71916b2ff2ec6881e5548124.tar.gz",
Expand Down

0 comments on commit 273c4e0

Please sign in to comment.