summaryrefslogtreecommitdiff
path: root/modules/inappstore/SCsub
diff options
context:
space:
mode:
authorSergey Minakov <naithar@icloud.com>2020-08-13 18:24:39 +0300
committerSergey Minakov <naithar@icloud.com>2020-11-10 16:28:29 +0300
commit30783d57ccf6f368f21a84e408f56b86d05cba2b (patch)
tree7af4591c589b1393a31599cbad19490893fcc5f1 /modules/inappstore/SCsub
parent03ae26bb74c0b713fe2132c5b003ae41e366746c (diff)
iOS Modules: separate main platform code from modules
Moved previously builtin modules 'GameCenter', 'AppStore', 'iCloud' to separate modules to be represented as plugin. Modified 'ARKit' and 'Camera' to not be builtin into engine and work as plugin. Changed platform code so it's not affected by the move. Modified Xcode project file to remove parameters that doesn't make any effect. Added basic '.gdip' plugin config file.
Diffstat (limited to 'modules/inappstore/SCsub')
-rw-r--r--modules/inappstore/SCsub15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/inappstore/SCsub b/modules/inappstore/SCsub
new file mode 100644
index 0000000000..cee6a256d5
--- /dev/null
+++ b/modules/inappstore/SCsub
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+Import("env")
+Import("env_modules")
+
+env_inappstore = env_modules.Clone()
+
+# (iOS) Enable module support
+env_inappstore.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
+
+# (iOS) Build as separate static library
+modules_sources = []
+env_inappstore.add_source_files(modules_sources, "*.cpp")
+env_inappstore.add_source_files(modules_sources, "*.mm")
+mod_lib = env_modules.add_library("#bin/libgodot_inappstore_module" + env["LIBSUFFIX"], modules_sources)