config.py 781 B

12345678910111213141516171819202122232425262728293031323334353637
  1. def can_build(env, platform):
  2. if env["arch"].startswith("rv"):
  3. return False
  4. if env.editor_build:
  5. env.module_add_dependencies("mono", ["regex"])
  6. return True
  7. def configure(env):
  8. # Check if the platform has marked mono as supported.
  9. supported = env.get("supported", [])
  10. if "mono" not in supported:
  11. import sys
  12. print("The 'mono' module does not currently support building for this platform. Aborting.")
  13. sys.exit(255)
  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