mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
build.zig: run zig fmt
This commit is contained in:
@@ -192,7 +192,6 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
|||||||
setDesktopPlatform(raylib, options.platform);
|
setDesktopPlatform(raylib, options.platform);
|
||||||
},
|
},
|
||||||
.linux => {
|
.linux => {
|
||||||
|
|
||||||
if (options.platform == .drm) {
|
if (options.platform == .drm) {
|
||||||
if (options.opengl_version == .auto) {
|
if (options.opengl_version == .auto) {
|
||||||
raylib.linkSystemLibrary("GLESv2");
|
raylib.linkSystemLibrary("GLESv2");
|
||||||
@@ -213,9 +212,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
|||||||
.linux => "linux-x86_64",
|
.linux => "linux-x86_64",
|
||||||
.windows => "windows-x86_64",
|
.windows => "windows-x86_64",
|
||||||
.macos => "darwin-x86_64",
|
.macos => "darwin-x86_64",
|
||||||
else => {
|
else => @panic("unsupported host OS"),
|
||||||
@panic("unsupported host OS");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const androidTriple = try target.result.linuxTriple(b.allocator);
|
const androidTriple = try target.result.linuxTriple(b.allocator);
|
||||||
@@ -442,7 +439,7 @@ pub const PlatformBackend = enum {
|
|||||||
rgfw,
|
rgfw,
|
||||||
sdl,
|
sdl,
|
||||||
drm,
|
drm,
|
||||||
android
|
android,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn build(b: *std.Build) !void {
|
pub fn build(b: *std.Build) !void {
|
||||||
|
Reference in New Issue
Block a user