C#: Let platforms signal if they support it or not

Instead of hardcoding platform names that support C#, let platforms
set a flag indicating if they support it. All public platforms
except web already support it, and it's a pain to maintain a patch
for this list just to add additional names of proprietary console
platforms.

This makes adding new platforms or variants or existing platforms
much easier, as the platform can signal what it supports/doesn't
support directly, and we can avoid harcoding platform names.
This commit is contained in:
Andreia Gaita 2024-02-05 20:55:06 +01:00
parent 3a8524dd92
commit 21e524a798
6 changed files with 8 additions and 7 deletions

View file

@ -68,6 +68,7 @@ def get_flags():
return [
("arch", "arm64"), # Default for convenience.
("target", "template_debug"),
("supported", ["mono"]),
]