Commit Graph

618 Commits

Author SHA1 Message Date
Dan Balasescu be06fff363
Update GHA workflows 2024-12-04 14:56:41 +09:00
Dan Balasescu cc37b8245b
Merge SDL3-CS.Android into main project 2024-12-04 14:14:07 +09:00
WizzardMaker 06fabcf8b0 added enums to ttf and image 2024-12-03 15:44:40 +01:00
WizzardMaker 957e29d137 updated SDL build script to build ttf and image 2024-12-03 15:44:40 +01:00
WizzardMaker 52c2c1b31e split up sdl libraries into separate projects 2024-12-03 15:44:40 +01:00
WizzardMaker af476b4cc4 added sister projects to visible internals in SDL3-CS 2024-12-03 15:44:40 +01:00
WizzardMaker 1e78619716 updated c# source generator to also take other SDL methods into account 2024-12-03 15:44:40 +01:00
WizzardMaker 5b0abdca7c added sdl_image and sdl_ttf 2024-12-03 15:44:40 +01:00
Susko3 7803512144
Merge pull request #180 from smoogipoo/add-docker-readme
Document binding generation in README
2024-12-03 11:37:08 +00:00
Dan Balasescu 50c10fc39e
Document binding generation in README 2024-12-03 17:40:10 +09:00
Dan Balasescu f4001dad7d
Merge pull request #178 from frenzibyte/save-android
Work around Android CI workflow errors
2024-11-28 17:35:58 +09:00
Salman Alshamrani 7d0d0d7569 Fix android workflow not installing .NET 8 version 2024-11-27 23:44:32 -05:00
Dan Balasescu fa446c3285
Merge pull request #176 from ppy/update-native-binaries
Update native binaries
2024-11-18 11:18:16 +09:00
smoogipoo e41affe943 Update native binaries 2024-11-18 01:35:45 +00:00
Dan Balasescu 7eb48f25ec
Merge pull request #174 from Susko3/update-bindings
Update bindings, including manual macro update
2024-11-18 10:05:21 +09:00
Susko3 2590a7205e Update SDL_ISPIXELFORMAT_ALPHA
e027b85cc4
2024-11-17 21:51:08 +00:00
Susko3 1bbb7292b3 Update SDL and generate bindings 2024-11-17 21:34:24 +00:00
hwsmm f5875c5ea8
Merge pull request #173 from Susko3/remove-sed-hack
Specify Android ABIs as command line params to SDL `androidbuildlibs.sh`
2024-10-30 09:42:17 +09:00
Susko3 609a319551 Specify Android ABIs as command line params 2024-10-29 21:49:02 +00:00
Susko3 0ef3dbab09
Merge pull request #169 from smoogipoo/dockerfile
Add dockerfile + generation wrapper script
2024-10-28 13:23:18 +00:00
Dan Balasescu 22c6c79701
Fix up caching + remove python3 symlink 2024-10-28 21:47:48 +09:00
Dan Balasescu 81e5c4cb7f
Remove unused script 2024-10-28 20:34:10 +09:00
Dan Balasescu f46a595008
Improve Dockerfile 2024-10-28 20:31:11 +09:00
Susko3 a7f3fe450d Generate bindings on Linux
This will be the canonical representation going forward.
2024-10-24 12:04:00 +01:00
Dan Balasescu dcea5f47c3
Hack around missing process.h on Unix systems
Co-authored-by: Susko3 <Susko3@protonmail.com>
2024-10-24 19:34:51 +09:00
Dan Balasescu 04c71afe67
Remove now unnecessary undefines 2024-10-24 19:19:00 +09:00
Susko3 69c7e23842 Fix 64-bit integers on `x86_64-linux-gnu`
The __LP64__ macros work fine on aarch64, but they don't seem to do much on x86_64
2024-10-24 10:44:19 +01:00
Dan Balasescu 520ae0ebc7
Remove duplicate definition 2024-10-24 16:26:44 +09:00
Dan Balasescu e7c8dec375
Merge branch 'master' into dockerfile 2024-10-24 16:18:48 +09:00
Dan Balasescu 36c251aed2
Merge pull request #172 from Susko3/remove-some-platform-specific-defines
Update bindings and remove some platform/windows specific symbols
2024-10-24 15:45:24 +09:00
Susko3 11228b67aa Ensure consistent representation of 64-bit integer constants
by providing custom definitions of `SDL_{S,U}INT64_C`.
Made possible by https://github.com/libsdl-org/SDL/pull/11315
2024-10-24 01:18:39 +01:00
Susko3 4831863919 Update SDL and bindings 2024-10-24 01:18:31 +01:00
Susko3 ec696f7bab Remove `[NativeTypeName("unsigned int")]`
This would appear a lot when bindgen is run on Linux (underlying enum type is unsigned int).
2024-10-24 00:52:29 +01:00
Susko3 fa61d32dfc Exclude symbols that don't work cross-platform
As seen when trying to build on Linux in #169.
Removes:
- Windows-specific begin/end thread symbols that don't do anything
- Things that statically depend on `size_t`
- 64-bit printf specifiers that depend on int64_t definition
  (long vs long long)
