Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e35213d
Switches to external translate C package to get latest fixes
MasonRemaley Jun 5, 2026
480e7b6
Actually export the `sdl3` module
MasonRemaley Jun 5, 2026
71c1ce0
Updates Translate C
MasonRemaley Jun 22, 2026
309e3a0
Patches bug in Wayland animated cursor handling
MasonRemaley Jun 30, 2026
99df4f1
Updates to latest SDL on release branch to get Wayland surface pointe…
MasonRemaley Jun 30, 2026
4bfab7d
Mitigation for translate-c#327
MasonRemaley Jun 30, 2026
fef02c9
Updates Translate C
MasonRemaley Jun 30, 2026
a3981af
Updates to SDL 3.4.12
MasonRemaley Jul 1, 2026
bcc0780
Update Translate C
MasonRemaley Jul 17, 2026
52244d0
Removes hashes.md
MasonRemaley Jul 23, 2026
0efe2dd
Enable SDL_GPU_VULKAN by default on Windows
MasonRemaley Jul 23, 2026
5f2295f
Update to patched translate C for latest Zig
MasonRemaley Aug 2, 2026
9f15c7b
Merge branch 'main' into zig-0.17.0
MasonRemaley Aug 4, 2026
a45c73f
Removes duplicate file
MasonRemaley Aug 5, 2026
2442607
Update translate C
MasonRemaley Aug 13, 2026
f817b64
Upgrade to SDL 3.4.16 (#31)
jayschwa Sep 5, 2026
94ea547
Update translate-c
MasonRemaley Sep 9, 2026
4c9cc8a
Merge branch 'main' into zig-0.17.0
MasonRemaley Sep 26, 2026
ff9e08a
Remove workaround for release fast builds on Windows that's no longer…
MasonRemaley Sep 26, 2026
aade189
Fix version bump
MasonRemaley Sep 26, 2026
c45725b
Remove unused build config
MasonRemaley Sep 26, 2026
d20c28b
Update Zig
MasonRemaley Sep 28, 2026
e435ce0
Update to Zig 0.17.0
MasonRemaley Oct 2, 2026
646b64f
Use bundled translate c to support both Zig 0.16 and Zig 0.16
MasonRemaley Oct 8, 2026
37a4c9a
Merge branch 'main' into zig-0.17.0
MasonRemaley Oct 8, 2026
ef386f7
Disable CI for windows builds on matrix.zig-version.master
MasonRemaley Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 58 additions & 56 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,58 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: [0.16.0, 0.17.0, master]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.zig-version == 'master' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig-version }}

- name: Workaround Zig 0.16.0 ZIP unpack failure
# https://codeberg.org/ziglang/zig/issues/31964
shell: bash
run: mkdir -p "${ZIG_GLOBAL_CACHE_DIR}/tmp"

- name: Check Formatting
if: runner.os != 'Windows' # zig fmt failing on Windows CI, unclear why
run: zig fmt --ast-check --check .

- name: Build for Windows
run: zig build example -Dtarget=x86_64-windows-gnu --summary all

- name: Build for Linux
run: zig build example -Dtarget=x86_64-linux-gnu --summary all

- name: Build for macOS
if: runner.os == 'macOS'
# We don't support cross compiling for macOS, so don't set a target just build
# the native target
run: zig build example --summary all

- name: Build for iOS
if: runner.os == 'macOS'
# The iOS SDK is not bundled with Zig, so point the build at Xcode's iPhoneOS SDK.
run: |
SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
zig build -Dtarget=aarch64-ios -Dinclude_path="$SDK/usr/include" -Dframework_path="$SDK/System/Library/Frameworks" --summary all
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: [0.16.0, 0.17.0, master]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.zig-version == 'master' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig-version }}

- name: Workaround Zig 0.16.0 ZIP unpack failure
# https://codeberg.org/ziglang/zig/issues/31964
shell: bash
run: mkdir -p "${ZIG_GLOBAL_CACHE_DIR}/tmp"

- name: Check Formatting
if: runner.os != 'Windows' # zig fmt failing on Windows CI, unclear why
run: zig fmt --ast-check --check .

- name: Build for Windows
# See issue #40
if: matrix.zig-version != 'master'
run: zig build example -Dtarget=x86_64-windows-gnu --summary all

- name: Build for Linux
run: zig build example -Dtarget=x86_64-linux-gnu --summary all

- name: Build for macOS
if: runner.os == 'macOS'
# We don't support cross compiling for macOS, so don't set a target just build
# the native target
run: zig build example --summary all

