mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
commit
b184e87005
@ -114,9 +114,14 @@ pub fn build(b: *std.Build) void {
|
|||||||
});
|
});
|
||||||
emulator.linkLibC();
|
emulator.linkLibC();
|
||||||
|
|
||||||
|
const sysraylib_flag = b.option(bool, "sysraylib", "Use the system raylib instead of compiling raylib") orelse false;
|
||||||
|
if (sysraylib_flag) {
|
||||||
|
emulator.linkSystemLibrary("raylib");
|
||||||
|
} else {
|
||||||
const raylib = b.dependency("raylib", .{ .target = target, .optimize = optimize });
|
const raylib = b.dependency("raylib", .{ .target = target, .optimize = optimize });
|
||||||
emulator.addIncludePath(raylib.path(raylib.builder.h_dir));
|
emulator.addIncludePath(raylib.path(raylib.builder.h_dir));
|
||||||
emulator.linkLibrary(raylib.artifact("raylib"));
|
emulator.linkLibrary(raylib.artifact("raylib"));
|
||||||
|
}
|
||||||
|
|
||||||
const luaVer = b.option(LuaVersion, "lua", "The version of Lua to use.") orelse LuaVersion.lua54;
|
const luaVer = b.option(LuaVersion, "lua", "The version of Lua to use.") orelse LuaVersion.lua54;
|
||||||
emulator.addCSourceFiles(.{
|
emulator.addCSourceFiles(.{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user