suwako / OpenGL-Zig アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
OpenGL-Zig / build.zig
753 B、28行 生 Blame 履歴
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});
5 const optimize = b.standardOptimizeOption(.{});
6
7 const exe = b.addExecutable(.{
8 .name = "OpenGLレンダー",
9 .root_module = b.createModule(.{
10 .root_source_file = b.path("src/main.zig"),
11 .target = target,
12 .optimize = optimize,
13 }),
14 });
15
16 const zglfw = b.dependency("zglfw", .{
17 .target = target,
18 .optimize = optimize,
19 });
20 exe.root_module.addImport("zglfw", zglfw.module("root"));
21 exe.root_module.linkLibrary(zglfw.artifact("glfw"));
22 exe.root_module.addIncludePath(b.path("./include"));
23 exe.root_module.addCSourceFile(.{
24 .file = b.path("src/glad.c" ),
25 });
26
27 b.installArtifact(exe);
28}