SCons: Enable iOS modules for ARKit and Camera
This commit is contained in:
parent
e564ca0c1b
commit
45a6628b15
|
@ -5,6 +5,9 @@ Import("env_modules")
|
||||||
|
|
||||||
env_arkit = env_modules.Clone()
|
env_arkit = env_modules.Clone()
|
||||||
|
|
||||||
|
# (iOS) Enable module support
|
||||||
|
env_arkit.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
||||||
|
|
||||||
# (iOS) Build as separate static library
|
# (iOS) Build as separate static library
|
||||||
modules_sources = []
|
modules_sources = []
|
||||||
env_arkit.add_source_files(modules_sources, "*.cpp")
|
env_arkit.add_source_files(modules_sources, "*.cpp")
|
||||||
|
|
|
@ -6,6 +6,9 @@ Import("env_modules")
|
||||||
env_camera = env_modules.Clone()
|
env_camera = env_modules.Clone()
|
||||||
|
|
||||||
if env["platform"] == "iphone":
|
if env["platform"] == "iphone":
|
||||||
|
# (iOS) Enable module support
|
||||||
|
env_camera.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
||||||
|
|
||||||
# (iOS) Build as separate static library
|
# (iOS) Build as separate static library
|
||||||
modules_sources = []
|
modules_sources = []
|
||||||
env_camera.add_source_files(modules_sources, "register_types.cpp")
|
env_camera.add_source_files(modules_sources, "register_types.cpp")
|
||||||
|
|
Loading…
Reference in New Issue