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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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': [
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
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 '
530 '"\'-Dav_frame_get_channels(frame)=(av_get_channel_layout_nb_cha nnels('
531 'frame->channel_layout))\'")',
520 ], 532 ],
521 }], 533 }],
522 ['OS == "ios"', { 534 ['OS == "ios"', {
523 'includes': [ 535 'includes': [
524 # For shared_memory_support_sources variable. 536 # For shared_memory_support_sources variable.
525 'shared_memory_support.gypi', 537 'shared_memory_support.gypi',
526 ], 538 ],
527 'sources': [ 539 'sources': [
528 'base/media_stub.cc', 540 'base/media_stub.cc',
529 # These sources are normally built via a dependency on the 541 # These sources are normally built via a dependency on the
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 ], 1701 ],
1690 'sources': [ 1702 'sources': [
1691 'base/simd/sinc_resampler_sse.cc', 1703 'base/simd/sinc_resampler_sse.cc',
1692 'base/simd/vector_math_sse.cc', 1704 'base/simd/vector_math_sse.cc',
1693 ], 1705 ],
1694 }, # end of target media_sse 1706 }, # end of target media_sse
1695 ], 1707 ],
1696 }], 1708 }],
1697 ], 1709 ],
1698 } 1710 }
OLDNEW
« 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