- name: Build for iOS
if: runner.os == 'macOS'
# The iOS SDK is not bundled with Zig, so point the build at Xcode's iPhoneOS SDK.
run: |
SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
zig build -Dtarget=aarch64-ios -Dinclude_path="$SDK/usr/include" -Dframework_path="$SDK/System/Library/Frameworks" --summary all
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = .sdl,
.fingerprint = 0xec638ccbd103848b,
.version = "1.0.3+3.4.16",
.version = "1.0.4+3.4.16",
.minimum_zig_version = "0.16.0",
.dependencies = .{
.sdl = .{
Expand Down
58 changes: 29 additions & 29 deletions src/android.zig
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub fn build(
.SDL_POWER_ANDROID = 1,

// Android has no Steam client
.SDL_STORAGE_STEAM = false,
.SDL_STORAGE_STEAM = 0,

// Enable filesystem support
.SDL_FILESYSTEM_ANDROID = 1,
Expand All @@ -218,37 +218,37 @@ pub fn build(
// Enable the dummy dialog/tray implementations; SDL has no Android tray, and the
// Android dialog implementation is Java-side (`dialog/android/SDL_androiddialog.c`
// just JNI-calls into it, no separate dummy needed here).
.SDL_DIALOG_DUMMY = false,
.SDL_DIALOG_DUMMY = 0,
.SDL_TRAY_DUMMY = 1,

.DYNAPI_NEEDS_DLOPEN = 1,

// Unused
.HAVE_STRINGS_H = false,
.HAVE_MALLOC_H = false,
.HAVE_MEMORY_H = false,
.HAVE_WCSLEN = false,
.HAVE_WCSNLEN = false,
.HAVE_WCSCMP = false,
.HAVE_WCSNCMP = false,
.HAVE_STRNLEN = false,
.HAVE_STRPBRK = false,
.HAVE_FSEEKO = false,
.HAVE_SA_SIGACTION = false,
.HAVE_NL_LANGINFO = false,
.HAVE_GETPAGESIZE = false,
.HAVE_PTHREAD_SETNAME_NP = false,
.HAVE_SYSCTLBYNAME = false,
.SDL_AUDIO_DRIVER_COREAUDIO = false,
.HAVE_STRINGS_H = 0,
.HAVE_MALLOC_H = 0,
.HAVE_MEMORY_H = 0,
.HAVE_WCSLEN = 0,
.HAVE_WCSNLEN = 0,
.HAVE_WCSCMP = 0,
.HAVE_WCSNCMP = 0,
.HAVE_STRNLEN = 0,
.HAVE_STRPBRK = 0,
.HAVE_FSEEKO = 0,
.HAVE_SA_SIGACTION = 0,
.HAVE_NL_LANGINFO = 0,
.HAVE_GETPAGESIZE = 0,
.HAVE_PTHREAD_SETNAME_NP = 0,
.HAVE_SYSCTLBYNAME = 0,
.SDL_AUDIO_DRIVER_COREAUDIO = 0,
.SDL_AUDIO_DRIVER_ALSA_DYNAMIC = "",
.SDL_AUDIO_DRIVER_JACK_DYNAMIC = "",
.SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC = "",
.SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC = "",
.SDL_AUDIO_DRIVER_SNDIO_DYNAMIC = "",
.SDL_JOYSTICK_MFI = false,
.SDL_JOYSTICK_MFI = 0,
.SDL_LIBUSB_DYNAMIC = "",
.SDL_UDEV_DYNAMIC = "",
.SDL_VIDEO_DRIVER_UIKIT = false,
.SDL_VIDEO_DRIVER_UIKIT = 0,
.SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC = "",
.SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM = "",
.SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC = "",
Expand All @@ -265,13 +265,13 @@ pub fn build(
.SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS = "",
.SDL_VIDEO_DRIVER_X11_DYNAMIC_XTEST = "",
.SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_GESTURE = "",
.SDL_VIDEO_RENDER_METAL = false,
.SDL_VIDEO_METAL = false,
.SDL_GPU_METAL = false,
.SDL_SENSOR_COREMOTION = false,
.SDL_POWER_UIKIT = false,
.SDL_FILESYSTEM_COCOA = false,
.SDL_CAMERA_DRIVER_COREMEDIA = false,
.SDL_VIDEO_RENDER_METAL = 0,
.SDL_VIDEO_METAL = 0,
.SDL_GPU_METAL = 0,
.SDL_SENSOR_COREMOTION = 0,
.SDL_POWER_UIKIT = 0,
.SDL_FILESYSTEM_COCOA = 0,
.SDL_CAMERA_DRIVER_COREMEDIA = 0,
.SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC = "",
.SDL_LIBDECOR_VERSION_MAJOR = "",
.SDL_LIBDECOR_VERSION_MINOR = "",
Expand All @@ -281,8 +281,8 @@ pub fn build(
.SDL_XKBCOMMON_VERSION_MAJOR = "",
.SDL_XKBCOMMON_VERSION_MINOR = "",
.SDL_XKBCOMMON_VERSION_PATCH = "",
.SDL_IPHONE_KEYBOARD = false,
.SDL_IPHONE_LAUNCHSCREEN = false,
.SDL_IPHONE_KEYBOARD = 0,
.SDL_IPHONE_LAUNCHSCREEN = 0,
.SDL_EMSCRIPTEN_PERSISTENT_PATH_STRING = "",
});
}
Loading