Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: media/media.gyp

Issue 13991013: Linux: make it possible to compile against libav when use_system_ffmpeg==1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tabs Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"', {
« media/filters/audio_file_reader.cc ('K') | « media/filters/ffmpeg_audio_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698