Skip to content

Commit

Permalink
Update: to SDL3-3.1.6, SDL2-2.30.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dinau committed Dec 5, 2024
1 parent dcadd6e commit b5e0f3c
Show file tree
Hide file tree
Showing 294 changed files with 4,119 additions and 16,304 deletions.
4 changes: 3 additions & 1 deletion examples/makefile.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all:
zig build $(OPT)
@-$(AFTER_BUILD_CMD)

.PHONY: run gen cleanall cleanexe trans
.PHONY: run gen cleanall cleanexe trans clean

run: all
(cd $(ZIG_BIN_DIR); ./$(TARGET)$(EXE))
Expand All @@ -21,6 +21,8 @@ run: all
gen:
nim ../utils/genImPlotFuncs.nims

clean: cleanall

cleanall:
@-rm -fr zig-out
@-rm -fr zig-cache
Expand Down
2 changes: 1 addition & 1 deletion examples/sdl2_opengl3/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) void {
//----------------------------------
// Detect 32bit or 64bit Winddws OS
//----------------------------------
const sdl2_Base = "../../libs/sdl/SDL2-2.30.8";
const sdl2_Base = "../../libs/sdl/SDL2-2.30.9";
var sArc:[]const u8 = "x86_64";
if(builtin.cpu.arch == .x86){
sArc = "i686";
Expand Down
6 changes: 3 additions & 3 deletions examples/sdl3_opengl3/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) void {
//----------------------------------
// 64bit Winddws OS
//----------------------------------
const SDL3_VER = "3.1.3";
const SDL3_VER = "3.1.6";
const sdlBase = "../../libs/sdl";
const sdlPath = b.fmt("{s}/SDL3-{s}/x86_64-w64-mingw32", .{sdlBase, SDL3_VER});
//---------------
Expand Down Expand Up @@ -154,7 +154,7 @@ pub fn build(b: *std.Build) void {
exe.linkSystemLibrary("shell32");
exe.linkSystemLibrary("user32");
// Static link
exe.addObjectFile(b.path(b.pathJoin(&.{sdlPath, "lib","libSDL3.a"})));
exe.addObjectFile(b.path(b.pathJoin(&.{sdlPath, "lib","libSDL3.dll.a"})));
}else if (builtin.target.os.tag == .linux){
exe.linkSystemLibrary("glfw3");
exe.linkSystemLibrary("GL");
Expand Down Expand Up @@ -197,7 +197,7 @@ pub fn build(b: *std.Build) void {
}
const res = b.addInstallFile(b.path(resIcon), "bin/z.png");
b.getInstallStep().dependOn(&res.step);
if(false){// Enable if use SDL3.dll with dynamic linking.
if(true){// Enable if use SDL3.dll with dynamic linking.
const resSdlDll = b.pathJoin(&.{sdlPath, "bin", "SDL3.dll"});
const resSdl = b.addInstallFile(b.path(resSdlDll), "bin/SDL3.dll");
b.getInstallStep().dependOn(&resSdl.step);
Expand Down
1 change: 0 additions & 1 deletion libs/sdl/SDL2-2.30.8/.git-hash

This file was deleted.

19 changes: 0 additions & 19 deletions libs/sdl/SDL2-2.30.8/cmake/sdl2-config-version.cmake

This file was deleted.

19 changes: 0 additions & 19 deletions libs/sdl/SDL2-2.30.8/cmake/sdl2-config.cmake

This file was deleted.

97 changes: 0 additions & 97 deletions libs/sdl/SDL2-2.30.8/docs/CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit b5e0f3c

Please sign in to comment.