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

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: Rebase 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
« no previous file with comments | « third_party/opus/README.chromium ('k') | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/opus.gyp
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
index 326367ea33e09171c954fb70f901115cd91d8579..3b37f42b795afd53725485d7f70ac96d51dd4d70 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -5,13 +5,18 @@
{
'variables': {
'conditions': [
- ['(OS=="android" or chromeos==1) and target_arch=="arm"', {
+ ['((OS=="android" or chromeos==1) and target_arch=="arm") or (OS=="ios" and target_arch=="armv7")', {
'use_opus_fixed_point%': 1,
'use_opus_arm_optimization%': 1,
}, {
'use_opus_fixed_point%': 0,
'use_opus_arm_optimization%': 0,
}],
+ ['(OS=="android" or chromeos==1) and target_arch=="arm"', {
+ 'use_opus_rtcd%': 1,
+ }, {
+ 'use_opus_rtcd%': 0,
+ }],
],
},
'targets': [
@@ -85,14 +90,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',
+ ],
+ }],
+ ],
}],
],
}],
« no previous file with comments | « third_party/opus/README.chromium ('k') | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698