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

Side by Side Diff: third_party/opus/opus.gyp

Issue 150103006: Enabling ARM optimizations for Opus on Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 10 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 | « no previous file | 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"', { 8 ['OS=="android"', {
9 'use_opus_fixed_point%': 1, 9 'use_opus_fixed_point%': 1,
10 'opus_arm_optimization%': 1,
tlegrand1 2014/02/11 15:45:07 As you see we only enable for Android at the momen
Sergey Ulanov 2014/02/13 20:34:28 Android is now always ARM (e.g. there are Intel-ba
10 }, { 11 }, {
11 'use_opus_fixed_point%': 0, 12 'use_opus_fixed_point%': 0,
12 }], 13 }],
13 ], 14 ],
14 }, 15 },
15 'targets': [ 16 'targets': [
16 { 17 {
17 'target_name': 'opus', 18 'target_name': 'opus',
18 'type': 'static_library', 19 'type': 'static_library',
19 'defines': [ 20 'defines': [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }, { 59 }, {
59 'defines': [ 60 'defines': [
60 'FIXED_POINT', 61 'FIXED_POINT',
61 ], 62 ],
62 'include_dirs': [ 63 'include_dirs': [
63 'src/silk/fixed', 64 'src/silk/fixed',
64 ], 65 ],
65 'sources/': [ 66 'sources/': [
66 ['exclude', '/float/[^/]*_FLP.(h|c)$'], 67 ['exclude', '/float/[^/]*_FLP.(h|c)$'],
67 ], 68 ],
69 'conditions': [
70 ['opus_arm_optimization==1', {
71 'defines': [
72 'OPUS_ARM_ASM',
73 'OPUS_ARM_INLINE_ASM',
74 'OPUS_ARM_INLINE_EDSP',
75 'OPUS_ARM_MAY_HAVE_EDSP',
76 'OPUS_ARM_MAY_HAVE_MEDIA',
77 'OPUS_ARM_MAY_HAVE_NEON',
78 'OPUS_HAVE_RTCD',
79 ],
80 'include_dirs': [
81 'src/celt/arm',
82 ],
83 'includes': [
84 'opus_srcs_arm.gypi',
85 ],
86 'conditions': [
87 ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7 "', {
minyue 2014/02/18 13:52:56 We may try to change this line to ['target_arch==
88 'cflags': [
89 '-mfpu=neon',
90 ],
91 'cflags/': [
92 ['exclude', '^-mfpu=.*'],
93 ['include', '-mfpu=neon'],
94 ],
95 }, {
96 'sources!': [
97 'src/celt/pitch_arm.h',
98 'src/celt/arm/celt_pitch_xcorr_arm_gnu.S',
99 ],
100 }],
101 ],
102 }],
103 ],
68 }], 104 }],
69 ], 105 ],
70 }, # target opus 106 }, # target opus
71 { 107 {
72 'target_name': 'opus_demo', 108 'target_name': 'opus_demo',
73 'type': 'executable', 109 'type': 'executable',
74 'dependencies': [ 110 'dependencies': [
75 'opus' 111 'opus'
76 ], 112 ],
77 'conditions': [ 113 'conditions': [
(...skipping 13 matching lines...) Expand all
91 'sources': [ 127 'sources': [
92 'src/src/opus_demo.c', 128 'src/src/opus_demo.c',
93 ], 129 ],
94 'include_dirs': [ 130 'include_dirs': [
95 'src/celt', 131 'src/celt',
96 'src/silk', 132 'src/silk',
97 ], 133 ],
98 }, # target opus_demo 134 }, # target opus_demo
99 ] 135 ]
100 } 136 }
OLDNEW
« no previous file with comments | « no previous file | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698