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 # TODO(wtc): change "mipselx" to "mipsel" in this file when the | 8 # TODO(wtc): change "mipselx" to "mipsel" in this file when the |
| 9 # compilation errors in the MIPS optimizations are fixed. | 9 # compilation errors in the MIPS optimizations are fixed. |
| 10 ['target_arch=="arm" or target_arch=="arm64" or target_arch=="mipselx"', { | 10 ['target_arch=="arm" or target_arch=="arm64" or target_arch=="mipselx"', { |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 }], | 24 }], |
| 25 ['target_arch=="arm" and (OS=="win" or OS=="android" or OS=="linux")', { | 25 ['target_arch=="arm" and (OS=="win" or OS=="android" or OS=="linux")', { |
| 26 # Based on the conditions in celt/arm/armcpu.c: | 26 # Based on the conditions in celt/arm/armcpu.c: |
| 27 # defined(_MSC_VER) || defined(__linux__). | 27 # defined(_MSC_VER) || defined(__linux__). |
| 28 'use_opus_rtcd%': 1, | 28 'use_opus_rtcd%': 1, |
| 29 }, { | 29 }, { |
| 30 'use_opus_rtcd%': 0, | 30 'use_opus_rtcd%': 0, |
| 31 }], | 31 }], |
| 32 ], | 32 ], |
| 33 }, | 33 }, |
| 34 'target_defaults': { | |
| 35 'target_conditions': [ | |
| 36 ['_type=="executable"', { | |
| 37 # All of the executable targets depend on 'opus'. Unfortunately the | |
| 38 # 'dependencies' block cannot be inherited via 'target_defaults'. | |
| 39 'include_dirs': [ | |
| 40 'src/celt', | |
| 41 'src/silk', | |
| 42 ], | |
| 43 'conditions': [ | |
| 44 ['OS == "win"', { | |
| 45 'defines': [ | |
| 46 'inline=__inline', | |
| 47 ], | |
| 48 }], | |
| 49 ['OS=="android"', { | |
| 50 'link_settings': { | |
|
wtc
2015/01/30 19:32:23
Just wanted to explain why I had to remove 'link_s
| |
| 51 'libraries': [ | |
| 52 '-llog', | |
| 53 ], | |
| 54 }, | |
| 55 }], | |
| 56 ['clang==1', { | |
| 57 'cflags': [ '-Wno-absolute-value' ], | |
| 58 }] | |
| 59 ], | |
| 60 }], | |
| 61 ], | |
| 62 }, | |
| 34 'targets': [ | 63 'targets': [ |
| 35 { | 64 { |
| 36 'target_name': 'opus', | 65 'target_name': 'opus', |
| 37 'type': 'static_library', | 66 'type': 'static_library', |
| 38 'defines': [ | 67 'defines': [ |
| 39 'OPUS_BUILD', | 68 'OPUS_BUILD', |
| 40 'OPUS_EXPORT=', | 69 'OPUS_EXPORT=', |
| 41 ], | 70 ], |
| 42 'include_dirs': [ | 71 'include_dirs': [ |
| 43 'src/celt', | 72 'src/celt', |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 ], | 173 ], |
| 145 }], | 174 }], |
| 146 ], | 175 ], |
| 147 }, # target opus | 176 }, # target opus |
| 148 { | 177 { |
| 149 'target_name': 'opus_compare', | 178 'target_name': 'opus_compare', |
| 150 'type': 'executable', | 179 'type': 'executable', |
| 151 'dependencies': [ | 180 'dependencies': [ |
| 152 'opus' | 181 'opus' |
| 153 ], | 182 ], |
| 154 'conditions': [ | |
| 155 ['OS == "win"', { | |
| 156 'defines': [ | |
| 157 'inline=__inline', | |
| 158 ], | |
| 159 }], | |
| 160 ['OS=="android"', { | |
| 161 'link_settings': { | |
| 162 'libraries': [ | |
| 163 '-llog', | |
| 164 ], | |
| 165 }, | |
| 166 }], | |
| 167 ['clang==1', { | |
| 168 'cflags': [ '-Wno-absolute-value' ], | |
| 169 }] | |
| 170 ], | |
| 171 'sources': [ | 183 'sources': [ |
| 172 'src/src/opus_compare.c', | 184 'src/src/opus_compare.c', |
| 173 ], | 185 ], |
| 174 'include_dirs': [ | |
| 175 'src/celt', | |
| 176 'src/silk', | |
| 177 ], | |
| 178 }, # target opus_compare | 186 }, # target opus_compare |
| 179 { | 187 { |
| 180 'target_name': 'opus_demo', | 188 'target_name': 'opus_demo', |
| 181 'type': 'executable', | 189 'type': 'executable', |
| 182 'dependencies': [ | 190 'dependencies': [ |
| 183 'opus' | 191 'opus' |
| 184 ], | 192 ], |
| 185 'conditions': [ | |
| 186 ['OS == "win"', { | |
| 187 'defines': [ | |
| 188 'inline=__inline', | |
| 189 ], | |
| 190 }], | |
| 191 ['OS=="android"', { | |
| 192 'link_settings': { | |
| 193 'libraries': [ | |
| 194 '-llog', | |
| 195 ], | |
| 196 }, | |
| 197 }], | |
| 198 ['clang==1', { | |
| 199 'cflags': [ '-Wno-absolute-value' ], | |
| 200 }] | |
| 201 ], | |
| 202 'sources': [ | 193 'sources': [ |
| 203 'src/src/opus_demo.c', | 194 'src/src/opus_demo.c', |
| 204 ], | 195 ], |
| 205 'include_dirs': [ | 196 }, # target opus_demo |
| 206 'src/celt', | 197 { |
| 207 'src/silk', | 198 'target_name': 'test_opus_api', |
| 199 'type': 'executable', | |
| 200 'dependencies': [ | |
| 201 'opus' | |
| 208 ], | 202 ], |
| 209 }, # target opus_demo | 203 'sources': [ |
| 204 'src/tests/test_opus_api.c', | |
| 205 ], | |
| 206 }, # target test_opus_api | |
| 207 { | |
| 208 'target_name': 'test_opus_encode', | |
| 209 'type': 'executable', | |
| 210 'dependencies': [ | |
| 211 'opus' | |
| 212 ], | |
| 213 'sources': [ | |
| 214 'src/tests/test_opus_encode.c', | |
| 215 ], | |
| 216 }, # target test_opus_encode | |
| 217 { | |
| 218 'target_name': 'test_opus_decode', | |
| 219 'type': 'executable', | |
| 220 'dependencies': [ | |
| 221 'opus' | |
| 222 ], | |
| 223 'sources': [ | |
| 224 'src/tests/test_opus_decode.c', | |
| 225 ], | |
| 226 }, # target test_opus_decode | |
| 227 { | |
| 228 'target_name': 'test_opus_padding', | |
| 229 'type': 'executable', | |
| 230 'dependencies': [ | |
| 231 'opus' | |
| 232 ], | |
| 233 'sources': [ | |
| 234 'src/tests/test_opus_padding.c', | |
| 235 ], | |
| 236 }, # target test_opus_padding | |
| 210 ] | 237 ] |
| 211 } | 238 } |
| OLD | NEW |