config.py 912 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Prior to .NET Core, we supported these: ["windows", "macos", "linuxbsd", "android", "web", "ios"]
  2. # Eventually support for each them should be added back.
  3. supported_platforms = ["windows", "macos", "linuxbsd", "android", "ios"]
  4. def can_build(env, platform):
  5. if env["arch"].startswith("rv"):
  6. return False
  7. if env.editor_build:
  8. env.module_add_dependencies("mono", ["regex"])
  9. return True
  10. def configure(env):
  11. platform = env["platform"]
  12. if platform not in supported_platforms:
  13. raise RuntimeError("This module does not currently support building for this platform")
  14. env.add_module_version_string("mono")
  15. def get_doc_classes():
  16. return [
  17. "CSharpScript",
  18. "GodotSharp",
  19. ]
  20. def get_doc_path():
  21. return "doc_classes"
  22. def is_enabled():
  23. # The module is disabled by default. Use module_mono_enabled=yes to enable it.
  24. return False