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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/opus/README.chromium ('k') | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['(OS=="android" or chromeos==1) and target_arch=="arm"', { 8 ['((OS=="android" or chromeos==1) and target_arch=="arm") or (OS=="ios" an d target_arch=="armv7")', {
9 'use_opus_fixed_point%': 1, 9 'use_opus_fixed_point%': 1,
10 'use_opus_arm_optimization%': 1, 10 'use_opus_arm_optimization%': 1,
11 }, { 11 }, {
12 'use_opus_fixed_point%': 0, 12 'use_opus_fixed_point%': 0,
13 'use_opus_arm_optimization%': 0, 13 'use_opus_arm_optimization%': 0,
14 }], 14 }],
15 ['(OS=="android" or chromeos==1) and target_arch=="arm"', {
16 'use_opus_rtcd%': 1,
17 }, {
18 'use_opus_rtcd%': 0,
19 }],
15 ], 20 ],
16 }, 21 },
17 'targets': [ 22 'targets': [
18 { 23 {
19 'target_name': 'opus', 24 'target_name': 'opus',
20 'type': 'static_library', 25 'type': 'static_library',
21 'defines': [ 26 'defines': [
22 'OPUS_BUILD', 27 'OPUS_BUILD',
23 'OPUS_EXPORT=', 28 'OPUS_EXPORT=',
24 ], 29 ],
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ], 83 ],
79 'sources/': [ 84 'sources/': [
80 ['exclude', '/float/[^/]*_FLP.(h|c)$'], 85 ['exclude', '/float/[^/]*_FLP.(h|c)$'],
81 ], 86 ],
82 'conditions': [ 87 'conditions': [
83 ['use_opus_arm_optimization==1', { 88 ['use_opus_arm_optimization==1', {
84 'defines': [ 89 'defines': [
85 'OPUS_ARM_ASM', 90 'OPUS_ARM_ASM',
86 'OPUS_ARM_INLINE_ASM', 91 'OPUS_ARM_INLINE_ASM',
87 'OPUS_ARM_INLINE_EDSP', 92 'OPUS_ARM_INLINE_EDSP',
88 'OPUS_ARM_MAY_HAVE_EDSP',
89 'OPUS_ARM_MAY_HAVE_MEDIA',
90 'OPUS_ARM_MAY_HAVE_NEON',
91 'OPUS_HAVE_RTCD',
92 ], 93 ],
93 'includes': [ 94 'includes': [
94 'opus_srcs_arm.gypi', 95 'opus_srcs_arm.gypi',
95 ], 96 ],
97 'conditions': [
98 ['use_opus_rtcd==1', {
99 'defines': [
100 'OPUS_ARM_MAY_HAVE_EDSP',
101 'OPUS_ARM_MAY_HAVE_MEDIA',
102 'OPUS_ARM_MAY_HAVE_NEON',
103 'OPUS_HAVE_RTCD',
104 ],
105 'includes': [
106 'opus_srcs_rtcd.gypi',
107 ],
108 }],
109 ],
96 }], 110 }],
97 ], 111 ],
98 }], 112 }],
99 ], 113 ],
100 }, # target opus 114 }, # target opus
101 { 115 {
102 'target_name': 'opus_demo', 116 'target_name': 'opus_demo',
103 'type': 'executable', 117 'type': 'executable',
104 'dependencies': [ 118 'dependencies': [
105 'opus' 119 'opus'
(...skipping 15 matching lines...) Expand all
121 'sources': [ 135 'sources': [
122 'src/src/opus_demo.c', 136 'src/src/opus_demo.c',
123 ], 137 ],
124 'include_dirs': [ 138 'include_dirs': [
125 'src/celt', 139 'src/celt',
126 'src/silk', 140 'src/silk',
127 ], 141 ],
128 }, # target opus_demo 142 }, # target opus_demo
129 ] 143 ]
130 } 144 }
OLDNEW
« 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