2017-07-28 08:32:08 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2017-07-28 08:32:08 +08:00
|
|
|
|
|
|
|
env_arkit = env_modules.Clone()
|
|
|
|
|
2020-06-23 04:23:03 +08:00
|
|
|
# (iOS) Enable module support
|
|
|
|
env_arkit.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
|
|
|
|
2019-11-29 14:54:39 +08:00
|
|
|
# (iOS) Build as separate static library
|
|
|
|
modules_sources = []
|
|
|
|
env_arkit.add_source_files(modules_sources, "*.cpp")
|
|
|
|
env_arkit.add_source_files(modules_sources, "*.mm")
|
2020-03-30 14:28:32 +08:00
|
|
|
mod_lib = env_modules.add_library("#bin/libgodot_arkit_module" + env["LIBSUFFIX"], modules_sources)
|