OLD | NEW |
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 # This file contains common settings for building WebRTC components. | 9 # This file contains common settings for building WebRTC components. |
10 | 10 |
(...skipping 103 matching lines...) Loading... |
114 # Link-Time Optimizations | 114 # Link-Time Optimizations |
115 # Executes code generation at link-time instead of compile-time | 115 # Executes code generation at link-time instead of compile-time |
116 # https://gcc.gnu.org/wiki/LinkTimeOptimization | 116 # https://gcc.gnu.org/wiki/LinkTimeOptimization |
117 'use_lto%': 0, | 117 'use_lto%': 0, |
118 | 118 |
119 # Defer ssl perference to that specified through sslconfig.h instead of | 119 # Defer ssl perference to that specified through sslconfig.h instead of |
120 # choosing openssl or nss directly. In practice, this can be used to | 120 # choosing openssl or nss directly. In practice, this can be used to |
121 # enable schannel on windows. | 121 # enable schannel on windows. |
122 'use_legacy_ssl_defaults%': 0, | 122 'use_legacy_ssl_defaults%': 0, |
123 | 123 |
| 124 # Determines whether NEON code will be built. It might not be selected at |
| 125 # run-time. |
| 126 'build_with_neon%': 0, |
| 127 |
124 'conditions': [ | 128 'conditions': [ |
125 ['build_with_chromium==1', { | 129 ['build_with_chromium==1', { |
126 # Exclude pulse audio on Chromium since its prerequisites don't require | 130 # Exclude pulse audio on Chromium since its prerequisites don't require |
127 # pulse audio. | 131 # pulse audio. |
128 'include_pulse_audio%': 0, | 132 'include_pulse_audio%': 0, |
129 | 133 |
130 # Exclude internal ADM since Chromium uses its own IO handling. | 134 # Exclude internal ADM since Chromium uses its own IO handling. |
131 'include_internal_audio_device%': 0, | 135 'include_internal_audio_device%': 0, |
132 }, { # Settings for the standalone (not-in-Chromium) build. | 136 }, { # Settings for the standalone (not-in-Chromium) build. |
133 # TODO(andrew): For now, disable the Chrome plugins, which causes a | 137 # TODO(andrew): For now, disable the Chrome plugins, which causes a |
(...skipping 121 matching lines...) Loading... |
255 '-Wthread-safety', | 259 '-Wthread-safety', |
256 ], | 260 ], |
257 }], | 261 }], |
258 ], | 262 ], |
259 }], | 263 }], |
260 ['target_arch=="arm64"', { | 264 ['target_arch=="arm64"', { |
261 'defines': [ | 265 'defines': [ |
262 'WEBRTC_ARCH_ARM64', | 266 'WEBRTC_ARCH_ARM64', |
263 'WEBRTC_HAS_NEON', | 267 'WEBRTC_HAS_NEON', |
264 ], | 268 ], |
| 269 'variables': {'build_with_neon%': 1,}, |
265 }], | 270 }], |
266 ['target_arch=="arm"', { | 271 ['target_arch=="arm"', { |
267 'defines': [ | 272 'defines': [ |
268 'WEBRTC_ARCH_ARM', | 273 'WEBRTC_ARCH_ARM', |
269 ], | 274 ], |
270 'conditions': [ | 275 'conditions': [ |
271 ['arm_version>=7', { | 276 ['arm_version>=7', { |
272 'defines': ['WEBRTC_ARCH_ARM_V7',], | 277 'defines': ['WEBRTC_ARCH_ARM_V7',], |
273 'conditions': [ | 278 'conditions': [ |
274 ['arm_neon==1', { | 279 ['arm_neon==1', { |
275 'defines': ['WEBRTC_HAS_NEON',], | 280 'defines': ['WEBRTC_HAS_NEON',], |
| 281 'variables': {'build_with_neon%': 1,}, |
276 }], | 282 }], |
277 ['arm_neon==0 and arm_neon_optional==1', { | 283 ['arm_neon==0 and arm_neon_optional==1', { |
278 'defines': ['WEBRTC_DETECT_NEON',], | 284 'defines': ['WEBRTC_DETECT_NEON',], |
| 285 'variables': {'build_with_neon%': 1,}, |
279 }], | 286 }], |
280 ], | 287 ], |
281 }], | 288 }], |
282 ], | 289 ], |
283 }], | 290 }], |
284 ['target_arch=="mipsel" and mips_arch_variant!="r6"', { | 291 ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
285 'defines': [ | 292 'defines': [ |
286 'MIPS32_LE', | 293 'MIPS32_LE', |
287 ], | 294 ], |
288 'conditions': [ | 295 'conditions': [ |
(...skipping 142 matching lines...) Loading... |
431 # of a more specific macro. | 438 # of a more specific macro. |
432 'defines': [ | 439 'defines': [ |
433 'WEBRTC_POSIX', | 440 'WEBRTC_POSIX', |
434 ], | 441 ], |
435 }], | 442 }], |
436 ], | 443 ], |
437 }, | 444 }, |
438 }, # target_defaults | 445 }, # target_defaults |
439 } | 446 } |
440 | 447 |
OLD | NEW |