summaryrefslogtreecommitdiff
path: root/modules/icloud/SCsub
blob: 805a48460035e35b131cc8f060d2edb6205fb38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)