OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'ffmpeg', | 8 'target_name': 'ffmpeg', |
9 'type': 'none', | 9 'type': 'none', |
10 'direct_dependent_settings': { | 10 'direct_dependent_settings': { |
11 'cflags': [ | 11 'cflags': [ |
12 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', | 12 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', |
| 13 |
| 14 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 15 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 16 '#include <libavcodec/avcodec.h>\n' |
| 17 'int test() { return AV_CODEC_ID_OPUS; }" ' |
| 18 '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_OPUS=1)', |
| 19 |
| 20 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 21 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 22 '#include <libavcodec/avcodec.h>\n' |
| 23 'int test() { return AV_CODEC_ID_VP9; }" ' |
| 24 '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_VP9=1)', |
| 25 |
| 26 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 27 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 28 '#include <libavcodec/avcodec.h>\n' |
| 29 'int test() { return AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL; }" ' |
| 30 '--on-failure -DCHROMIUM_OMIT_AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL
=1)', |
| 31 |
| 32 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 33 '--code "#define __STDC_CONSTANT_MACROS\n' |
| 34 '#include <libavcodec/avcodec.h>\n' |
| 35 'int test() { struct AVFrame frame;\n' |
| 36 'return av_frame_get_channels(&frame); }" ' |
| 37 '--on-failure -DCHROMIUM_NO_AVFRAME_CHANNELS=1)', |
13 ], | 38 ], |
14 'defines': [ | 39 'defines': [ |
15 '__STDC_CONSTANT_MACROS', | 40 '__STDC_CONSTANT_MACROS', |
16 'USE_SYSTEM_FFMPEG', | 41 'USE_SYSTEM_FFMPEG', |
17 ], | 42 ], |
18 }, | 43 }, |
19 'link_settings': { | 44 'link_settings': { |
20 'ldflags': [ | 45 'ldflags': [ |
21 '<!@(pkg-config --libs-only-L --libs-only-other libavcodec libavformat
libavutil)', | 46 '<!@(pkg-config --libs-only-L --libs-only-other libavcodec libavformat
libavutil)', |
22 ], | 47 ], |
23 'libraries': [ | 48 'libraries': [ |
24 '<!@(pkg-config --libs-only-l libavcodec libavformat libavutil)', | 49 '<!@(pkg-config --libs-only-l libavcodec libavformat libavutil)', |
25 ], | 50 ], |
26 }, | 51 }, |
27 }, | 52 }, |
28 ], | 53 ], |
29 } | 54 } |
OLD | NEW |