Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/mono/config.py
10277 views
1
def can_build(env, platform):
2
if env["arch"].startswith("rv"):
3
return False
4
5
if env.editor_build:
6
env.module_add_dependencies("mono", ["regex"])
7
8
return True
9
10
11
def configure(env):
12
# Check if the platform has marked mono as supported.
13
supported = env.get("supported", [])
14
if "mono" not in supported:
15
import sys
16
17
print("The 'mono' module does not currently support building for this platform. Aborting.")
18
sys.exit(255)
19
20
env.add_module_version_string("mono")
21
22
23
def get_doc_classes():
24
return [
25
"CSharpScript",
26
"GodotSharp",
27
]
28
29
30
def get_doc_path():
31
return "doc_classes"
32
33
34
def is_enabled():
35
# The module is disabled by default. Use module_mono_enabled=yes to enable it.
36
return False
37
38