summaryrefslogtreecommitdiff
path: root/modules/mono/SCsub
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2020-03-18 17:40:04 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2020-03-31 09:37:16 +0200
commit77dd06134504ce68cc79b879c4a28d76a2c975f8 (patch)
treea4551344d3914ce93cfc25590f3c7261a27d4ab5 /modules/mono/SCsub
parentfa08437694d09f0d5ee594cb4fbe1ff72b074742 (diff)
Mono/C#: Add iOS support
Right now, games only work on devices when exported with FullAOT+Interpreter. There are some issues left that need to addressed for FullAOT alone. Right now, it's giving issues with the Godot.NativeCalls static constructor.
Diffstat (limited to 'modules/mono/SCsub')
-rw-r--r--modules/mono/SCsub6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/SCsub b/modules/mono/SCsub
index af77913b91..c723b210cb 100644
--- a/modules/mono/SCsub
+++ b/modules/mono/SCsub
@@ -47,5 +47,11 @@ env_mono.add_source_files(env.modules_sources, "glue/*.cpp")
env_mono.add_source_files(env.modules_sources, "mono_gd/*.cpp")
env_mono.add_source_files(env.modules_sources, "utils/*.cpp")
+env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.cpp")
+
+if env["platform"] in ["osx", "iphone"]:
+ env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.mm")
+ env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.m")
+
if env["tools"]:
env_mono.add_source_files(env.modules_sources, "editor/*.cpp")