OLD | NEW |
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 PulseAudio library. | 8 # Override to dynamically link the PulseAudio library. |
9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
10 # Override to dynamically link the cras (ChromeOS audio) library. | 10 # Override to dynamically link the cras (ChromeOS audio) library. |
11 'use_cras%': 0, | 11 'use_cras%': 0, |
12 'conditions': [ | 12 'conditions': [ |
13 ['OS == "android" or OS == "ios"', { | 13 ['OS == "android" or OS == "ios"', { |
14 # Android and iOS don't use ffmpeg. | 14 # Android and iOS don't use ffmpeg. |
15 'use_ffmpeg%': 0, | 15 'use_ffmpeg%': 0, |
| 16 # Android and iOS don't use libvpx. |
| 17 'use_libvpx%': 0, |
16 }, { # 'OS != "android" and OS != "ios"' | 18 }, { # 'OS != "android" and OS != "ios"' |
17 'use_ffmpeg%': 1, | 19 'use_ffmpeg%': 1, |
| 20 'use_libvpx%': 1, |
18 }], | 21 }], |
19 ], | 22 ], |
20 }, | 23 }, |
21 'targets': [ | 24 'targets': [ |
22 { | 25 { |
23 'target_name': 'media', | 26 'target_name': 'media', |
24 'type': '<(component)', | 27 'type': '<(component)', |
25 'dependencies': [ | 28 'dependencies': [ |
26 '../base/base.gyp:base', | 29 '../base/base.gyp:base', |
27 '../build/temp_gyp/googleurl.gyp:googleurl', | 30 '../build/temp_gyp/googleurl.gyp:googleurl', |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 'filters/skcanvas_video_renderer.cc', | 310 'filters/skcanvas_video_renderer.cc', |
308 'filters/skcanvas_video_renderer.h', | 311 'filters/skcanvas_video_renderer.h', |
309 'filters/source_buffer_stream.cc', | 312 'filters/source_buffer_stream.cc', |
310 'filters/source_buffer_stream.h', | 313 'filters/source_buffer_stream.h', |
311 'filters/video_decoder_selector.cc', | 314 'filters/video_decoder_selector.cc', |
312 'filters/video_decoder_selector.h', | 315 'filters/video_decoder_selector.h', |
313 'filters/video_frame_generator.cc', | 316 'filters/video_frame_generator.cc', |
314 'filters/video_frame_generator.h', | 317 'filters/video_frame_generator.h', |
315 'filters/video_renderer_base.cc', | 318 'filters/video_renderer_base.cc', |
316 'filters/video_renderer_base.h', | 319 'filters/video_renderer_base.h', |
| 320 'filters/vpx_video_decoder.cc', |
| 321 'filters/vpx_video_decoder.h', |
317 'video/capture/fake_video_capture_device.cc', | 322 'video/capture/fake_video_capture_device.cc', |
318 'video/capture/fake_video_capture_device.h', | 323 'video/capture/fake_video_capture_device.h', |
319 'video/capture/linux/video_capture_device_linux.cc', | 324 'video/capture/linux/video_capture_device_linux.cc', |
320 'video/capture/linux/video_capture_device_linux.h', | 325 'video/capture/linux/video_capture_device_linux.h', |
321 'video/capture/mac/video_capture_device_mac.h', | 326 'video/capture/mac/video_capture_device_mac.h', |
322 'video/capture/mac/video_capture_device_mac.mm', | 327 'video/capture/mac/video_capture_device_mac.mm', |
323 'video/capture/mac/video_capture_device_qtkit_mac.h', | 328 'video/capture/mac/video_capture_device_qtkit_mac.h', |
324 'video/capture/mac/video_capture_device_qtkit_mac.mm', | 329 'video/capture/mac/video_capture_device_qtkit_mac.mm', |
325 'video/capture/video_capture.h', | 330 'video/capture/video_capture.h', |
326 'video/capture/video_capture_device.h', | 331 'video/capture/video_capture_device.h', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', | 412 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', |
408 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', | 413 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', |
409 'filters/ffmpeg_video_decoder.cc', | 414 'filters/ffmpeg_video_decoder.cc', |
410 'filters/ffmpeg_video_decoder.h', | 415 'filters/ffmpeg_video_decoder.h', |
411 'webm/webm_cluster_parser.cc', | 416 'webm/webm_cluster_parser.cc', |
412 'webm/webm_cluster_parser.h', | 417 'webm/webm_cluster_parser.h', |
413 'webm/webm_stream_parser.cc', | 418 'webm/webm_stream_parser.cc', |
414 'webm/webm_stream_parser.h', | 419 'webm/webm_stream_parser.h', |
415 ], | 420 ], |
416 }], | 421 }], |
| 422 ['use_libvpx == 1', { |
| 423 'dependencies': [ |
| 424 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 425 ], |
| 426 }, { # use_libvpx == 0 |
| 427 # Exclude the sources that depend on libvpx. |
| 428 'sources!': [ |
| 429 'filters/vpx_video_decoder.cc', |
| 430 'filters/vpx_video_decoder.h', |
| 431 ], |
| 432 }], |
417 ['OS == "ios"', { | 433 ['OS == "ios"', { |
418 'includes': [ | 434 'includes': [ |
419 # For shared_memory_support_sources variable. | 435 # For shared_memory_support_sources variable. |
420 'shared_memory_support.gypi', | 436 'shared_memory_support.gypi', |
421 ], | 437 ], |
422 'sources': [ | 438 'sources': [ |
423 'base/media_stub.cc', | 439 'base/media_stub.cc', |
424 # These sources are normally built via a dependency on the | 440 # These sources are normally built via a dependency on the |
425 # shared_memory_support target, but that target is not built on iOS. | 441 # shared_memory_support target, but that target is not built on iOS. |
426 # Instead, directly build only the files that are needed for iOS. | 442 # Instead, directly build only the files that are needed for iOS. |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 'media', | 1383 'media', |
1368 ], | 1384 ], |
1369 'sources': [ | 1385 'sources': [ |
1370 'tools/media_bench/media_bench.cc', | 1386 'tools/media_bench/media_bench.cc', |
1371 ], | 1387 ], |
1372 }, | 1388 }, |
1373 ], | 1389 ], |
1374 }] | 1390 }] |
1375 ], | 1391 ], |
1376 } | 1392 } |
OLD | NEW |