Commit Graph

144 Commits

Author SHA1 Message Date
Dan Balasescu 59cb0158ba
Add desktop tests project
The primary purpose of this is to split out the handling of the native
libs. This is a consequence of using ProjectReference, and resolves the
following issues:

1. When compiling for iOS, it really doesn't like multiple files being
   included in the same output path. Example: all Windows SDL.dll files
   placed as SDL.dll in the output path.
2. Even if (1) was somehow resolved, the iOS build also doesn't like the
   linux-specific .so files being included.
3. As a consequence of (1), it's likely that the project already doesn't
   work on some configurations. For example, because win-x86 is
   specified as the last item, it will likely take precedence over all
   other versions.
4. It looks like `RuntimeIdentifier` is not project-transitive, against
   my expectations. I really want the project to both select the correct
   single native lib for the current platform, and also support
   compiling with a RID (`dotnet build -r ...`).

So now we only copy the correct lib to the output path, and don't do it
while packaging (not required).
2024-04-20 19:30:24 +09:00
Dan Balasescu a16389d76c
Merge pull request #50 from Susko3/add-simple-android-tests
Add simple android tests
2024-04-20 14:21:50 +09:00
Dan Balasescu 0fcba2894d
Add projects to filtered solution 2024-04-20 14:10:45 +09:00
Dan Balasescu 02cedd7cb6
Merge pull request #49 from Susko3/fix-namespaces
Fix namespaces (from `SDL3` to `SDL`)
2024-04-20 14:06:02 +09:00
Susko3 2a253a0e2d Add MVP android tests 2024-04-19 19:34:09 +02:00
Susko3 3d1b5059b6 Change all namespaces to `SDL` (from `SDL3`)
The only real issue with this is Android, as the `SDL3` namespace shadows
the `SDL.SDL3` static class.
2024-04-19 19:02:22 +02:00
Susko3 7ee4e91d60 Remove SourceGeneration project PackageId
The project is consumed locally by SDL3-CS, it's not meant to be packaged to nuget.
2024-04-19 19:00:28 +02:00
Dan Balasescu 0bb695ed2c
Merge pull request #48 from smoogipoo/fix-android-nupkg-upload
Fix path separator on Windows runner
2024-04-18 01:52:08 +09:00
Dan Balasescu ee29df1362
Fix path separator on Windows runner 2024-04-18 01:51:06 +09:00
Dan Balasescu 2e0965609a
Merge pull request #47 from Susko3/update-bindings
Update SDL3 bindings
2024-04-18 01:43:05 +09:00
Susko3 d35c803958 Regenerate SDL3 bindings
Includes changes up to commit:
a2eb2697a3

