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/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 "video/capture/android/video_capture_device_android.h", | 291 "video/capture/android/video_capture_device_android.h", |
292 "video/capture/android/video_capture_device_factory_android.cc", | 292 "video/capture/android/video_capture_device_factory_android.cc", |
293 "video/capture/android/video_capture_device_factory_android.h", | 293 "video/capture/android/video_capture_device_factory_android.h", |
294 ] | 294 ] |
295 deps += [ | 295 deps += [ |
296 "//media/base/android", | 296 "//media/base/android", |
297 "//media/base/android:media_jni_headers", | 297 "//media/base/android:media_jni_headers", |
298 "//media/base/android:video_capture_jni_headers", | 298 "//media/base/android:video_capture_jni_headers", |
299 ] | 299 ] |
300 if (!is_android_webview_build) { | 300 if (!is_android_webview_build) { |
301 deps += [ ":media_java" ] | 301 deps += [ "//media/base/android:media_java" ] |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 if (use_alsa) { | 305 if (use_alsa) { |
306 libs += [ "asound" ] | 306 libs += [ "asound" ] |
307 defines += [ "USE_ALSA" ] | 307 defines += [ "USE_ALSA" ] |
308 sources += [ | 308 sources += [ |
309 "midi/midi_manager_alsa.cc", | 309 "midi/midi_manager_alsa.cc", |
310 "midi/midi_manager_alsa.h", | 310 "midi/midi_manager_alsa.h", |
311 ] | 311 ] |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 "formats/webm/cluster_builder.h", | 470 "formats/webm/cluster_builder.h", |
471 "formats/webm/tracks_builder.cc", | 471 "formats/webm/tracks_builder.cc", |
472 "formats/webm/tracks_builder.h", | 472 "formats/webm/tracks_builder.h", |
473 "formats/webm/webm_cluster_parser_unittest.cc", | 473 "formats/webm/webm_cluster_parser_unittest.cc", |
474 "formats/webm/webm_content_encodings_client_unittest.cc", | 474 "formats/webm/webm_content_encodings_client_unittest.cc", |
475 "formats/webm/webm_parser_unittest.cc", | 475 "formats/webm/webm_parser_unittest.cc", |
476 "formats/webm/webm_tracks_parser_unittest.cc", | 476 "formats/webm/webm_tracks_parser_unittest.cc", |
477 "formats/webm/webm_webvtt_parser_unittest.cc", | 477 "formats/webm/webm_webvtt_parser_unittest.cc", |
478 ] | 478 ] |
479 | 479 |
480 if (!is_android) { | 480 deps = [ |
| 481 ":media", |
| 482 ":test_support", |
| 483 "//base/allocator", |
| 484 "//base/test:test_support", |
| 485 "//media/audio:unittests", |
| 486 "//media/audio:test_support", |
| 487 "//media/base:unittests", |
| 488 "//media/base:test_support", |
| 489 "//skia", # Direct dependency required to inherit config. |
| 490 "//testing/gmock", |
| 491 "//testing/gtest", |
| 492 "//third_party/widevine/cdm:version_h", |
| 493 "//ui/gfx:test_support", |
| 494 "//url", |
| 495 ] |
| 496 |
| 497 if (is_android) { |
| 498 deps += [ |
| 499 "//media/base/android", |
| 500 # TODO(GYP) |
| 501 #"//testing/android:native_test_native_code" |
| 502 ] |
| 503 } else { |
481 sources += [ | 504 sources += [ |
482 "ffmpeg/ffmpeg_common_unittest.cc", | 505 "ffmpeg/ffmpeg_common_unittest.cc", |
483 "filters/audio_decoder_unittest.cc", | 506 "filters/audio_decoder_unittest.cc", |
484 "filters/audio_file_reader_unittest.cc", | 507 "filters/audio_file_reader_unittest.cc", |
485 "filters/blocking_url_protocol_unittest.cc", | 508 "filters/blocking_url_protocol_unittest.cc", |
486 "filters/ffmpeg_demuxer_unittest.cc", | 509 "filters/ffmpeg_demuxer_unittest.cc", |
487 "filters/ffmpeg_glue_unittest.cc", | 510 "filters/ffmpeg_glue_unittest.cc", |
488 "filters/ffmpeg_video_decoder_unittest.cc", | 511 "filters/ffmpeg_video_decoder_unittest.cc", |
489 "filters/in_memory_url_protocol_unittest.cc", | 512 "filters/in_memory_url_protocol_unittest.cc", |
490 "filters/pipeline_integration_test.cc", | 513 "filters/pipeline_integration_test.cc", |
491 "filters/pipeline_integration_test_base.cc", | 514 "filters/pipeline_integration_test_base.cc", |
492 ] | 515 ] |
493 } else { | |
494 # TODO(ajwong): Blocked on android. | |
495 # deps += [ | |
496 # ":player_android", | |
497 # "//testing/android:native_test_native_code" | |
498 # ] | |
499 } | 516 } |
500 | 517 |
501 if (cpu_arch != "arm" && is_chromeos && use_x11) { | 518 if (cpu_arch != "arm" && is_chromeos && use_x11) { |
502 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 519 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
503 } | 520 } |
504 | 521 |
505 if (proprietary_codecs) { | 522 if (proprietary_codecs) { |
506 sources += [ | 523 sources += [ |
507 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 524 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
508 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 525 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
(...skipping 30 matching lines...) Expand all Loading... |
539 ] | 556 ] |
540 } | 557 } |
541 | 558 |
542 # include_dirs += [ | 559 # include_dirs += [ |
543 # # Needed by media_drm_bridge.cc. | 560 # # Needed by media_drm_bridge.cc. |
544 # target_gen_dir, | 561 # target_gen_dir, |
545 # ], | 562 # ], |
546 | 563 |
547 configs += [ ":media_config" ] | 564 configs += [ ":media_config" ] |
548 | 565 |
549 # TODO(ajwong): This was in the original gyp, but it seems silly. | |
550 # ['os_posix==1 and OS!="mac"', { | |
551 # 'conditions': [ | |
552 # ['use_allocator!="none"', { | |
553 # 'dependencies': [ | |
554 # '../base/allocator/allocator.gyp:allocator', | |
555 # ], | |
556 # }], | |
557 # ], | |
558 # }], | |
559 deps = [ | |
560 ":media", | |
561 ":test_support", | |
562 "//base/test:test_support", | |
563 "//media/audio:unittests", | |
564 "//media/audio:test_support", | |
565 "//media/base:unittests", | |
566 "//media/base:test_support", | |
567 "//skia", # Direct dependency required to inherit config. | |
568 "//testing/gmock", | |
569 "//testing/gtest", | |
570 # TODO(dalecurtis): Port the rest of Widevine stuff. | |
571 "//third_party/widevine/cdm:version_h", | |
572 "//ui/gfx:test_support", | |
573 "//url", | |
574 ] | |
575 if (media_use_ffmpeg) { | 566 if (media_use_ffmpeg) { |
576 deps += [ | 567 deps += [ |
577 "//third_party/ffmpeg", # Direct dependency required to inherit config. | 568 "//third_party/ffmpeg", # Direct dependency required to inherit config. |
578 ] | 569 ] |
579 } | 570 } |
580 } | 571 } |
581 | 572 |
582 test("media_perftests") { | 573 test("media_perftests") { |
583 sources = [] | 574 sources = [] |
584 if (media_use_ffmpeg) { | 575 if (media_use_ffmpeg) { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 deps = [ | 711 deps = [ |
721 ":media", | 712 ":media", |
722 ":shared_memory_support", | 713 ":shared_memory_support", |
723 "//base", | 714 "//base", |
724 "//ui/gl", | 715 "//ui/gl", |
725 "//ui/gfx", | 716 "//ui/gfx", |
726 "//ui/gfx/geometry", | 717 "//ui/gfx/geometry", |
727 ] | 718 ] |
728 } | 719 } |
729 } | 720 } |
730 | |
731 if (is_android) { | |
732 import("//build/config/android/rules.gni") | |
733 android_library("media_java") { | |
734 srcjar_deps = [ | |
735 ":media_android_imageformat_list", | |
736 ] | |
737 java_files = [] | |
738 } | |
739 | |
740 java_cpp_template("media_android_imageformat_list") { | |
741 sources = [ | |
742 "base/android/java/src/org/chromium/media/ImageFormat.template", | |
743 ] | |
744 inputs = [ | |
745 "video/capture/android/imageformat_list.h" | |
746 ] | |
747 package_name = "org/chromium/media" | |
748 } | |
749 } | |
OLD | NEW |