2024-10-24 00:48:29 +01:00
Dan Balasescu ed43193103
Force `int` as base type 2024-10-23 17:03:25 +09:00
Dan Balasescu 140e73678d
Fix va_list for another platform 2024-10-23 17:03:09 +09:00
Dan Balasescu c991b5bd06
Forward args to python script
Co-authored-by: Susko3 <Susko3@protonmail.com>
2024-10-22 19:42:16 +09:00
Dan Balasescu a64cdd9e4f
Fix SDL_thread generation 2024-10-22 18:16:41 +09:00
Dan Balasescu 904f50cb99
Merge pull request #170 from ppy/update-native-binaries
Update native binaries
2024-10-22 18:15:42 +09:00
smoogipoo 46e1411e24 Update native binaries 2024-10-22 09:13:18 +00:00
Dan Balasescu 5227b62690
Add dockerfile + generation wrapper script 2024-10-22 17:52:46 +09:00
Dan Balasescu ee98235385
Merge pull request #168 from Susko3/update-bindings
Update bindings and fix bindgen script
2024-10-22 17:42:51 +09:00
Susko3 5ab6d58b9e Update comment 2024-10-22 09:27:28 +01:00
Susko3 e5a7980b9e Exclude `enum`s from platform-specific bindgen 2024-10-22 09:20:55 +01:00
Susko3 c7fdd26674 Update bindings (to illustrate problem)
Duplicate `SDL_Sandbox` definitions prevent compiling.
2024-10-22 09:11:15 +01:00
Dean Herbert bfa2ad06c4
Merge pull request #167 from bdach/android-enter-fix
Update SDL to pull in android enter key fix
2024-10-22 16:55:45 +09:00
Bartłomiej Dach 53dff157d5
Fix linux-arm build failures due to docker changes
`linux-arm(64)` builds started failing with

    latest: Pulling from arm64v8/ubuntu
    docker: no matching manifest for linux/amd64 in the manifest list entries.

(https://github.com/bdach/SDL3-CS/actions/runs/11440882162/job/31827702325)

Upon closer inspection, new `arm32v7/ubuntu` and `arm64v8/ubuntu` images
were pushed on Oct 19, 2024, which seemed related.

While pinning the images to the last known working digest worked,
it's obviously suboptimal. Looking closer at previous passing build
logs, warnings are noticeable:

    WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested

    WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested

therefore I decided to try specifying the platform explicitly to see if
it fixes the issue, and it does.
2024-10-22 08:59:45 +02:00
Bartłomiej Dach 84c8d4240f
Update SDL submodule
Pulls in https://github.com/libsdl-org/SDL/pull/11256 to fix
https://github.com/ppy/osu/issues/28966.
2024-10-21 15:08:17 +02:00
Dan Balasescu 55d3514908
Merge pull request #166 from ppy/update-native-binaries
Update native binaries
2024-10-15 13:54:20 +09:00
smoogipoo 6fa75e75a6 Update native binaries 2024-10-15 04:49:34 +00:00