diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-20 22:56:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 22:56:15 +0100 |
commit | 71a3e71b61690663f5bc6b1b091f578a6d6915f7 (patch) | |
tree | 380303c58fff0dd7e2e6aa4c4b192e48e4a23037 /platform/iphone/SCsub | |
parent | 6065b2d1778cd5dc8c078f3b59e501fb8ccdec9f (diff) | |
parent | 8f0f327f0207cbde27bbfba3ac106b9457d7201b (diff) |
Merge pull request #11783 from endragor/ios-export-frameworks
Allow exporting third-party iOS Frameworks
Diffstat (limited to 'platform/iphone/SCsub')
-rw-r--r-- | platform/iphone/SCsub | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/iphone/SCsub b/platform/iphone/SCsub index 61798c5f87..550dfdd7d6 100644 --- a/platform/iphone/SCsub +++ b/platform/iphone/SCsub @@ -3,7 +3,7 @@ Import('env') iphone_lib = [ - + 'godot_iphone.cpp', 'os_iphone.cpp', 'sem_iphone.cpp', 'gl_view.mm', @@ -17,10 +17,10 @@ iphone_lib = [ ] env_ios = env.Clone() +ios_lib = env_ios.Library('iphone', iphone_lib) -obj = env_ios.Object('godot_iphone.cpp') +def combine_libs(target=None, source=None, env=None): + lib_path = target[0].srcnode().abspath + env.Execute('$IPHONEPATH/usr/bin/libtool -static -o "' + lib_path + '" ' + ' '.join([('"' + lib.srcnode().abspath + '"') for lib in source])) -prog = None -prog = env_ios.Program('#bin/godot', [obj] + iphone_lib) -action = "$IPHONEPATH/usr/bin/dsymutil " + File(prog)[0].path + " -o " + File(prog)[0].path + ".dSYM" -env.AddPostAction(prog, action) +combine_command = env_ios.Command('#bin/libgodot' + env_ios['LIBSUFFIX'], [ios_lib] + env_ios['LIBS'], combine_libs) |