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

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: 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_arm_srcs.gypi » ('j') | third_party/opus/opus_arm_srcs.gypi » ('J')
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"', {
tlegrand1 2014/02/07 14:38:43 We only enable the optimizations for android at th
9 'use_opus_fixed_point%': 1, 9 'use_opus_fixed_point%': 1,
10 'opus_arm_optimization%': 1,
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_INLINE_ASM',
73 'OPUS_ARM_INLINE_EDSP',
74 'OPUS_ARM_ASM',
75 'OPUS_HAVE_RTCD',
76 'OPUS_ARM_MAY_HAVE_EDSP',
77 'OPUS_ARM_MAY_HAVE_MEDIA',
78 'OPUS_ARM_MAY_HAVE_NEON',
Sergey Ulanov 2014/02/06 18:23:13 Sort these alphabetically please
tlegrand1 2014/02/07 14:38:43 Done.
79 ], # defines
Sergey Ulanov 2014/02/06 18:23:13 nit: two spaces before comments. Also I don't thin
tlegrand1 2014/02/07 14:38:43 Done.
80 'include_dirs': [
81 'src/celt/arm',
82 ], # include_dirs
83 'includes': [
84 'opus_arm_srcs.gypi',
85 ], # includes
86 'conditions': [
87 ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7 "', {
88 'cflags': [
89 '-mfpu=neon',
Sergey Ulanov 2014/02/06 18:23:13 Why do you need this? I think build/common.gypi sh
tlegrand1 2014/02/07 14:38:43 I think you are right, but I need to verify that i
90 ], # cflags
91 'cflags/': [
92 ['exclude', '^-mfpu=.*'],
93 ['include', '-mfpu=neon'],
94 ], # cflags/
95 }, {
96 'sources!': [
97 'src/celt/pitch_arm.h',
98 'src/celt/arm/celt_pitch_xcorr_arm_gnu.S',
99 ], # sources
Sergey Ulanov 2014/02/06 18:23:13 sources!, but I suggest to just remove this commen
tlegrand1 2014/02/07 14:38:43 Done.
100 }], # target_arch=="arm" ...
101 ], # conditions
102 }], # opus_arm_optimization==1
103 ], # conditions
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_arm_srcs.gypi » ('j') | third_party/opus/opus_arm_srcs.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698