Format project templates

This commit is contained in:
Nikolas 2025-08-25 15:47:31 +02:00
parent 55937dd8a9
commit 3c33e0469f
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784
2 changed files with 16 additions and 2 deletions

View File

@ -50,7 +50,14 @@ pub fn build(b: *std.Build) !void {
return; return;
} }
const exe = b.addExecutable(.{ .name = "$PROJECT_NAME", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .optimize = optimize, .target = target }) }); const exe = b.addExecutable(.{
.name = "'$PROJECT_NAME'",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.optimize = optimize,
.target = target
}),
});
exe.linkLibrary(raylib_artifact); exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib); exe.root_module.addImport("raylib", raylib);

View File

@ -51,7 +51,14 @@ pub fn build(b: *std.Build) !void {
return; return;
} }
const exe = b.addExecutable(.{ .name = "'$PROJECT_NAME'", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .optimize = optimize, .target = target }) }); const exe = b.addExecutable(.{
.name = "'$PROJECT_NAME'",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.optimize = optimize,
.target = target
}),
});
exe.linkLibrary(raylib_artifact); exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib); exe.root_module.addImport("raylib", raylib);