OLD | NEW |
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 'target_defaults': { |
| 7 'variables': { |
| 8 # Performance gains are substantial on ARM (v7,v8) with -O3 over the |
| 9 # default -Os configured in common.gypi. |
| 10 'release_optimize': '3', |
| 11 'debug_optimize': '3', |
| 12 }, |
| 13 }, |
6 'variables': { | 14 'variables': { |
7 'conditions': [ | 15 'conditions': [ |
8 ['((OS=="android" or chromeos==1) and target_arch=="arm") or (OS=="ios" an
d target_arch=="armv7")', { | 16 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', { |
9 'use_opus_fixed_point%': 1, | 17 'use_opus_fixed_point%': 1, |
| 18 }, { |
| 19 'use_opus_fixed_point%': 0, |
| 20 }], |
| 21 ['target_arch=="arm" or target_arch=="armv7"', { |
10 'use_opus_arm_optimization%': 1, | 22 'use_opus_arm_optimization%': 1, |
11 }, { | 23 }, { |
12 'use_opus_fixed_point%': 0, | |
13 'use_opus_arm_optimization%': 0, | 24 'use_opus_arm_optimization%': 0, |
14 }], | 25 }], |
15 ['(OS=="android" or chromeos==1) and target_arch=="arm"', { | 26 ['target_arch=="arm"', { |
16 'use_opus_rtcd%': 1, | 27 'use_opus_rtcd%': 1, |
17 }, { | 28 }, { |
18 'use_opus_rtcd%': 0, | 29 'use_opus_rtcd%': 0, |
19 }], | 30 }], |
20 ], | 31 ], |
21 }, | 32 }, |
22 'targets': [ | 33 'targets': [ |
23 { | 34 { |
24 'target_name': 'opus', | 35 'target_name': 'opus', |
25 'type': 'static_library', | 36 'type': 'static_library', |
(...skipping 22 matching lines...) Expand all Loading... |
48 }, { | 59 }, { |
49 'defines': [ | 60 'defines': [ |
50 'USE_ALLOCA', | 61 'USE_ALLOCA', |
51 'inline=__inline', | 62 'inline=__inline', |
52 ], | 63 ], |
53 'msvs_disabled_warnings': [ | 64 'msvs_disabled_warnings': [ |
54 4305, # Disable truncation warning in celt/pitch.c . | 65 4305, # Disable truncation warning in celt/pitch.c . |
55 4334, # Disable 32-bit shift warning in src/opus_encoder.c . | 66 4334, # Disable 32-bit shift warning in src/opus_encoder.c . |
56 ], | 67 ], |
57 }], | 68 }], |
58 [ 'os_posix==1 and OS!="android"', { | 69 ['os_posix==1 and OS!="android"', { |
59 # Suppress a warning given by opus_decoder.c that tells us | 70 # Suppress a warning given by opus_decoder.c that tells us |
60 # optimizations are turned off. | 71 # optimizations are turned off. |
61 'cflags': [ | 72 'cflags': [ |
62 '-Wno-#pragma-messages', | 73 '-Wno-#pragma-messages', |
63 ], | 74 ], |
64 'xcode_settings': { | 75 'xcode_settings': { |
65 'WARNING_CFLAGS': [ | 76 'WARNING_CFLAGS': [ |
66 '-Wno-#pragma-messages', | 77 '-Wno-#pragma-messages', |
67 ], | 78 ], |
68 }, | 79 }, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 'sources': [ | 146 'sources': [ |
136 'src/src/opus_demo.c', | 147 'src/src/opus_demo.c', |
137 ], | 148 ], |
138 'include_dirs': [ | 149 'include_dirs': [ |
139 'src/celt', | 150 'src/celt', |
140 'src/silk', | 151 'src/silk', |
141 ], | 152 ], |
142 }, # target opus_demo | 153 }, # target opus_demo |
143 ] | 154 ] |
144 } | 155 } |
OLD | NEW |