Chromium Code Reviews| 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 'variables': { | 6 'variables': { |
| 7 'conditions': [ | 7 'conditions': [ |
| 8 ['(OS=="android" or chromeos==1) and target_arch=="arm"', { | 8 ['(OS=="android" or chromeos==1) and target_arch=="arm"', { |
| 9 'use_opus_fixed_point%': 1, | 9 'use_opus_fixed_point%': 1, |
| 10 'use_opus_arm_optimization%': 1, | 10 'use_opus_arm_optimization%': 1, |
| 11 'use_opus_rtcd%': 1, | |
| 11 }, { | 12 }, { |
| 12 'use_opus_fixed_point%': 0, | 13 'use_opus_fixed_point%': 0, |
| 13 'use_opus_arm_optimization%': 0, | 14 'use_opus_arm_optimization%': 0, |
| 15 'use_opus_rtcd%': 0, | |
| 16 }], | |
| 17 ['OS=="ios"', { | |
|
tlegrand1
2014/04/14 15:30:58
Do we need to specify ARM here, or do iOS implicit
Sergey Ulanov
2014/04/14 21:42:13
I think we do. iOS emulator build are normally com
tlegrand1
2014/04/15 14:15:21
Thanks, didn't know that.
On 2014/04/14 21:42:13,
| |
| 18 'use_opus_fixed_point%': 1, | |
| 19 'use_opus_arm_optimization%': 1, | |
| 20 'use_opus_rtcd%': 0, | |
| 21 }, { | |
| 22 'use_opus_fixed_point%': 0, | |
|
Sergey Ulanov
2014/04/14 21:42:13
this duplicates lines 13-15. I suggest formatting
tlegrand1
2014/04/15 14:15:21
Needed to specify armv7 for ios.
On 2014/04/14 21:
| |
| 23 'use_opus_arm_optimization%': 0, | |
| 24 'use_opus_rtcd%': 0, | |
| 14 }], | 25 }], |
| 15 ], | 26 ], |
| 16 }, | 27 }, |
| 17 'targets': [ | 28 'targets': [ |
| 18 { | 29 { |
| 19 'target_name': 'opus', | 30 'target_name': 'opus', |
| 20 'type': 'static_library', | 31 'type': 'static_library', |
| 21 'defines': [ | 32 'defines': [ |
| 22 'OPUS_BUILD', | 33 'OPUS_BUILD', |
| 23 'OPUS_EXPORT=', | 34 'OPUS_EXPORT=', |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 ], | 89 ], |
| 79 'sources/': [ | 90 'sources/': [ |
| 80 ['exclude', '/float/[^/]*_FLP.(h|c)$'], | 91 ['exclude', '/float/[^/]*_FLP.(h|c)$'], |
| 81 ], | 92 ], |
| 82 'conditions': [ | 93 'conditions': [ |
| 83 ['use_opus_arm_optimization==1', { | 94 ['use_opus_arm_optimization==1', { |
| 84 'defines': [ | 95 'defines': [ |
| 85 'OPUS_ARM_ASM', | 96 'OPUS_ARM_ASM', |
| 86 'OPUS_ARM_INLINE_ASM', | 97 'OPUS_ARM_INLINE_ASM', |
| 87 'OPUS_ARM_INLINE_EDSP', | 98 'OPUS_ARM_INLINE_EDSP', |
| 88 'OPUS_ARM_MAY_HAVE_EDSP', | |
| 89 'OPUS_ARM_MAY_HAVE_MEDIA', | |
| 90 'OPUS_ARM_MAY_HAVE_NEON', | |
| 91 'OPUS_HAVE_RTCD', | |
| 92 ], | 99 ], |
| 93 'includes': [ | 100 'includes': [ |
| 94 'opus_srcs_arm.gypi', | 101 'opus_srcs_arm.gypi', |
| 95 ], | 102 ], |
| 103 'conditions': [ | |
| 104 ['use_opus_rtcd==1', { | |
| 105 'defines': [ | |
| 106 'OPUS_ARM_MAY_HAVE_EDSP', | |
| 107 'OPUS_ARM_MAY_HAVE_MEDIA', | |
| 108 'OPUS_ARM_MAY_HAVE_NEON', | |
| 109 'OPUS_HAVE_RTCD', | |
| 110 ], | |
| 111 'includes': [ | |
| 112 'opus_srcs_rtcd.gypi', | |
| 113 ], | |
| 114 }], | |
| 115 ], | |
| 96 }], | 116 }], |
| 97 ], | 117 ], |
| 98 }], | 118 }], |
| 99 ], | 119 ], |
| 100 }, # target opus | 120 }, # target opus |
| 101 { | 121 { |
| 102 'target_name': 'opus_demo', | 122 'target_name': 'opus_demo', |
| 103 'type': 'executable', | 123 'type': 'executable', |
| 104 'dependencies': [ | 124 'dependencies': [ |
| 105 'opus' | 125 'opus' |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 121 'sources': [ | 141 'sources': [ |
| 122 'src/src/opus_demo.c', | 142 'src/src/opus_demo.c', |
| 123 ], | 143 ], |
| 124 'include_dirs': [ | 144 'include_dirs': [ |
| 125 'src/celt', | 145 'src/celt', |
| 126 'src/silk', | 146 'src/silk', |
| 127 ], | 147 ], |
| 128 }, # target opus_demo | 148 }, # target opus_demo |
| 129 ] | 149 ] |
| 130 } | 150 } |
| OLD | NEW |