summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2015-10-02 14:20:50 -0300
committerGeorge Marques <george@gmarqu.es>2015-10-02 14:25:38 -0300
commit6e87314d83a9beab56fdd115277e230ef683c53d (patch)
tree31f1ec4669cf2e54162d4b68ba2edbea95751ee6 /platform/iphone
parent2c45ee5e1ce939bcef32129ac01944f3995269f4 (diff)
Add support for Opus audio format
Diffstat (limited to 'platform/iphone')
-rw-r--r--platform/iphone/detect.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py
index 7fd79eaf0d..0661b45c1b 100644
--- a/platform/iphone/detect.py
+++ b/platform/iphone/detect.py
@@ -138,6 +138,14 @@ def configure(env):
env['ENV']['CODESIGN_ALLOCATE'] = '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate'
env.Append(CPPFLAGS=['-DIPHONE_ENABLED', '-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DMPC_FIXED_POINT'])
+
+ if(env["opus"]=="yes"):
+ env.opus_fixed_point="yes"
+ if(env["bits"]=="64"):
+ env.Append(CFLAGS=["-DOPUS_ARM64_OPT"])
+ else:
+ env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
+
if env['ios_exceptions'] == 'yes':
env.Append(CPPFLAGS=['-fexceptions'])
else: