summaryrefslogtreecommitdiff
path: root/modules/camera
diff options
context:
space:
mode:
authorSergey Minakov <naithar@icloud.com>2020-06-22 23:23:03 +0300
committerSergey Minakov <naithar@icloud.com>2020-06-23 12:48:44 +0300
commitc3e7aeb279d78534124f571d72649f45c885f520 (patch)
tree353ae09edf96f300cb7454dd3fea8c013b57a6ec /modules/camera
parent488879f52bbd7ebf51715433a0dc8ba50849c93e (diff)
SCons: Enable iOS modules for ARKit and Camera
Diffstat (limited to 'modules/camera')
-rw-r--r--modules/camera/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/camera/SCsub b/modules/camera/SCsub
index 63c4e9fbab..631a65bde2 100644
--- a/modules/camera/SCsub
+++ b/modules/camera/SCsub
@@ -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")