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

Side by Side Diff: webrtc/modules/audio_processing/audio_processing.gypi

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: Use new variable and add arm_neon_config. 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) 2012 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2012 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 'variables': { 10 'variables': {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 'ns/include/noise_suppression.h', 175 'ns/include/noise_suppression.h',
176 'ns/noise_suppression.c', 176 'ns/noise_suppression.c',
177 'ns/ns_core.c', 177 'ns/ns_core.c',
178 'ns/ns_core.h', 178 'ns/ns_core.h',
179 'ns/windows_private.h', 179 'ns/windows_private.h',
180 ], 180 ],
181 }], 181 }],
182 ['target_arch=="ia32" or target_arch=="x64"', { 182 ['target_arch=="ia32" or target_arch=="x64"', {
183 'dependencies': ['audio_processing_sse2',], 183 'dependencies': ['audio_processing_sse2',],
184 }], 184 }],
185 ['(target_arch=="arm" and arm_version>=7) or target_arch=="arm64"', { 185 ['build_with_neon==1', {
186 'dependencies': ['audio_processing_neon',], 186 'dependencies': ['audio_processing_neon',],
187 }], 187 }],
188 ['target_arch=="mipsel" and mips_arch_variant!="r6"', { 188 ['target_arch=="mipsel" and mips_arch_variant!="r6"', {
189 'sources': [ 189 'sources': [
190 'aecm/aecm_core_mips.c', 190 'aecm/aecm_core_mips.c',
191 ], 191 ],
192 'conditions': [ 192 'conditions': [
193 ['mips_float_abi=="hard"', { 193 ['mips_float_abi=="hard"', {
194 'sources': [ 194 'sources': [
195 'aec/aec_core_mips.c', 195 'aec/aec_core_mips.c',
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 ['os_posix==1', { 238 ['os_posix==1', {
239 'cflags': [ '-msse2', ], 239 'cflags': [ '-msse2', ],
240 'xcode_settings': { 240 'xcode_settings': {
241 'OTHER_CFLAGS': [ '-msse2', ], 241 'OTHER_CFLAGS': [ '-msse2', ],
242 }, 242 },
243 }], 243 }],
244 ], 244 ],
245 }, 245 },
246 ], 246 ],
247 }], 247 }],
248 ['(target_arch=="arm" and arm_version>=7) or target_arch=="arm64"', { 248 ['build_with_neon==1', {
249 'targets': [{ 249 'targets': [{
250 'target_name': 'audio_processing_neon', 250 'target_name': 'audio_processing_neon',
251 'type': 'static_library', 251 'type': 'static_library',
252 'includes': ['../../build/arm_neon.gypi',], 252 'includes': ['../../build/arm_neon.gypi',],
253 'dependencies': [ 253 'dependencies': [
254 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', 254 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
255 ], 255 ],
256 'sources': [ 256 'sources': [
257 'aec/aec_core_neon.c', 257 'aec/aec_core_neon.c',
258 'aec/aec_rdft_neon.c', 258 'aec/aec_rdft_neon.c',
259 'aecm/aecm_core_neon.c', 259 'aecm/aecm_core_neon.c',
260 'ns/nsx_core_neon.c', 260 'ns/nsx_core_neon.c',
261 ], 261 ],
262 'conditions': [
263 # Disable LTO in audio_processing_neon target due to compiler bug
264 ['use_lto==1', {
265 'cflags!': [
266 '-flto',
267 '-ffat-lto-objects',
268 ],
269 }],
270 ],
271 }], 262 }],
272 }], 263 }],
273 ], 264 ],
274 } 265 }
OLDNEW
« webrtc/modules/audio_coding/BUILD.gn ('K') | « webrtc/modules/audio_processing/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698