use zig packaging for raylib
This commit is contained in:
parent
d2f8af619f
commit
da5ae3710d
4 changed files with 12 additions and 6 deletions
|
@ -16,12 +16,12 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
// We cannot directly use modules since v4.5 is not compatible with zig
|
||||
// v0.11
|
||||
const raylib_dep = b.anonymousDependency("3rd-party/raylib/", @import("3rd-party/raylib/build.zig"), .{
|
||||
const raylib_dep = b.dependency("raylib", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
|
||||
exe.linkLibrary(raylib_dep.artifact("raylib"));
|
||||
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
|
||||
exe.linkSystemLibrary("sqlite3");
|
||||
|
||||
// This declares intent for the executable to be installed into the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue