Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: third_party/opus/opus.gyp

Issue 237143003: Enable ARM optimizations for Opus in iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/opus/opus.gyp
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
index 326367ea33e09171c954fb70f901115cd91d8579..9594ed6061a3c13110959287687a5db5c7eef98c 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -8,9 +8,20 @@
['(OS=="android" or chromeos==1) and target_arch=="arm"', {
'use_opus_fixed_point%': 1,
'use_opus_arm_optimization%': 1,
+ 'use_opus_rtcd%': 1,
}, {
'use_opus_fixed_point%': 0,
'use_opus_arm_optimization%': 0,
+ 'use_opus_rtcd%': 0,
+ }],
+ ['OS=="ios"', {
tlegrand1 2014/04/14 15:30:58 Do we need to specify ARM here, or do iOS implicit
Sergey Ulanov 2014/04/14 21:42:13 I think we do. iOS emulator build are normally com
tlegrand1 2014/04/15 14:15:21 Thanks, didn't know that. On 2014/04/14 21:42:13,
+ 'use_opus_fixed_point%': 1,
+ 'use_opus_arm_optimization%': 1,
+ 'use_opus_rtcd%': 0,
+ }, {
+ 'use_opus_fixed_point%': 0,
Sergey Ulanov 2014/04/14 21:42:13 this duplicates lines 13-15. I suggest formatting
tlegrand1 2014/04/15 14:15:21 Needed to specify armv7 for ios. On 2014/04/14 21:
+ 'use_opus_arm_optimization%': 0,
+ 'use_opus_rtcd%': 0,
}],
],
},
@@ -85,14 +96,23 @@
'OPUS_ARM_ASM',
'OPUS_ARM_INLINE_ASM',
'OPUS_ARM_INLINE_EDSP',
- 'OPUS_ARM_MAY_HAVE_EDSP',
- 'OPUS_ARM_MAY_HAVE_MEDIA',
- 'OPUS_ARM_MAY_HAVE_NEON',
- 'OPUS_HAVE_RTCD',
],
'includes': [
'opus_srcs_arm.gypi',
],
+ 'conditions': [
+ ['use_opus_rtcd==1', {
+ 'defines': [
+ 'OPUS_ARM_MAY_HAVE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_MEDIA',
+ 'OPUS_ARM_MAY_HAVE_NEON',
+ 'OPUS_HAVE_RTCD',
+ ],
+ 'includes': [
+ 'opus_srcs_rtcd.gypi',
+ ],
+ }],
+ ],
}],
],
}],

Powered by Google App Engine
This is Rietveld 408576698