Index: media/media.gyp |
diff --git a/media/media.gyp b/media/media.gyp |
index 0f836bcd969f519508d7ea396e3ae71f624d8970..b526beaa98915f1de6b7b233b0fc68745ff735d1 100644 |
--- a/media/media.gyp |
+++ b/media/media.gyp |
@@ -508,15 +508,27 @@ |
], |
}], |
['use_system_ffmpeg == 1', { |
- 'defines': [ |
+ 'cflags': [ |
DaleCurtis
2013/04/15 23:12:53
This section is pretty different than the previous
Paweł Hajdan Jr.
2013/04/15 23:51:49
defines -> cflags avoids a problem with gyp append
DaleCurtis
2013/04/16 20:46:56
Can you put the #define and #include in a variable
Paweł Hajdan Jr.
2013/04/16 20:59:36
I could technically, but unless you insist I'd pre
|
'<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
- '--code "#include <libavcodec/avcodec.h>\n' |
+ '--code "#define __STDC_CONSTANT_MACROS\n' |
+ '#include <libavcodec/avcodec.h>\n' |
'int test() { return AV_CODEC_ID_OPUS; }" ' |
- '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_OPUS)', |
+ '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_OPUS=1)', |
+ |
'<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
- '--code "#include <libavcodec/avcodec.h>\n' |
+ '--code "#define __STDC_CONSTANT_MACROS\n' |
+ '#include <libavcodec/avcodec.h>\n' |
'int test() { return AV_CODEC_ID_VP9; }" ' |
- '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_VP9)', |
+ '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_VP9=1)', |
+ |
+ '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
+ '--code "#define __STDC_CONSTANT_MACROS\n' |
+ '#include <libavcodec/avcodec.h>\n' |
+ 'int test() { struct AVFrame frame;\n' |
+ 'return av_frame_get_channels(&frame); }" ' |
+ '--on-failure ' |
+ '"\'-Dav_frame_get_channels(frame)=(av_get_channel_layout_nb_channels(' |
+ 'frame->channel_layout))\'")', |
], |
}], |
['OS == "ios"', { |