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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 # Override to dynamically link the cras (ChromeOS audio) library. | 8 # Override to dynamically link the cras (ChromeOS audio) library. |
9 'use_cras%': 0, | 9 'use_cras%': 0, |
10 # Option e.g. for Linux distributions to link pulseaudio directly | 10 # Option e.g. for Linux distributions to link pulseaudio directly |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 'MEDIA_DISABLE_LIBVPX', | 501 'MEDIA_DISABLE_LIBVPX', |
502 ], | 502 ], |
503 }, | 503 }, |
504 # Exclude the sources that depend on libvpx. | 504 # Exclude the sources that depend on libvpx. |
505 'sources!': [ | 505 'sources!': [ |
506 'filters/vpx_video_decoder.cc', | 506 'filters/vpx_video_decoder.cc', |
507 'filters/vpx_video_decoder.h', | 507 'filters/vpx_video_decoder.h', |
508 ], | 508 ], |
509 }], | 509 }], |
510 ['use_system_ffmpeg == 1', { | 510 ['use_system_ffmpeg == 1', { |
511 'defines': [ | 511 'cflags': [ |
512 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' | 512 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
513 '--code "#include <libavcodec/avcodec.h>\n' | 513 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 514 '#include <libavcodec/avcodec.h>\n' |
514 'int test() { return AV_CODEC_ID_OPUS; }" ' | 515 'int test() { return AV_CODEC_ID_OPUS; }" ' |
515 '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_OPUS)', | 516 '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_OPUS=1)', |
| 517 |
516 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' | 518 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
517 '--code "#include <libavcodec/avcodec.h>\n' | 519 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 520 '#include <libavcodec/avcodec.h>\n' |
518 'int test() { return AV_CODEC_ID_VP9; }" ' | 521 'int test() { return AV_CODEC_ID_VP9; }" ' |
519 '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_VP9)', | 522 '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_VP9=1)', |
| 523 |
| 524 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 525 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 526 '#include <libavcodec/avcodec.h>\n' |
| 527 'int test() { struct AVFrame frame;\n' |
| 528 'return av_frame_get_channels(&frame); }" ' |
| 529 '--on-failure -DCHROMIUM_NO_AVFRAME_CHANNELS=1)', |
520 ], | 530 ], |
521 }], | 531 }], |
522 ['OS == "ios"', { | 532 ['OS == "ios"', { |
523 'includes': [ | 533 'includes': [ |
524 # For shared_memory_support_sources variable. | 534 # For shared_memory_support_sources variable. |
525 'shared_memory_support.gypi', | 535 'shared_memory_support.gypi', |
526 ], | 536 ], |
527 'sources': [ | 537 'sources': [ |
528 'base/media_stub.cc', | 538 'base/media_stub.cc', |
529 # These sources are normally built via a dependency on the | 539 # These sources are normally built via a dependency on the |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 ], | 1699 ], |
1690 'sources': [ | 1700 'sources': [ |
1691 'base/simd/sinc_resampler_sse.cc', | 1701 'base/simd/sinc_resampler_sse.cc', |
1692 'base/simd/vector_math_sse.cc', | 1702 'base/simd/vector_math_sse.cc', |
1693 ], | 1703 ], |
1694 }, # end of target media_sse | 1704 }, # end of target media_sse |
1695 ], | 1705 ], |
1696 }], | 1706 }], |
1697 ], | 1707 ], |
1698 } | 1708 } |
OLD | NEW |