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"', { | 8 ['OS=="android" or chromeos==1', { |
| 9 'use_opus_fixed_point%': 1, | 9 'use_opus_fixed_point%': 1, |
|
Sergey Ulanov
2014/03/19 19:21:51
This will enable fixed-point math on Intel Chromeb
tlegrand1
2014/03/20 10:11:01
I wanted to preserve the previous setting for Andr
| |
| 10 'conditions': [ | |
| 11 ['target_arch=="arm"', { | |
| 12 'use_opus_arm_optimization%': 1, | |
| 13 }, { | |
| 14 'use_opus_arm_optimization%': 0, | |
| 15 }], | |
| 16 ], | |
| 10 }, { | 17 }, { |
| 11 'use_opus_fixed_point%': 0, | 18 'use_opus_fixed_point%': 0, |
| 19 'use_opus_arm_optimization%': 0, | |
| 12 }], | 20 }], |
| 13 ], | 21 ], |
| 14 }, | 22 }, |
| 15 'targets': [ | 23 'targets': [ |
| 16 { | 24 { |
| 17 'target_name': 'opus', | 25 'target_name': 'opus', |
| 18 'type': 'static_library', | 26 'type': 'static_library', |
| 19 'defines': [ | 27 'defines': [ |
| 20 'OPUS_BUILD', | 28 'OPUS_BUILD', |
| 21 'OPUS_EXPORT=', | 29 'OPUS_EXPORT=', |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 }, { | 66 }, { |
| 59 'defines': [ | 67 'defines': [ |
| 60 'FIXED_POINT', | 68 'FIXED_POINT', |
| 61 ], | 69 ], |
| 62 'include_dirs': [ | 70 'include_dirs': [ |
| 63 'src/silk/fixed', | 71 'src/silk/fixed', |
| 64 ], | 72 ], |
| 65 'sources/': [ | 73 'sources/': [ |
| 66 ['exclude', '/float/[^/]*_FLP.(h|c)$'], | 74 ['exclude', '/float/[^/]*_FLP.(h|c)$'], |
| 67 ], | 75 ], |
| 76 'conditions': [ | |
| 77 ['use_opus_arm_optimization==1', { | |
| 78 'defines': [ | |
| 79 'OPUS_ARM_ASM', | |
| 80 'OPUS_ARM_INLINE_ASM', | |
| 81 'OPUS_ARM_INLINE_EDSP', | |
| 82 'OPUS_ARM_MAY_HAVE_EDSP', | |
| 83 'OPUS_ARM_MAY_HAVE_MEDIA', | |
| 84 'OPUS_ARM_MAY_HAVE_NEON', | |
| 85 'OPUS_HAVE_RTCD', | |
| 86 ], | |
| 87 'includes': [ | |
| 88 'opus_arm_srcs.gypi', | |
| 89 ], | |
| 90 }], | |
| 91 ], | |
| 68 }], | 92 }], |
| 69 ], | 93 ], |
| 70 }, # target opus | 94 }, |
| 71 { | 95 { |
| 72 'target_name': 'opus_demo', | 96 'target_name': 'opus_demo', |
| 73 'type': 'executable', | 97 'type': 'executable', |
| 74 'dependencies': [ | 98 'dependencies': [ |
| 75 'opus' | 99 'opus' |
| 76 ], | 100 ], |
| 77 'conditions': [ | 101 'conditions': [ |
| 78 ['OS == "win"', { | 102 ['OS == "win"', { |
| 79 'defines': [ | 103 'defines': [ |
| 80 'inline=__inline', | 104 'inline=__inline', |
| 81 ], | 105 ], |
| 82 }], | 106 }], |
| 83 ['OS=="android"', { | 107 ['OS=="android"', { |
| 84 'link_settings': { | 108 'link_settings': { |
| 85 'libraries': [ | 109 'libraries': [ |
| 86 '-llog', | 110 '-llog', |
| 87 ], | 111 ], |
| 88 }, | 112 }, |
| 89 }] | 113 }] |
| 90 ], | 114 ], |
| 91 'sources': [ | 115 'sources': [ |
| 92 'src/src/opus_demo.c', | 116 'src/src/opus_demo.c', |
| 93 ], | 117 ], |
| 94 'include_dirs': [ | 118 'include_dirs': [ |
| 95 'src/celt', | 119 'src/celt', |
| 96 'src/silk', | 120 'src/silk', |
| 97 ], | 121 ], |
| 98 }, # target opus_demo | 122 }, |
| 99 ] | 123 ] |
| 100 } | 124 } |
| OLD | NEW |