the.bay.news

Trying to use SDL2 with own binding. Inconsistency when building on windows vs linux

Ziggit
Trying to use SDL2 with own binding. Inconsistency when building on windows vs linux
Hey, I have written my own partial binding for SDL2 in zig 0.16.0. I am able to build it and use it fine on windows, this is my build.zig: const std = @import("std"); pub fn build(b: *std.Build) void { const sdlLibPath = b.option([]const u8, "libsdl", "Specify SDL2 lib path."); const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const sdlLib = b.createModule( .{ .root_source_file = b.path("src/sdl.zig"), ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.