Commit Graph

552 Commits

Author SHA1 Message Date
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
Dan Balasescu 012a3dc1f2
Merge pull request #165 from hwsmm/update
Update bindings
2024-10-15 13:19:01 +09:00
hwsmm c51cad1aa7 Update bindings to 1cc85c912bb3352a121b1fdc181c6ab6546157df 2024-10-14 14:15:39 +09:00
Dan Balasescu 209d102b32
Merge pull request #164 from Susko3/bump-java-action-version
Bump actions/setup-java to v4
2024-10-03 01:36:30 +09:00
Susko3 f9533a8fa5 Bump actions/setup-java to v4 2024-10-02 16:52:20 +01:00
Susko3 c1a2631133
Merge pull request #163 from ppy/update-native-binaries
Update native binaries
2024-10-02 16:49:35 +01:00
smoogipoo ec5015b788 Update native binaries 2024-10-02 02:59:13 +00:00
Dan Balasescu 2738571117
Merge pull request #162 from Susko3/update-bindings
Update bindings
2024-10-02 11:05:19 +09:00
Susko3 05c7ec057c Add some missing macros 2024-10-02 02:13:12 +01:00
Susko3 98930ae886 Update bindings 2024-10-02 00:51:01 +01:00
Susko3 bccaf2fa75
Merge pull request #161 from smoogipoo/single-pr
Submit binary file updates as a single PR
2024-10-01 19:25:07 +01:00
Dan Balasescu 682da0bfe1
Apply review suggestions 2024-09-26 18:21:25 +09:00
Dan Balasescu 788afa6ab1
Create single PR for binary updates 2024-09-23 00:59:31 +09:00
Dan Balasescu 5abea9c105
Merge pull request #160 from Susko3/run-bindgen-on-specific-headers
Add way to run `generate_bindings.py` on a subset of headers
2024-09-22 23:50:32 +09:00
Susko3 b968192607 Add way to run bindgen on a subset of headers
Useful for testing changes that affect specific headers.
2024-09-22 14:28:44 +01:00
Susko3 1059f343e0
Merge pull request #159 from hwsmm/endian
Fix endianness in SDL_pixel
2024-09-22 13:34:35 +01:00
hwsmm df84a111c7 Fix endianness in SDL_pixel 2024-09-22 13:43:13 +09:00