Commit Graph

202 Commits

Author SHA1 Message Date
Bartłomiej Dach 0fd6a6c930
Enable dynamic support for `libdecor` inside SDL3
Done by locally building & installing `libdecor` before building SDL3.

Note that the `libdecor` binaries aren't shipped here, because I can't
make them work inside C# apps. It looks like both SDL and `libdecor`
do some level of automagic lookup of shared objects; SDL does it to find
`libdecor`, and `libdecor` does it to find its "plugins" which are
really implementations of the window decoration (if it fails to find
any, it just disables itself).

So this is just going to depend on system-ambient `libdecor` to be
present, and if there is none, then it'll fail to work. See if I care.

At this point I would like to extend my thanks to the gnome team for
wasting a day of my life on all this.

Note that x86 SDL binaries will not have this `libdecor` support enabled,
because SDL uses cmake and `libdecor` uses meson, and there is no
portable way to tell them both to build a 32-bit binary. Well, that's a
half-truth; you can pass CFLAGS to meson via envvars, *but* the install
script later will just install the resulting binaries as if they were
x64, which leads SDL cmake to not find them, and therefore not enable
dynamic `libdecor` support. So let's just not bother.
2024-05-22 15:29:24 +02:00
Dan Balasescu e6dff89353
Merge pull request #77 from Susko3/add-input-visualisation-test
Add positional input visualization test
2024-05-21 21:07:39 +09:00
Susko3 3262b3c5b7 Add test for visualising positional input events 2024-05-21 13:48:26 +02:00
Susko3 6140f87530 Add base test for SDL3 main callbacks
Reduces boilerplate code when writing tests.
2024-05-21 13:38:22 +02:00
Susko3 3f2c1b234e Pull in ObjectHandle changes from framework 2024-05-21 13:32:57 +02:00
Dan Balasescu 9ef6d54186
Merge pull request #70 from Susko3/update-bindings
Update SDL3 bindings
2024-05-18 21:48:46 +09:00
Dan Balasescu 9f385f67ce
Merge pull request #71 from Susko3/require-specifying-SDL3-commit-in-build
Require specifying SDL3 commit to build to prevent incompatible bindings and binaries
2024-05-18 21:45:35 +09:00
Susko3 e5a2b13d38 Specify SDL3 commit to build 2024-05-18 12:50:52 +02:00
Susko3 25c2558184 Update SDL3 bindings
Updates to https://github.com/libsdl-org/SDL/commit/%206f2621438a65abae114a7210914352b4c1d9c6c3.
This matches the binaries.
2024-05-18 12:26:03 +02:00
Dan Balasescu d07bacbb8b
Merge pull request #69 from smoogipoo/package-linux-arm
Package `linux-arm64` and `linux-arm` builds
2024-05-18 13:53:16 +09:00
Dan Balasescu e6660f9474
Package `linux-arm64` and `linux-arm` builds 2024-05-18 13:51:51 +09:00
Dan Balasescu 1d47a63cfb
Merge remote-tracking branch 'upstream/update-android-binaries' 2024-05-18 13:50:07 +09:00
Dan Balasescu 2a1126db80
Merge remote-tracking branch 'upstream/update-ios-binaries' 2024-05-18 13:50:06 +09:00
Dan Balasescu 9cbc0cdaf4
Merge remote-tracking branch 'upstream/update-linux-arm-binaries' 2024-05-18 13:50:06 +09:00
Dan Balasescu 913054a4a1
Merge remote-tracking branch 'upstream/update-linux-arm64-binaries' 2024-05-18 13:50:05 +09:00
Dan Balasescu b80b9f4f02
Merge remote-tracking branch 'upstream/update-linux-x64-binaries' 2024-05-18 13:50:04 +09:00
Dan Balasescu 4e663b55fc
Merge remote-tracking branch 'upstream/update-linux-x86-binaries' 2024-05-18 13:50:03 +09:00
Dan Balasescu 17969ebdf1
Merge remote-tracking branch 'upstream/update-osx-arm64-binaries' 2024-05-18 13:50:02 +09:00
Dan Balasescu 779f228154
Merge remote-tracking branch 'upstream/update-osx-x64-binaries' 2024-05-18 13:50:01 +09:00
Dan Balasescu 920df0abe0
Merge remote-tracking branch 'upstream/update-win-arm64-binaries' 2024-05-18 13:50:00 +09:00
Dan Balasescu 19ddc9a195
Merge remote-tracking branch 'upstream/update-win-x64-binaries' 2024-05-18 13:49:59 +09:00
smoogipoo 4cf685828c Update linux-arm64 SDL binaries 2024-05-18 04:47:37 +00:00
smoogipoo 408456e9bc Update linux-arm SDL binaries 2024-05-18 04:33:21 +00:00
smoogipoo 3d6e37b463 Update win-x86 SDL binaries 2024-05-18 04:25:00 +00:00
smoogipoo e0f8d0df23 Update win-arm64 SDL binaries 2024-05-18 04:24:58 +00:00
smoogipoo b8aaa81372 Update iOS SDL binaries 2024-05-18 04:23:39 +00:00
smoogipoo e4a5848b82 Update win-x64 SDL binaries 2024-05-18 04:23:14 +00:00
smoogipoo 4caf6d629a Update Android SDL binaries 2024-05-18 04:23:10 +00:00
smoogipoo 03366e7bf0 Update linux-x86 SDL binaries 2024-05-18 04:21:59 +00:00
smoogipoo 7c523da65c Update linux-x64 SDL binaries 2024-05-18 04:21:43 +00:00
smoogipoo 048e608cb3 Update osx-arm64 SDL binaries 2024-05-18 04:21:24 +00:00
smoogipoo fe93c2fb50 Update osx-x64 SDL binaries 2024-05-18 04:21:13 +00:00
Dan Balasescu 02888023e4
Merge pull request #56 from kvnp/master
Add libs for linux-arm64 and linux-arm
2024-05-18 13:19:16 +09:00
Kevin Pfeifer 05714f9657 remove expression from conditions 2024-05-17 21:39:39 +00:00
Kevin Pfeifer 453df16b5e remove quotes 2024-05-17 21:33:53 +00:00
Kevin Pfeifer 89af77f5a2 run ownership action on linux 2024-05-15 20:14:07 +00:00
Kevin Pfeifer 079440d0a0 fix workspace ownership 2024-05-15 19:48:10 +00:00
Kevin Pfeifer a7cbefc5e6 move cmake flags to os matrix 2024-05-15 19:43:25 +00:00
Kevin Pfeifer 515cd199e3 make build.sh executable 2024-05-15 19:32:52 +00:00
Dan Balasescu cc5178712a
Merge pull request #57 from Susko3/update-bindings
Update SDL3 bindings
2024-05-16 04:01:02 +09:00
Susko3 ffe346ac59 Update tests
I wish there was `Unsafe_SDL_CreateRenderer` so that passing in `null` is not ambiguous.
2024-05-15 20:13:35 +02:00
Susko3 99d1c0f9fa Update bindings to 661f2fc1fca76f79f536919fefe5887a875b6afb
Not too happy with the manually defined enums, but it'll do for now.
2024-05-15 20:05:52 +02:00
Kevin Pfeifer 2dd2ef0ef6
Update build.yml 2024-05-15 17:29:36 +02:00
Kevin Pfeifer f6677bde9f
Create build.sh 2024-05-15 17:29:10 +02:00
Dan Balasescu 6f33edd9e6
Merge pull request #54 from Susko3/update-macro-types
Update `SDL_WINDOWPOS_*` macro types to SDL_DisplayID
2024-04-29 21:03:35 +09:00
Susko3 9c37aaef6f Update `SDL_WINDOWPOS_` macro types
See https://wiki.libsdl.org/SDL3/README/migration#sdl_videoh
2024-04-28 14:39:37 +02:00
Dan Balasescu c050c1703b
Merge pull request #53 from Susko3/add-friendly-SDL_SetClipboardData-overload
Add string-friendly overload for `SDL_SetClipboardData`
2024-04-23 23:15:14 +09:00
Susko3 80ed12b6a0 Add string-friendly overload for `SDL_SetClipboardData`
`string[]` marshalling is horrible to implement manually, so I'm using `LibraryImport`.
2024-04-23 14:45:12 +02:00
Dean Herbert e651672c2a
Merge pull request #52 from smoogipoo/adjust-namespaces
Change namespaces from SDL3 -> SDL
2024-04-20 20:35:38 +08:00
Dan Balasescu 8b0479287a
Change namespaces from SDL3 -> SDL 2024-04-20 21:08:58 +09:00