This repository has been archived on 2026-05-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
OpenGL-Zig/build.zig
2026-05-02 04:15:55 +09:00

28 lines
753 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "OpenGLレンダー",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
}),
});
const zglfw = b.dependency("zglfw", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("zglfw", zglfw.module("root"));
exe.root_module.linkLibrary(zglfw.artifact("glfw"));
exe.root_module.addIncludePath(b.path("./include"));
exe.root_module.addCSourceFile(.{
.file = b.path("src/glad.c" ),
});
b.installArtifact(exe);
}