summaryrefslogtreecommitdiff
path: root/modules/icloud/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-10 15:43:50 +0100
committerGitHub <noreply@github.com>2020-11-10 15:43:50 +0100
commit1626cfd9372925df9fb2216e6612481eb3a91886 (patch)
treef13863a32849e737862c97b74d767a2fe24df437 /modules/icloud/SCsub
parent05fe063ea966406f0ab13393f77f76515491c408 (diff)
parent1f2f477e1ee28f9fac8b7fc17bbd6d4707c4e5e8 (diff)
Merge pull request #41230 from naithar/feature/pluggable-ios-modules
[iOS] [4.0] iOS Plugins
Diffstat (limited to 'modules/icloud/SCsub')
-rw-r--r--modules/icloud/SCsub15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/icloud/SCsub b/modules/icloud/SCsub
new file mode 100644
index 0000000000..805a484600
--- /dev/null
+++ b/modules/icloud/SCsub
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+Import("env")
+Import("env_modules")
+
+env_icloud = env_modules.Clone()
+
+# (iOS) Enable module support
+env_icloud.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
+
+# (iOS) Build as separate static library
+modules_sources = []
+env_icloud.add_source_files(modules_sources, "*.cpp")
+env_icloud.add_source_files(modules_sources, "*.mm")
+mod_lib = env_modules.add_library("#bin/libgodot_icloud_module" + env["LIBSUFFIX"], modules_sources)