From 45a6628b15c233523e842e749b2f49381214e6c1 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Mon, 22 Jun 2020 23:23:03 +0300 Subject: [PATCH] SCons: Enable iOS modules for ARKit and Camera --- modules/arkit/SCsub | 3 +++ modules/camera/SCsub | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/arkit/SCsub b/modules/arkit/SCsub index 61c0a8248c1..7e103d6565e 100644 --- a/modules/arkit/SCsub +++ b/modules/arkit/SCsub @@ -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") diff --git a/modules/camera/SCsub b/modules/camera/SCsub index 63c4e9fbab6..631a65bde2b 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")