build.zig: Update entry point
This commit is contained in:
parent
005a18a274
commit
d404ccd225
|
|
@ -15,14 +15,9 @@ comptime {
|
||||||
// get the flags a second time when adding raygui
|
// get the flags a second time when adding raygui
|
||||||
var raylib_flags_arr: std.ArrayListUnmanaged([]const u8) = .{};
|
var raylib_flags_arr: std.ArrayListUnmanaged([]const u8) = .{};
|
||||||
|
|
||||||
/// we're not inside the actual build script recognized by the
|
|
||||||
/// zig build system; use this type where one would otherwise
|
|
||||||
/// use `@This()` when inside the actual entrypoint file.
|
|
||||||
const BuildScript = @import("../build.zig");
|
|
||||||
|
|
||||||
// This has been tested with zig version 0.12.0
|
// This has been tested with zig version 0.12.0
|
||||||
pub fn addRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, options: Options) !*std.Build.Step.Compile {
|
pub fn addRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, options: Options) !*std.Build.Step.Compile {
|
||||||
const raylib_dep = b.dependencyFromBuildZig(BuildScript, .{
|
const raylib_dep = b.dependencyFromBuildZig(@This(), .{
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
.raudio = options.raudio,
|
.raudio = options.raudio,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user