70ce808c09
is manually excluded to keep SDL_Keycode sane.
2024-04-17 18:37:09 +02:00
Dan Balasescu 7b24554969
Merge remote-tracking branch 'upstream/update-win-arm64-binaries' 2024-04-18 01:30:41 +09:00
Dan Balasescu 68732f2091
Merge remote-tracking branch 'upstream/update-android-binaries' 2024-04-18 01:29:05 +09:00
Dan Balasescu 3508b79917
Merge remote-tracking branch 'upstream/update-ios-binaries' 2024-04-18 01:29:04 +09:00
Dan Balasescu bf2fbdf786
Merge remote-tracking branch 'upstream/update-linux-x64-binaries' 2024-04-18 01:29:03 +09:00
Dan Balasescu ac3b4be3b0
Merge remote-tracking branch 'upstream/update-linux-x86-binaries' 2024-04-18 01:29:03 +09:00
Dan Balasescu ae32b24fe6
Merge remote-tracking branch 'upstream/update-osx-arm64-binaries' 2024-04-18 01:29:02 +09:00
Dan Balasescu 44ae1cad13
Merge remote-tracking branch 'upstream/update-osx-x64-binaries' 2024-04-18 01:29:01 +09:00
Dan Balasescu 232a32ce80
Merge remote-tracking branch 'upstream/update-win-arm64-binaries' 2024-04-18 01:29:00 +09:00
Dan Balasescu 61cdd395b4
Merge remote-tracking branch 'upstream/update-win-x64-binaries' 2024-04-18 01:28:59 +09:00
smoogipoo 9b6c3dd5e3 Update win-arm64 SDL binaries 2024-04-17 16:28:20 +00:00
smoogipoo 84b82f6532 Update win-x64 SDL binaries 2024-04-17 16:27:38 +00:00
smoogipoo b17f230e0c Update win-x86 SDL binaries 2024-04-17 16:27:11 +00:00
smoogipoo 1cf9c12b35 Update iOS SDL binaries 2024-04-17 16:26:03 +00:00
smoogipoo 08b64a59cf Update osx-x64 SDL binaries 2024-04-17 16:26:00 +00:00
smoogipoo 6f23111ea6 Update osx-arm64 SDL binaries 2024-04-17 16:25:47 +00:00
smoogipoo 6aa7c54b49 Update Android SDL binaries 2024-04-17 16:25:30 +00:00
smoogipoo 6a3e74ece9 Update linux-x86 SDL binaries 2024-04-17 16:24:27 +00:00
smoogipoo dae8b1a04b Update linux-x64 SDL binaries 2024-04-17 16:23:46 +00:00
Dan Balasescu f07bc5b0d3
Merge pull request #37 from Susko3/add-Utf8String-helper
Add `Utf8String` helper for safely passing in strings to native methods
2024-04-18 00:43:07 +09:00
Susko3 c40e8b150c Inline `ensureTrailingNull()` 2024-04-17 13:37:11 +02:00
Susko3 8f5e52d944 Update old xmldoc 2024-04-17 13:30:41 +02:00
Susko3 13b2c6ebba Update tests 2024-04-17 13:24:26 +02:00
Susko3 42b32e36d5 Make `Utf8String.Raw` internal 2024-04-17 13:24:26 +02:00
Susko3 a6838a3f9f Use Utf8String directly in `fixed` statement 2024-04-17 13:24:23 +02:00
Susko3 ec3ce75780 Change deceptive test name 2024-04-17 12:14:05 +02:00
Susko3 6f8564fb9d Cover all cases of "creating" `Utf8String`s 2024-04-17 12:12:45 +02:00
Susko3 2f459c7a84 Add missing test
It was present in `TestReadOnlySpan` but not for strings.
2024-04-17 12:10:35 +02:00
Dan Balasescu aab02bf6f9
Fix inspections 2024-04-17 12:08:38 +09:00
Susko3 8a98ba5103 Add rider generated files 2024-04-16 13:02:14 +02:00
Susko3 8e0066d7f7 Remove unnecessary `UTF8GetBytes()` helper 2024-04-16 13:01:13 +02:00
Susko3 72a002ead0 Add `Utf8String`, sourcegen and tests 2024-04-16 12:59:17 +02:00
Susko3 5b9bbd518e Make SDL3-CS.Tests a proper test project 2024-04-16 12:49:45 +02:00
Susko3 e0a7e3dec9 Fix .editorconfig generated code glob pattern 2024-04-16 12:49:38 +02:00
Dean Herbert ac582bdacf
Merge pull request #36 from smoogipoo/post-android-improvements
General improvements post-Android merge
2024-04-16 09:10:49 +08:00
Dan Balasescu 9c89602557
Merge pull request #35 from Susko3/add-UTF8GetBytes-helper
Add helper for making null-terminated byte arrays
2024-04-16 03:59:08 +09:00
Susko3 e7c1d05fa6 Add helper for making null-terminated byte arrays 2024-04-15 20:27:41 +02:00
Dan Balasescu aa1639b0a7
Fix deploy + add android deploy 2024-04-16 03:25:29 +09:00
Dan Balasescu f9ae6277a7
Add desktop/android filtered projects 2024-04-16 03:25:29 +09:00
Dan Balasescu d3481d3a81
Rename SDL3-CS-Android -> SDL3-CS.Android 2024-04-16 03:25:29 +09:00