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

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: varz 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
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index 0f836bcd969f519508d7ea396e3ae71f624d8970..ea0e615b701c946d05aef2473edae672cc3f6f7c 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -508,15 +508,25 @@
],
}],
['use_system_ffmpeg == 1', {
- 'defines': [
+ 'cflags': [
'<!(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 -DCHROMIUM_NO_AVFRAME_CHANNELS=1)',
],
}],
['OS == "ios"', {
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698