mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
linux to windows cross compile
This commit is contained in:
parent
5bfde394de
commit
545ef818c8
@ -38,8 +38,13 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, c: *std.Build.
|
||||
c.addIncludePath(raylib.path(raylib.builder.h_dir));
|
||||
c.linkLibrary(raylib.artifact("raylib"));
|
||||
if (target.result.os.tag == .windows) {
|
||||
c.linkSystemLibrary("WinMM");
|
||||
c.linkSystemLibrary("GDI32");
|
||||
if (builtin.os.tag != .windows) {
|
||||
// cross compiling
|
||||
c.addLibraryPath(.{ .cwd_relative = "/usr/x86_64-w64-mingw32/lib" });
|
||||
c.addSystemIncludePath(.{ .cwd_relative = "/usr/x86_64-w64-mingw32/include" });
|
||||
}
|
||||
c.linkSystemLibrary("winmm");
|
||||
c.linkSystemLibrary("gdi32");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user