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