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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 }] | 200 }] |
201 ], | 201 ], |
202 'sources': [ | 202 'sources': [ |
203 'src/src/opus_demo.c', | 203 'src/src/opus_demo.c', |
204 ], | 204 ], |
205 'include_dirs': [ | 205 'include_dirs': [ |
206 'src/celt', | 206 'src/celt', |
207 'src/silk', | 207 'src/silk', |
208 ], | 208 ], |
209 }, # target opus_demo | 209 }, # target opus_demo |
210 { | |
211 'target_name': 'test_opus_api', | |
212 'type': 'executable', | |
213 'dependencies': [ | |
214 'opus' | |
215 ], | |
216 'conditions': [ | |
217 ['OS == "win"', { | |
218 'defines': [ | |
Sergey Ulanov
2015/01/29 18:12:20
maybe put this in target_defaults?
Same for androi
wtc
2015/01/29 21:11:33
Done. Thanks a lot for the suggestion.
| |
219 'inline=__inline', | |
220 ], | |
221 }], | |
222 ['OS=="android"', { | |
223 'link_settings': { | |
224 'libraries': [ | |
225 '-llog', | |
226 ], | |
227 }, | |
228 }], | |
229 ['clang==1', { | |
230 'cflags': [ '-Wno-absolute-value' ], | |
231 }] | |
232 ], | |
233 'sources': [ | |
234 'src/tests/test_opus_api.c', | |
235 ], | |
236 'include_dirs': [ | |
237 'src/celt', | |
238 'src/silk', | |
239 ], | |
240 }, # target test_opus_api | |
241 { | |
242 'target_name': 'test_opus_encode', | |
243 'type': 'executable', | |
244 'dependencies': [ | |
245 'opus' | |
246 ], | |
247 'conditions': [ | |
248 ['OS == "win"', { | |
249 'defines': [ | |
250 'inline=__inline', | |
251 ], | |
252 }], | |
253 ['OS=="android"', { | |
254 'link_settings': { | |
255 'libraries': [ | |
256 '-llog', | |
257 ], | |
258 }, | |
259 }], | |
260 ['clang==1', { | |
261 'cflags': [ '-Wno-absolute-value' ], | |
262 }] | |
263 ], | |
264 'sources': [ | |
265 'src/tests/test_opus_encode.c', | |
266 ], | |
267 'include_dirs': [ | |
268 'src/celt', | |
269 'src/silk', | |
270 ], | |
271 }, # target test_opus_encode | |
272 { | |
273 'target_name': 'test_opus_decode', | |
274 'type': 'executable', | |
275 'dependencies': [ | |
276 'opus' | |
277 ], | |
278 'conditions': [ | |
279 ['OS == "win"', { | |
280 'defines': [ | |
281 'inline=__inline', | |
282 ], | |
283 }], | |
284 ['OS=="android"', { | |
285 'link_settings': { | |
286 'libraries': [ | |
287 '-llog', | |
288 ], | |
289 }, | |
290 }], | |
291 ['clang==1', { | |
292 'cflags': [ '-Wno-absolute-value' ], | |
293 }] | |
294 ], | |
295 'sources': [ | |
296 'src/tests/test_opus_decode.c', | |
297 ], | |
298 'include_dirs': [ | |
299 'src/celt', | |
300 'src/silk', | |
301 ], | |
302 }, # target test_opus_decode | |
303 { | |
304 'target_name': 'test_opus_padding', | |
305 'type': 'executable', | |
306 'dependencies': [ | |
307 'opus' | |
308 ], | |
309 'conditions': [ | |
310 ['OS == "win"', { | |
311 'defines': [ | |
312 'inline=__inline', | |
313 ], | |
314 }], | |
315 ['OS=="android"', { | |
316 'link_settings': { | |
317 'libraries': [ | |
318 '-llog', | |
319 ], | |
320 }, | |
321 }], | |
322 ['clang==1', { | |
323 'cflags': [ '-Wno-absolute-value' ], | |
324 }] | |
325 ], | |
326 'sources': [ | |
327 'src/tests/test_opus_padding.c', | |
328 ], | |
329 'include_dirs': [ | |
330 'src/celt', | |
331 'src/silk', | |
332 ], | |
333 }, # target test_opus_padding | |
210 ] | 334 ] |
211 } | 335 } |
OLD | NEW |