Move Options struct
This commit is contained in:
parent
931458011f
commit
b332d87a6a
|
|
@ -1,11 +1,5 @@
|
|||
const std = @import("std");
|
||||
|
||||
const Options = struct {
|
||||
raygui: bool = false,
|
||||
raymath: bool = false,
|
||||
physac: bool = false,
|
||||
};
|
||||
|
||||
// This has been tested to work with zig master branch as of commit 87de821 or May 14 2023
|
||||
pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode, options: Options) *std.Build.CompileStep {
|
||||
const raylib_flags = &[_][]const u8{
|
||||
|
|
@ -131,6 +125,12 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built
|
|||
return raylib;
|
||||
}
|
||||
|
||||
const Options = struct {
|
||||
raygui: bool = false,
|
||||
raymath: bool = false,
|
||||
physac: bool = false,
|
||||
};
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
// Standard target options allows the person running `zig build` to choose
|
||||
// what target to build for. Here we do not override the defaults, which
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user