iOS Modules: separate main platform code from modules
Moved previously builtin modules 'GameCenter', 'AppStore', 'iCloud' to separate modules to be represented as plugin. Modified 'ARKit' and 'Camera' to not be builtin into engine and work as plugin. Changed platform code so it's not affected by the move. Modified Xcode project file to remove parameters that doesn't make any effect. Added basic '.gdip' plugin config file.
This commit is contained in:
parent
03ae26bb74
commit
30783d57cc
45 changed files with 594 additions and 224 deletions
|
|
@ -5,17 +5,7 @@ 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")
|
||||
env_camera.add_source_files(modules_sources, "camera_ios.mm")
|
||||
mod_lib = env_modules.add_library("#bin/libgodot_camera_module" + env["LIBSUFFIX"], modules_sources)
|
||||
|
||||
elif env["platform"] == "windows":
|
||||
if env["platform"] == "windows":
|
||||
env_camera.add_source_files(env.modules_sources, "register_types.cpp")
|
||||
env_camera.add_source_files(env.modules_sources, "camera_win.cpp")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue