mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
sysraylib flag
This commit is contained in:
parent
dee0e4b0ab
commit
82087c0d3c
@ -114,9 +114,14 @@ pub fn build(b: *std.Build) void {
|
||||
});
|
||||
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 });
|
||||
emulator.addIncludePath(raylib.path(raylib.builder.h_dir));
|
||||
emulator.linkLibrary(raylib.artifact("raylib"));
|
||||
}
|
||||
|
||||
const luaVer = b.option(LuaVersion, "lua", "The version of Lua to use.") orelse LuaVersion.lua54;
|
||||
emulator.addCSourceFiles(.{
|
||||
|
Loading…
x
Reference in New Issue
Block a user