Commit Graph

144 Commits

Author SHA1 Message Date
Dan Balasescu f862cb535d 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 d79b86021b Merge pull request #50 from Susko3/add-simple-android-tests
Add simple android tests
2024-04-20 14:21:50 +09:00
Dan Balasescu b83316b3cb Add projects to filtered solution 2024-04-20 14:10:45 +09:00
Dan Balasescu cb7c225108 Merge pull request #49 from Susko3/fix-namespaces
Fix namespaces (from `SDL3` to `SDL`)
2024-04-20 14:06:02 +09:00
Susko3 abfade6a62 Add MVP android tests 2024-04-19 19:34:09 +02:00
Susko3 7639717186 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 e8947d5349 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 e6ee10201a 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 c1655206bf Fix path separator on Windows runner 2024-04-18 01:51:06 +09:00
Dan Balasescu 3a7be2e990 Merge pull request #47 from Susko3/update-bindings
Update SDL3 bindings
2024-04-18 01:43:05 +09:00
Susko3 c27b7b770f 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 2ea1943bfe Merge remote-tracking branch 'upstream/update-win-arm64-binaries' 2024-04-18 01:30:41 +09:00
Dan Balasescu 004fb4e9ae Merge remote-tracking branch 'upstream/update-android-binaries' 2024-04-18 01:29:05 +09:00
Dan Balasescu 2fdfba9682 Merge remote-tracking branch 'upstream/update-ios-binaries' 2024-04-18 01:29:04 +09:00
Dan Balasescu a47a885ec1 Merge remote-tracking branch 'upstream/update-linux-x64-binaries' 2024-04-18 01:29:03 +09:00
Dan Balasescu faffaa8a76 Merge remote-tracking branch 'upstream/update-linux-x86-binaries' 2024-04-18 01:29:03 +09:00
Dan Balasescu 98de498c2a Merge remote-tracking branch 'upstream/update-osx-arm64-binaries' 2024-04-18 01:29:02 +09:00
Dan Balasescu f3d0416789 Merge remote-tracking branch 'upstream/update-osx-x64-binaries' 2024-04-18 01:29:01 +09:00
Dan Balasescu b2d2edbe03 Merge remote-tracking branch 'upstream/update-win-arm64-binaries' 2024-04-18 01:29:00 +09:00
Dan Balasescu 99d9ed6b93 Merge remote-tracking branch 'upstream/update-win-x64-binaries' 2024-04-18 01:28:59 +09:00
smoogipoo 93ecb37969 Update win-arm64 SDL binaries 2024-04-17 16:28:20 +00:00
smoogipoo d689dbc661 Update win-x64 SDL binaries 2024-04-17 16:27:38 +00:00
smoogipoo 42f03fe2df Update win-x86 SDL binaries 2024-04-17 16:27:11 +00:00
smoogipoo b41572d933 Update iOS SDL binaries 2024-04-17 16:26:03 +00:00
smoogipoo 2aaad969ed Update osx-x64 SDL binaries 2024-04-17 16:26:00 +00:00
smoogipoo 82afabcef9 Update osx-arm64 SDL binaries 2024-04-17 16:25:47 +00:00
smoogipoo 268c4e3171 Update Android SDL binaries 2024-04-17 16:25:30 +00:00
smoogipoo c27a1c726f Update linux-x86 SDL binaries 2024-04-17 16:24:27 +00:00
smoogipoo c14e09eec4 Update linux-x64 SDL binaries 2024-04-17 16:23:46 +00:00
Dan Balasescu 3ab7abe478 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 7be592a9c1 Inline `ensureTrailingNull()` 2024-04-17 13:37:11 +02:00
Susko3 851b30d08f Update old xmldoc 2024-04-17 13:30:41 +02:00
Susko3 748912f70d Update tests 2024-04-17 13:24:26 +02:00
Susko3 1cb22f0e73 Make `Utf8String.Raw` internal 2024-04-17 13:24:26 +02:00
Susko3 567e6e4f7c Use Utf8String directly in `fixed` statement 2024-04-17 13:24:23 +02:00
Susko3 c4d0e86523 Change deceptive test name 2024-04-17 12:14:05 +02:00
Susko3 6df4008c77 Cover all cases of "creating" `Utf8String`s 2024-04-17 12:12:45 +02:00
Susko3 6ece973123 Add missing test
It was present in `TestReadOnlySpan` but not for strings.
2024-04-17 12:10:35 +02:00
Dan Balasescu 7b5e406c81 Fix inspections 2024-04-17 12:08:38 +09:00
Susko3 4d49130baa Add rider generated files 2024-04-16 13:02:14 +02:00
Susko3 498a714965 Remove unnecessary `UTF8GetBytes()` helper 2024-04-16 13:01:13 +02:00
Susko3 439f85de53 Add `Utf8String`, sourcegen and tests 2024-04-16 12:59:17 +02:00
Susko3 ef423d9f11 Make SDL3-CS.Tests a proper test project 2024-04-16 12:49:45 +02:00
Susko3 c552e6f0eb Fix .editorconfig generated code glob pattern 2024-04-16 12:49:38 +02:00
Dean Herbert bbc6807fbe Merge pull request #36 from smoogipoo/post-android-improvements
General improvements post-Android merge
2024-04-16 09:10:49 +08:00
Dan Balasescu 870ecd40d7 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 a37167744f Add helper for making null-terminated byte arrays 2024-04-15 20:27:41 +02:00
Dan Balasescu 72247eaf30 Fix deploy + add android deploy 2024-04-16 03:25:29 +09:00
Dan Balasescu f087955630 Add desktop/android filtered projects 2024-04-16 03:25:29 +09:00
Dan Balasescu e4179cceb8 Rename SDL3-CS-Android -> SDL3-CS.Android 2024-04-16 03:25:29 +09:00