Commit Graph

6 Commits

Author SHA1 Message Date
Dan Balasescu 7078b56bcc
Improve lib resolving for desktop project 2025-08-17 19:58:28 +09:00
Dan Balasescu c563ecc3be
Mark test projects as non-packable 2025-06-20 00:38:43 +09:00
Dan Balasescu 8b0479287a
Change namespaces from SDL3 -> SDL 2024-04-20 21:08:58 +09:00
Dan Balasescu 4c5173715e
Fix RID not actually working 2024-04-20 19:51:26 +09:00
Dan Balasescu 784d305d9c
Remove unnecessary condition 2024-04-20 19:49:46 +09:00
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