2017-07-28 00:32:08 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2017-07-28 00:32:08 +00:00
|
|
|
|
|
|
|
env_arkit = env_modules.Clone()
|
|
|
|
|
2020-06-22 20:23:03 +00:00
|
|
|
# (iOS) Enable module support
|
|
|
|
env_arkit.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
|
|
|
|
2019-11-29 06:54:39 +00: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 06:28:32 +00:00
|
|
|
mod_lib = env_modules.add_library("#bin/libgodot_arkit_module" + env["LIBSUFFIX"], modules_sources)
|