SCons: Enable iOS modules for ARKit and Camera

This commit is contained in:
Sergey Minakov 2020-06-22 23:23:03 +03:00
parent e564ca0c1b
commit 45a6628b15
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,9 @@ Import("env_modules")
env_arkit = env_modules.Clone()
# (iOS) Enable module support
env_arkit.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
# (iOS) Build as separate static library
modules_sources = []
env_arkit.add_source_files(modules_sources, "*.cpp")

View File

@ -6,6 +6,9 @@ Import("env_modules")
env_camera = env_modules.Clone()
if env["platform"] == "iphone":
# (iOS) Enable module support
env_camera.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
# (iOS) Build as separate static library
modules_sources = []
env_camera.add_source_files(modules_sources, "register_types.cpp")