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

Side by Side Diff: webrtc/common_audio/common_audio.gyp

Issue 1181373004: Add a [rtc_]build_with_neon variable to unify conditions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove gn config and consolidate build_with_neon condition. Created 5 years, 6 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
OLDNEW
1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 { 9 {
10 'includes': [ 10 'includes': [
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 'defines': ['RTC_USE_OPENMAX_DL',], 129 'defines': ['RTC_USE_OPENMAX_DL',],
130 'conditions': [ 130 'conditions': [
131 ['build_openmax_dl==1', { 131 ['build_openmax_dl==1', {
132 'dependencies': ['<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openma x_dl',], 132 'dependencies': ['<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openma x_dl',],
133 }], 133 }],
134 ], 134 ],
135 }], 135 }],
136 ['target_arch=="ia32" or target_arch=="x64"', { 136 ['target_arch=="ia32" or target_arch=="x64"', {
137 'dependencies': ['common_audio_sse2',], 137 'dependencies': ['common_audio_sse2',],
138 }], 138 }],
139 ['build_with_neon==1', {
140 'dependencies': ['common_audio_neon',],
141 }],
139 ['target_arch=="arm"', { 142 ['target_arch=="arm"', {
140 'sources': [ 143 'sources': [
141 'signal_processing/complex_bit_reverse_arm.S', 144 'signal_processing/complex_bit_reverse_arm.S',
142 'signal_processing/spl_sqrt_floor_arm.S', 145 'signal_processing/spl_sqrt_floor_arm.S',
143 ], 146 ],
144 'sources!': [ 147 'sources!': [
145 'signal_processing/complex_bit_reverse.c', 148 'signal_processing/complex_bit_reverse.c',
146 'signal_processing/spl_sqrt_floor.c', 149 'signal_processing/spl_sqrt_floor.c',
147 ], 150 ],
148 'conditions': [ 151 'conditions': [
149 ['arm_version>=7', { 152 ['arm_version>=7', {
150 'dependencies': ['common_audio_neon',],
151 'sources': [ 153 'sources': [
152 'signal_processing/filter_ar_fast_q12_armv7.S', 154 'signal_processing/filter_ar_fast_q12_armv7.S',
153 ], 155 ],
154 'sources!': [ 156 'sources!': [
155 'signal_processing/filter_ar_fast_q12.c', 157 'signal_processing/filter_ar_fast_q12.c',
156 ], 158 ],
157 }], 159 }],
158 ], # conditions 160 ], # conditions
159 }], 161 }],
160 ['target_arch=="arm64"', {
161 'dependencies': ['common_audio_neon',],
162 }],
163 ['target_arch=="mipsel" and mips_arch_variant!="r6"', { 162 ['target_arch=="mipsel" and mips_arch_variant!="r6"', {
164 'sources': [ 163 'sources': [
165 'signal_processing/include/spl_inl_mips.h', 164 'signal_processing/include/spl_inl_mips.h',
166 'signal_processing/complex_bit_reverse_mips.c', 165 'signal_processing/complex_bit_reverse_mips.c',
167 'signal_processing/complex_fft_mips.c', 166 'signal_processing/complex_fft_mips.c',
168 'signal_processing/cross_correlation_mips.c', 167 'signal_processing/cross_correlation_mips.c',
169 'signal_processing/downsample_fast_mips.c', 168 'signal_processing/downsample_fast_mips.c',
170 'signal_processing/filter_ar_fast_q12_mips.c', 169 'signal_processing/filter_ar_fast_q12_mips.c',
171 'signal_processing/min_max_operations_mips.c', 170 'signal_processing/min_max_operations_mips.c',
172 'signal_processing/resample_by_2_mips.c', 171 'signal_processing/resample_by_2_mips.c',
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 ['os_posix==1', { 204 ['os_posix==1', {
206 'cflags': [ '-msse2', ], 205 'cflags': [ '-msse2', ],
207 'xcode_settings': { 206 'xcode_settings': {
208 'OTHER_CFLAGS': [ '-msse2', ], 207 'OTHER_CFLAGS': [ '-msse2', ],
209 }, 208 },
210 }], 209 }],
211 ], 210 ],
212 }, 211 },
213 ], # targets 212 ], # targets
214 }], 213 }],
215 ['target_arch=="arm" and arm_version>=7 or target_arch=="arm64"', { 214 ['build_with_neon==1', {
216 'targets': [ 215 'targets': [
217 { 216 {
218 'target_name': 'common_audio_neon', 217 'target_name': 'common_audio_neon',
219 'type': 'static_library', 218 'type': 'static_library',
220 'includes': ['../build/arm_neon.gypi',], 219 'includes': ['../build/arm_neon.gypi',],
221 'sources': [ 220 'sources': [
222 'fir_filter_neon.cc', 221 'fir_filter_neon.cc',
223 'resampler/sinc_resampler_neon.cc', 222 'resampler/sinc_resampler_neon.cc',
224 'signal_processing/cross_correlation_neon.c', 223 'signal_processing/cross_correlation_neon.c',
225 'signal_processing/downsample_fast_neon.c', 224 'signal_processing/downsample_fast_neon.c',
226 'signal_processing/min_max_operations_neon.c', 225 'signal_processing/min_max_operations_neon.c',
227 ], 226 ],
228 'conditions': [
229 # Disable LTO in common_audio_neon target due to compiler bug
230 ['use_lto==1', {
231 'cflags!': [
232 '-flto',
233 '-ffat-lto-objects',
234 ],
235 }],
236 ],
237 }, 227 },
238 ], # targets 228 ], # targets
239 }], 229 }],
240 ['include_tests==1', { 230 ['include_tests==1', {
241 'targets' : [ 231 'targets' : [
242 { 232 {
243 'target_name': 'common_audio_unittests', 233 'target_name': 'common_audio_unittests',
244 'type': '<(gtest_target_type)', 234 'type': '<(gtest_target_type)',
245 'dependencies': [ 235 'dependencies': [
246 'common_audio', 236 'common_audio',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 'sources': [ 304 'sources': [
315 'common_audio_unittests.isolate', 305 'common_audio_unittests.isolate',
316 ], 306 ],
317 }, 307 },
318 ], 308 ],
319 }], 309 }],
320 ], 310 ],
321 }], 311 }],
322 ], # conditions 312 ], # conditions
323 } 313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698