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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 'filters/skcanvas_video_renderer.cc', | 309 'filters/skcanvas_video_renderer.cc', |
307 'filters/skcanvas_video_renderer.h', | 310 'filters/skcanvas_video_renderer.h', |
308 'filters/source_buffer_stream.cc', | 311 'filters/source_buffer_stream.cc', |
309 'filters/source_buffer_stream.h', | 312 'filters/source_buffer_stream.h', |
310 'filters/video_decoder_selector.cc', | 313 'filters/video_decoder_selector.cc', |
311 'filters/video_decoder_selector.h', | 314 'filters/video_decoder_selector.h', |
312 'filters/video_frame_generator.cc', | 315 'filters/video_frame_generator.cc', |
313 'filters/video_frame_generator.h', | 316 'filters/video_frame_generator.h', |
314 'filters/video_renderer_base.cc', | 317 'filters/video_renderer_base.cc', |
315 'filters/video_renderer_base.h', | 318 'filters/video_renderer_base.h', |
| 319 'filters/vpx_video_decoder.cc', |
| 320 'filters/vpx_video_decoder.h', |
316 'video/capture/fake_video_capture_device.cc', | 321 'video/capture/fake_video_capture_device.cc', |
317 'video/capture/fake_video_capture_device.h', | 322 'video/capture/fake_video_capture_device.h', |
318 'video/capture/linux/video_capture_device_linux.cc', | 323 'video/capture/linux/video_capture_device_linux.cc', |
319 'video/capture/linux/video_capture_device_linux.h', | 324 'video/capture/linux/video_capture_device_linux.h', |
320 'video/capture/mac/video_capture_device_mac.h', | 325 'video/capture/mac/video_capture_device_mac.h', |
321 'video/capture/mac/video_capture_device_mac.mm', | 326 'video/capture/mac/video_capture_device_mac.mm', |
322 'video/capture/mac/video_capture_device_qtkit_mac.h', | 327 'video/capture/mac/video_capture_device_qtkit_mac.h', |
323 'video/capture/mac/video_capture_device_qtkit_mac.mm', | 328 'video/capture/mac/video_capture_device_qtkit_mac.mm', |
324 'video/capture/video_capture.h', | 329 'video/capture/video_capture.h', |
325 'video/capture/video_capture_device.h', | 330 'video/capture/video_capture_device.h', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', | 411 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', |
407 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', | 412 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', |
408 'filters/ffmpeg_video_decoder.cc', | 413 'filters/ffmpeg_video_decoder.cc', |
409 'filters/ffmpeg_video_decoder.h', | 414 'filters/ffmpeg_video_decoder.h', |
410 'webm/webm_cluster_parser.cc', | 415 'webm/webm_cluster_parser.cc', |
411 'webm/webm_cluster_parser.h', | 416 'webm/webm_cluster_parser.h', |
412 'webm/webm_stream_parser.cc', | 417 'webm/webm_stream_parser.cc', |
413 'webm/webm_stream_parser.h', | 418 'webm/webm_stream_parser.h', |
414 ], | 419 ], |
415 }], | 420 }], |
| 421 ['use_libvpx == 1', { |
| 422 'dependencies': [ |
| 423 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 424 ], |
| 425 }, { # use_libvpx == 0 |
| 426 # Exclude the sources that depend on libvpx. |
| 427 'sources!': [ |
| 428 'filters/vpx_video_decoder.cc', |
| 429 'filters/vpx_video_decoder.h', |
| 430 ], |
| 431 }], |
416 ['OS == "ios"', { | 432 ['OS == "ios"', { |
417 'includes': [ | 433 'includes': [ |
418 # For shared_memory_support_sources variable. | 434 # For shared_memory_support_sources variable. |
419 'shared_memory_support.gypi', | 435 'shared_memory_support.gypi', |
420 ], | 436 ], |
421 'sources': [ | 437 'sources': [ |
422 'base/media_stub.cc', | 438 'base/media_stub.cc', |
423 # These sources are normally built via a dependency on the | 439 # These sources are normally built via a dependency on the |
424 # shared_memory_support target, but that target is not built on iOS. | 440 # shared_memory_support target, but that target is not built on iOS. |
425 # Instead, directly build only the files that are needed for iOS. | 441 # Instead, directly build only the files that are needed for iOS. |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 'media', | 1342 'media', |
1327 ], | 1343 ], |
1328 'sources': [ | 1344 'sources': [ |
1329 'tools/media_bench/media_bench.cc', | 1345 'tools/media_bench/media_bench.cc', |
1330 ], | 1346 ], |
1331 }, | 1347 }, |
1332 ], | 1348 ], |
1333 }] | 1349 }] |
1334 ], | 1350 ], |
1335 } | 1351 } |
OLD | NEW |