Pārlūkot izejas kodu

Fix examples/build.zig for the latest Zig version (#2786)

pull/2787/head
Roman Akberov pirms 2 gadiem
committed by GitHub
vecāks
revīzija
1cb81e3f4c
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      examples/build.zig

+ 4
- 4
examples/build.zig Parādīt failu

@ -35,16 +35,16 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi
else => @panic("Unsupported OS"),
});
exe.addIncludeDir("../src");
exe.addIncludeDir("../src/external");
exe.addIncludeDir("../src/external/glfw/include");
exe.addIncludePath("../src");
exe.addIncludePath("../src/external");
exe.addIncludePath("../src/external/glfw/include");
switch (exe.target.toTarget().os.tag) {
.windows => {
exe.linkSystemLibrary("winmm");
exe.linkSystemLibrary("gdi32");
exe.linkSystemLibrary("opengl32");
exe.addIncludeDir("external/glfw/deps/mingw");
exe.addIncludePath("external/glfw/deps/mingw");
},
.linux => {
exe.linkSystemLibrary("GL");

Notiek ielāde…
Atcelt
Saglabāt