|
3 | 3 |
|
4 | 4 | const std = @import("std"); |
5 | 5 |
|
6 | | -pub const version: std.SemanticVersion = .{ .major = 3, .minor = 2, .patch = 16 }; |
7 | | -const formatted_version = std.fmt.comptimePrint("SDL3-{}", .{version}); |
8 | | -pub const vendor_info = "https://github.com/castholm/SDL 0.2.4"; |
| 6 | +pub const version: std.SemanticVersion = .{ .major = 3, .minor = 2, .patch = 18 }; |
| 7 | +const formatted_version = std.fmt.comptimePrint("SDL3-{d}.{d}.{d}", .{ version.major, version.minor, version.patch }); // TODO: Change to {f} after 0.15 |
| 8 | +pub const vendor_info = "https://github.com/castholm/SDL 0.2.5"; |
9 | 9 | pub const revision = formatted_version ++ " (" ++ vendor_info ++ ")"; |
10 | 10 |
|
11 | 11 | pub fn build(b: *std.Build) void { |
@@ -594,9 +594,9 @@ pub fn build(b: *std.Build) void { |
594 | 594 | } |
595 | 595 |
|
596 | 596 | sdl_mod.addCMacro("USING_GENERATED_CONFIG_H", "1"); |
597 | | - sdl_mod.addCMacro("SDL_BUILD_MAJOR_VERSION", std.fmt.comptimePrint("{}", .{version.major})); |
598 | | - sdl_mod.addCMacro("SDL_BUILD_MINOR_VERSION", std.fmt.comptimePrint("{}", .{version.minor})); |
599 | | - sdl_mod.addCMacro("SDL_BUILD_MICRO_VERSION", std.fmt.comptimePrint("{}", .{version.patch})); |
| 597 | + sdl_mod.addCMacro("SDL_BUILD_MAJOR_VERSION", std.fmt.comptimePrint("{d}", .{version.major})); |
| 598 | + sdl_mod.addCMacro("SDL_BUILD_MINOR_VERSION", std.fmt.comptimePrint("{d}", .{version.minor})); |
| 599 | + sdl_mod.addCMacro("SDL_BUILD_MICRO_VERSION", std.fmt.comptimePrint("{d}", .{version.patch})); |
600 | 600 | switch (sdl_lib.linkage.?) { |
601 | 601 | .static => { |
602 | 602 | sdl_mod.addCMacro("SDL_STATIC_LIB", "1"); |
|
0 commit comments