Skip to content

Commit

Permalink
Move lib.zig out of subdirectories and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
natecraddock committed Jan 12, 2024
1 parent 8697f83 commit e8dd77a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pub fn build(b: *Build) void {
// Zig module
const ziglua = b.addModule("ziglua", .{
.root_source_file = switch (lang) {
.lua51 => .{ .path = "src/ziglua-5.1/lib.zig" },
.lua52 => .{ .path = "src/ziglua-5.2/lib.zig" },
.lua53 => .{ .path = "src/ziglua-5.3/lib.zig" },
.lua54 => .{ .path = "src/ziglua-5.4/lib.zig" },
.luau => .{ .path = "src/zigluau/lib.zig" },
.lua51 => .{ .path = "src/lib51.zig" },
.lua52 => .{ .path = "src/lib52.zig" },
.lua53 => .{ .path = "src/lib53.zig" },
.lua54 => .{ .path = "src/lib54.zig" },
.luau => .{ .path = "src/libluau.zig" },
},
});

Expand Down Expand Up @@ -175,7 +175,7 @@ fn buildLuau(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
for (luau_source_files) |file| {
lib.addCSourceFile(.{ .file = upstream.path(file), .flags = &flags });
}
lib.addCSourceFile(.{ .file = .{ .path = "src/zigluau/luau.cpp" }, .flags = &flags });
lib.addCSourceFile(.{ .file = .{ .path = "src/luau.cpp" }, .flags = &flags });
lib.linkLibCpp();

return lib;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e8dd77a

Please sign in to comment.