Преглед изворни кода

build.zig: fix raygui inclusion in windows crosscompilation (#4489)

pull/4523/head
kimierik пре 4 недеља
committed by GitHub
родитељ
комит
532167d28b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      build.zig

+ 2
- 0
build.zig Прегледај датотеку

@ -302,12 +302,14 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
}
pub fn addRaygui(b: *std.Build, raylib: *std.Build.Step.Compile, raygui_dep: *std.Build.Dependency) void {
const raylib_dep = b.dependencyFromBuildZig(@This(), .{});
var gen_step = b.addWriteFiles();
raylib.step.dependOn(&gen_step.step);
const raygui_c_path = gen_step.add("raygui.c", "#define RAYGUI_IMPLEMENTATION\n#include \"raygui.h\"\n");
raylib.addCSourceFile(.{ .file = raygui_c_path });
raylib.addIncludePath(raygui_dep.path("src"));
raylib.addIncludePath(raylib_dep.path("src"));
raylib.installHeader(raygui_dep.path("src/raygui.h"), "raygui.h");
}

Loading…
Откажи
Сачувај