OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 if (use_pulseaudio) { | 26 if (use_pulseaudio) { |
27 defines += [ "USE_PULSEAUDIO" ] | 27 defines += [ "USE_PULSEAUDIO" ] |
28 if (!link_pulseaudio) { | 28 if (!link_pulseaudio) { |
29 defines += [ "DLOPEN_PULSEAUDIO" ] | 29 defines += [ "DLOPEN_PULSEAUDIO" ] |
30 } | 30 } |
31 } | 31 } |
32 if (use_cras) { | 32 if (use_cras) { |
33 defines += [ "USE_CRAS" ] | 33 defines += [ "USE_CRAS" ] |
34 } | 34 } |
| 35 if (use_alsa) { |
| 36 defines += [ "USE_ALSA" ] |
| 37 } |
35 } | 38 } |
36 | 39 |
37 config("media_dependent_config") { | 40 config("media_dependent_config") { |
38 defines = [] | 41 defines = [] |
39 if (!media_use_libvpx) { | 42 if (!media_use_libvpx) { |
40 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 43 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
41 } | 44 } |
42 if (!media_use_ffmpeg) { | 45 if (!media_use_ffmpeg) { |
43 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 46 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
44 } | 47 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 "formats/webm/webm_parser.cc", | 172 "formats/webm/webm_parser.cc", |
170 "formats/webm/webm_parser.h", | 173 "formats/webm/webm_parser.h", |
171 "formats/webm/webm_stream_parser.cc", | 174 "formats/webm/webm_stream_parser.cc", |
172 "formats/webm/webm_stream_parser.h", | 175 "formats/webm/webm_stream_parser.h", |
173 "formats/webm/webm_tracks_parser.cc", | 176 "formats/webm/webm_tracks_parser.cc", |
174 "formats/webm/webm_tracks_parser.h", | 177 "formats/webm/webm_tracks_parser.h", |
175 "formats/webm/webm_video_client.cc", | 178 "formats/webm/webm_video_client.cc", |
176 "formats/webm/webm_video_client.h", | 179 "formats/webm/webm_video_client.h", |
177 "formats/webm/webm_webvtt_parser.cc", | 180 "formats/webm/webm_webvtt_parser.cc", |
178 "formats/webm/webm_webvtt_parser.h", | 181 "formats/webm/webm_webvtt_parser.h", |
| 182 "midi/midi_manager.cc", |
| 183 "midi/midi_manager.h", |
| 184 "midi/midi_manager_mac.cc", |
| 185 "midi/midi_manager_mac.h", |
| 186 "midi/midi_manager_usb.cc", |
| 187 "midi/midi_manager_usb.h", |
| 188 "midi/midi_manager_win.cc", |
| 189 "midi/midi_manager_win.h", |
| 190 "midi/midi_message_queue.cc", |
| 191 "midi/midi_message_queue.h", |
| 192 "midi/midi_message_util.cc", |
| 193 "midi/midi_message_util.h", |
| 194 "midi/midi_port_info.cc", |
| 195 "midi/midi_port_info.h", |
| 196 "midi/midi_scheduler.cc", |
| 197 "midi/midi_scheduler.h", |
| 198 "midi/usb_midi_descriptor_parser.cc", |
| 199 "midi/usb_midi_descriptor_parser.h", |
| 200 "midi/usb_midi_device.h", |
| 201 "midi/usb_midi_input_stream.cc", |
| 202 "midi/usb_midi_input_stream.h", |
| 203 "midi/usb_midi_jack.h", |
| 204 "midi/usb_midi_output_stream.cc", |
| 205 "midi/usb_midi_output_stream.h", |
179 "renderers/audio_renderer_impl.cc", | 206 "renderers/audio_renderer_impl.cc", |
180 "renderers/audio_renderer_impl.h", | 207 "renderers/audio_renderer_impl.h", |
181 "renderers/gpu_video_accelerator_factories.h", | 208 "renderers/gpu_video_accelerator_factories.h", |
182 "renderers/renderer_impl.cc", | 209 "renderers/renderer_impl.cc", |
183 "renderers/renderer_impl.h", | 210 "renderers/renderer_impl.h", |
184 "renderers/video_renderer_impl.cc", | 211 "renderers/video_renderer_impl.cc", |
185 "renderers/video_renderer_impl.h", | 212 "renderers/video_renderer_impl.h", |
186 "video/capture/fake_video_capture_device.cc", | 213 "video/capture/fake_video_capture_device.cc", |
187 "video/capture/fake_video_capture_device.h", | 214 "video/capture/fake_video_capture_device.h", |
188 "video/capture/fake_video_capture_device_factory.cc", | 215 "video/capture/fake_video_capture_device_factory.cc", |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 336 |
310 if (!is_android) { | 337 if (!is_android) { |
311 sources += [ | 338 sources += [ |
312 "filters/opus_audio_decoder.cc", | 339 "filters/opus_audio_decoder.cc", |
313 "filters/opus_audio_decoder.h", | 340 "filters/opus_audio_decoder.h", |
314 "renderers/default_renderer_factory.cc", | 341 "renderers/default_renderer_factory.cc", |
315 "renderers/default_renderer_factory.h", | 342 "renderers/default_renderer_factory.h", |
316 ] | 343 ] |
317 } else { | 344 } else { |
318 sources += [ | 345 sources += [ |
| 346 "midi/midi_manager_android.cc", |
| 347 "midi/usb_midi_device_android.cc", |
| 348 "midi/usb_midi_device_android.h", |
| 349 "midi/usb_midi_device_factory_android.cc", |
| 350 "midi/usb_midi_device_factory_android.h", |
319 "video/capture/android/video_capture_device_android.cc", | 351 "video/capture/android/video_capture_device_android.cc", |
320 "video/capture/android/video_capture_device_android.h", | 352 "video/capture/android/video_capture_device_android.h", |
321 "video/capture/android/video_capture_device_factory_android.cc", | 353 "video/capture/android/video_capture_device_factory_android.cc", |
322 "video/capture/android/video_capture_device_factory_android.h", | 354 "video/capture/android/video_capture_device_factory_android.h", |
323 ] | 355 ] |
324 deps += [ | 356 deps += [ |
325 "//media/base/android", | 357 "//media/base/android", |
326 "//media/base/android:media_java", | 358 "//media/base/android:media_java", |
327 "//media/base/android:media_jni_headers", | 359 "//media/base/android:media_jni_headers", |
328 "//media/base/android:video_capture_jni_headers", | 360 "//media/base/android:video_capture_jni_headers", |
329 ] | 361 ] |
330 } | 362 } |
331 | 363 |
332 if (current_cpu != "arm" && is_chromeos) { | 364 if (current_cpu != "arm" && is_chromeos) { |
333 sources += [ | 365 sources += [ |
334 "filters/h264_bitstream_buffer.cc", | 366 "filters/h264_bitstream_buffer.cc", |
335 "filters/h264_bitstream_buffer.h", | 367 "filters/h264_bitstream_buffer.h", |
336 ] | 368 ] |
337 } | 369 } |
338 | 370 |
| 371 if (use_alsa) { |
| 372 libs += [ "asound" ] |
| 373 sources += [ |
| 374 "midi/midi_manager_alsa.cc", |
| 375 "midi/midi_manager_alsa.h", |
| 376 ] |
| 377 } |
| 378 |
| 379 if (use_udev) { |
| 380 deps += [ "//device/udev_linux" ] |
| 381 } |
| 382 |
339 # A simple WebM encoder for animated avatars on ChromeOS. | 383 # A simple WebM encoder for animated avatars on ChromeOS. |
340 | 384 |
341 if (use_ozone) { | 385 if (use_ozone) { |
342 # Used for the generated listing header (ui/ozone/platform_list.h) | 386 # Used for the generated listing header (ui/ozone/platform_list.h) |
343 include_dirs += [ target_gen_dir ] | 387 include_dirs += [ target_gen_dir ] |
344 | 388 |
345 sources += [ | 389 sources += [ |
346 "ozone/media_ozone_platform.cc", | 390 "ozone/media_ozone_platform.cc", |
347 "ozone/media_ozone_platform.h", | 391 "ozone/media_ozone_platform.h", |
348 ] + get_target_outputs(":generate_ozone_constructor_list") | 392 ] + get_target_outputs(":generate_ozone_constructor_list") |
349 | 393 |
350 deps += [ | 394 deps += [ |
351 ":generate_ozone_constructor_list", | 395 ":generate_ozone_constructor_list", |
352 "//ui/ozone", | 396 "//ui/ozone", |
353 ] | 397 ] |
354 } | 398 } |
355 | 399 |
356 if (is_mac) { | 400 if (is_mac) { |
357 deps += [ | 401 deps += [ |
358 "//media/base/mac", | 402 "//media/base/mac", |
359 "//third_party/decklink", | 403 "//third_party/decklink", |
360 ] | 404 ] |
361 libs += [ | 405 libs += [ |
| 406 "CoreMIDI.framework", |
362 "CoreVideo.framework", | 407 "CoreVideo.framework", |
363 "OpenGL.framework", | 408 "OpenGL.framework", |
364 "QTKit.framework", | 409 "QTKit.framework", |
365 ] | 410 ] |
366 } | 411 } |
367 | 412 |
368 if (is_openbsd) { | 413 if (is_openbsd) { |
369 sources -= [ | 414 sources -= [ |
370 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc", | 415 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc", |
371 "video/capture/linux/v4l2_capture_delegate_multi_plane.h", | 416 "video/capture/linux/v4l2_capture_delegate_multi_plane.h", |
372 ] | 417 ] |
373 } | 418 } |
374 | 419 |
375 if (is_ios) { | 420 if (is_ios) { |
376 deps += [ "//media/base/mac" ] | 421 deps += [ "//media/base/mac" ] |
377 } | 422 } |
378 | 423 |
379 if (is_win) { | 424 if (is_win) { |
| 425 deps += [ "//device/usb" ] |
| 426 |
380 libs += [ | 427 libs += [ |
381 "mf.lib", | 428 "mf.lib", |
382 "mfplat.lib", | 429 "mfplat.lib", |
383 "mfreadwrite.lib", | 430 "mfreadwrite.lib", |
384 "mfuuid.lib", | 431 "mfuuid.lib", |
385 ] | 432 ] |
386 } | 433 } |
387 | 434 |
388 if (proprietary_codecs) { | 435 if (proprietary_codecs) { |
389 sources += [ | 436 sources += [ |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 "formats/webm/cluster_builder.h", | 568 "formats/webm/cluster_builder.h", |
522 "formats/webm/opus_packet_builder.cc", | 569 "formats/webm/opus_packet_builder.cc", |
523 "formats/webm/opus_packet_builder.h", | 570 "formats/webm/opus_packet_builder.h", |
524 "formats/webm/tracks_builder.cc", | 571 "formats/webm/tracks_builder.cc", |
525 "formats/webm/tracks_builder.h", | 572 "formats/webm/tracks_builder.h", |
526 "formats/webm/webm_cluster_parser_unittest.cc", | 573 "formats/webm/webm_cluster_parser_unittest.cc", |
527 "formats/webm/webm_content_encodings_client_unittest.cc", | 574 "formats/webm/webm_content_encodings_client_unittest.cc", |
528 "formats/webm/webm_parser_unittest.cc", | 575 "formats/webm/webm_parser_unittest.cc", |
529 "formats/webm/webm_tracks_parser_unittest.cc", | 576 "formats/webm/webm_tracks_parser_unittest.cc", |
530 "formats/webm/webm_webvtt_parser_unittest.cc", | 577 "formats/webm/webm_webvtt_parser_unittest.cc", |
| 578 "midi/midi_manager_unittest.cc", |
| 579 "midi/midi_manager_usb_unittest.cc", |
| 580 "midi/midi_message_queue_unittest.cc", |
| 581 "midi/midi_message_util_unittest.cc", |
| 582 "midi/usb_midi_descriptor_parser_unittest.cc", |
| 583 "midi/usb_midi_input_stream_unittest.cc", |
| 584 "midi/usb_midi_output_stream_unittest.cc", |
531 "renderers/audio_renderer_impl_unittest.cc", | 585 "renderers/audio_renderer_impl_unittest.cc", |
532 "renderers/renderer_impl_unittest.cc", | 586 "renderers/renderer_impl_unittest.cc", |
533 "renderers/video_renderer_impl_unittest.cc", | 587 "renderers/video_renderer_impl_unittest.cc", |
534 "video/capture/fake_video_capture_device_unittest.cc", | 588 "video/capture/fake_video_capture_device_unittest.cc", |
535 "video/capture/video_capture_device_unittest.cc", | 589 "video/capture/video_capture_device_unittest.cc", |
536 "video/h264_poc_unittest.cc", | 590 "video/h264_poc_unittest.cc", |
537 ] | 591 ] |
538 | 592 |
539 # TODO(wolenetz): Fix size_t to int trunctaion in win64. | 593 # TODO(wolenetz): Fix size_t to int trunctaion in win64. |
540 # See http://crbug.com/171009 | 594 # See http://crbug.com/171009 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 "formats/mpeg/adts_stream_parser_unittest.cc", | 662 "formats/mpeg/adts_stream_parser_unittest.cc", |
609 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", | 663 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", |
610 ] | 664 ] |
611 } | 665 } |
612 | 666 |
613 if (is_mac || is_ios) { | 667 if (is_mac || is_ios) { |
614 deps += [ "//media/base/mac" ] | 668 deps += [ "//media/base/mac" ] |
615 } | 669 } |
616 | 670 |
617 if (is_mac) { | 671 if (is_mac) { |
618 sources += | 672 sources += [ |
619 [ "video/capture/mac/video_capture_device_factory_mac_unittest.mm" ] | 673 "midi/midi_manager_mac_unittest.cc", |
| 674 "video/capture/mac/video_capture_device_factory_mac_unittest.mm", |
| 675 ] |
| 676 libs = [ |
| 677 # Required by midi_manager_mac_unittest.cc. |
| 678 "CoreMIDI.framework", |
| 679 ] |
| 680 } |
| 681 |
| 682 if (use_alsa) { |
| 683 sources += [ "midi/midi_manager_alsa_unittest.cc" ] |
620 } | 684 } |
621 | 685 |
622 # include_dirs += [ | 686 # include_dirs += [ |
623 # # Needed by media_drm_bridge.cc. | 687 # # Needed by media_drm_bridge.cc. |
624 # target_gen_dir, | 688 # target_gen_dir, |
625 # ], | 689 # ], |
626 | 690 |
627 configs += [ ":media_config" ] | 691 configs += [ ":media_config" ] |
628 | 692 |
629 if (media_use_ffmpeg) { | 693 if (media_use_ffmpeg) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 "//media/base:test_support", | 780 "//media/base:test_support", |
717 "//media/test:pipeline_integration_tests", | 781 "//media/test:pipeline_integration_tests", |
718 "//testing/gmock", | 782 "//testing/gmock", |
719 "//testing/gtest", | 783 "//testing/gtest", |
720 "//third_party/ffmpeg", | 784 "//third_party/ffmpeg", |
721 "//ui/gfx/geometry", | 785 "//ui/gfx/geometry", |
722 "//ui/gfx:test_support", | 786 "//ui/gfx:test_support", |
723 ] | 787 ] |
724 } | 788 } |
725 } | 789 } |
OLD | NEW |