config.py 736 B

1234567891011121314151617181920212223242526272829303132333435
  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 not "mono" in supported:
  11. raise RuntimeError("This module does not currently support building for this platform")
  12. env.add_module_version_string("mono")
  13. def get_doc_classes():
  14. return [
  15. "CSharpScript",
  16. "GodotSharp",
  17. ]
  18. def get_doc_path():
  19. return "doc_classes"
  20. def is_enabled():
  21. # The module is disabled by default. Use module_mono_enabled=yes to enable it.
  22. return False