Compare commits

..

No commits in common. "efd8a47287853fa96ea6570d6857dfdd08122739" and "d2f8af619f76a919f6893d21e774245d958afcbf" have entirely different histories.

7 changed files with 10 additions and 5537 deletions

6
.gitmodules vendored Normal file
View file

@ -0,0 +1,6 @@
[submodule "zig/3rd-party/raylib"]
path = zig/3rd-party/raylib
url = https://github.com/raysan5/raylib/
[submodule "zig/3rd-party/raygui"]
path = zig/3rd-party/raygui
url = https://github.com/raysan5/raygui/

1
zig/3rd-party/raygui vendored Submodule

@ -0,0 +1 @@
Subproject commit 85a5c104f509b183c8cc7db0d90c2ab7a2b198c8

5522
zig/3rd-party/raygui.h vendored

File diff suppressed because it is too large Load diff

1
zig/3rd-party/raylib vendored Submodule

@ -0,0 +1 @@
Subproject commit bc15c19518968878b68bbfe8eac3fe4297f11770

View file

@ -16,12 +16,12 @@ pub fn build(b: *std.Build) void {
// We cannot directly use modules since v4.5 is not compatible with zig // We cannot directly use modules since v4.5 is not compatible with zig
// v0.11 // v0.11
const raylib_dep = b.dependency("raylib", .{ const raylib_dep = b.anonymousDependency("3rd-party/raylib/", @import("3rd-party/raylib/build.zig"), .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
exe.linkLibrary(raylib_dep.artifact("raylib")); exe.linkLibrary(raylib_dep.artifact("raylib"));
exe.addIncludePath(.{ .path = "3rd-party/" });
exe.linkSystemLibrary("sqlite3"); exe.linkSystemLibrary("sqlite3");
// This declares intent for the executable to be installed into the // This declares intent for the executable to be installed into the

View file

@ -1,10 +0,0 @@
.{
.name = "fabapp",
.version = "0.1.0",
.dependencies = .{
.raylib = .{
.url = "https://github.com/raysan5/raylib/archive/bc15c19518968878b68bbfe8eac3fe4297f11770.tar.gz",
.hash = "122093954b8c911e507de32d83a2046e122c6aca64e71f5244d54f9bbb93730c3ab7",
},
},
}

View file

@ -14,6 +14,3 @@ test:
format: format:
fd -e zig -X zig fmt {} fd -e zig -X zig fmt {}
update-deps:
curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --output 3rd-party/raygui.h