Commit Graph

14 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
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 13b2c6ebba Update tests 2024-04-17 13:24:26 +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
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 e7c1d05fa6 Add helper for making null-terminated byte arrays 2024-04-15 20:27:41 +02:00
Susko3 b6a70cf162 Migrate custom patch to friendly overloads
Some changes are still required.
2024-04-15 19:40:55 +02:00
Dan Balasescu 913afa5b4f
Refactorings + auto styling 2024-04-07 12:47:29 +09:00
Susko3 bb9834d0a9 Add sample/tests project
Just a playground to see how the string/type/array friendly overloads work.
You'll have to provide the SDL3 library manually.
2024-04-06 14:47:39 +02:00