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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 "capture/content/feedback_signal_accumulator.cc", | 108 "capture/content/feedback_signal_accumulator.cc", |
109 "capture/content/feedback_signal_accumulator.h", | 109 "capture/content/feedback_signal_accumulator.h", |
110 "capture/content/screen_capture_device_core.cc", | 110 "capture/content/screen_capture_device_core.cc", |
111 "capture/content/screen_capture_device_core.h", | 111 "capture/content/screen_capture_device_core.h", |
112 "capture/content/smooth_event_sampler.cc", | 112 "capture/content/smooth_event_sampler.cc", |
113 "capture/content/smooth_event_sampler.h", | 113 "capture/content/smooth_event_sampler.h", |
114 "capture/content/thread_safe_capture_oracle.cc", | 114 "capture/content/thread_safe_capture_oracle.cc", |
115 "capture/content/thread_safe_capture_oracle.h", | 115 "capture/content/thread_safe_capture_oracle.h", |
116 "capture/content/video_capture_oracle.cc", | 116 "capture/content/video_capture_oracle.cc", |
117 "capture/content/video_capture_oracle.h", | 117 "capture/content/video_capture_oracle.h", |
| 118 "capture/video/android/video_capture_device_android.cc", |
| 119 "capture/video/android/video_capture_device_android.h", |
| 120 "capture/video/android/video_capture_device_factory_android.cc", |
| 121 "capture/video/android/video_capture_device_factory_android.h", |
118 "capture/video/fake_video_capture_device.cc", | 122 "capture/video/fake_video_capture_device.cc", |
119 "capture/video/fake_video_capture_device.h", | 123 "capture/video/fake_video_capture_device.h", |
120 "capture/video/fake_video_capture_device_factory.cc", | 124 "capture/video/fake_video_capture_device_factory.cc", |
121 "capture/video/fake_video_capture_device_factory.h", | 125 "capture/video/fake_video_capture_device_factory.h", |
122 "capture/video/file_video_capture_device.cc", | 126 "capture/video/file_video_capture_device.cc", |
123 "capture/video/file_video_capture_device.h", | 127 "capture/video/file_video_capture_device.h", |
124 "capture/video/file_video_capture_device_factory.cc", | 128 "capture/video/file_video_capture_device_factory.cc", |
125 "capture/video/file_video_capture_device_factory.h", | 129 "capture/video/file_video_capture_device_factory.h", |
126 "capture/video/linux/v4l2_capture_delegate.cc", | 130 "capture/video/linux/v4l2_capture_delegate.cc", |
127 "capture/video/linux/v4l2_capture_delegate.h", | 131 "capture/video/linux/v4l2_capture_delegate.h", |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 if (is_android) { | 384 if (is_android) { |
381 # On Android, FFmpeg is built without video decoders. We only | 385 # On Android, FFmpeg is built without video decoders. We only |
382 # support hardware video decoding. | 386 # support hardware video decoding. |
383 if (media_use_ffmpeg) { | 387 if (media_use_ffmpeg) { |
384 sources -= [ | 388 sources -= [ |
385 "filters/ffmpeg_video_decoder.cc", | 389 "filters/ffmpeg_video_decoder.cc", |
386 "filters/ffmpeg_video_decoder.h", | 390 "filters/ffmpeg_video_decoder.h", |
387 ] | 391 ] |
388 } | 392 } |
389 sources += [ | 393 sources += [ |
390 "capture/video/android/video_capture_device_android.cc", | |
391 "capture/video/android/video_capture_device_android.h", | |
392 "capture/video/android/video_capture_device_factory_android.cc", | |
393 "capture/video/android/video_capture_device_factory_android.h", | |
394 "filters/android/media_codec_audio_decoder.cc", | 394 "filters/android/media_codec_audio_decoder.cc", |
395 "filters/android/media_codec_audio_decoder.h", | 395 "filters/android/media_codec_audio_decoder.h", |
396 ] | 396 ] |
397 sources -= [ | 397 sources -= [ |
398 "filters/decrypting_audio_decoder.cc", | 398 "filters/decrypting_audio_decoder.cc", |
399 "filters/decrypting_audio_decoder.h", | 399 "filters/decrypting_audio_decoder.h", |
400 "filters/decrypting_video_decoder.cc", | 400 "filters/decrypting_video_decoder.cc", |
401 "filters/decrypting_video_decoder.h", | 401 "filters/decrypting_video_decoder.h", |
402 ] | 402 ] |
403 deps += [ | 403 deps += [ |
404 "//media/base/android", | 404 "//media/base/android", |
405 "//media/base/android:media_jni_headers", | 405 "//media/base/android:media_jni_headers", |
406 "//media/base/android:video_capture_jni_headers", | 406 "//media/capture/video/android:capture_jni_headers", |
407 ] | 407 ] |
408 | 408 |
409 # Only 64 bit builds are using android-21 NDK library, check common.gypi | 409 # Only 64 bit builds are using android-21 NDK library, check common.gypi |
410 if (current_cpu == "arm64" || current_cpu == "x64" || | 410 if (current_cpu == "arm64" || current_cpu == "x64" || |
411 current_cpu == "mips64el") { | 411 current_cpu == "mips64el") { |
412 sources += [ | 412 sources += [ |
413 "base/android/ndk_media_codec_bridge.cc", | 413 "base/android/ndk_media_codec_bridge.cc", |
414 "base/android/ndk_media_codec_bridge.h", | 414 "base/android/ndk_media_codec_bridge.h", |
415 "base/android/ndk_media_codec_wrapper.cc", | 415 "base/android/ndk_media_codec_wrapper.cc", |
416 ] | 416 ] |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 } | 570 } |
571 | 571 |
572 public_deps = [ | 572 public_deps = [ |
573 ":media_features", | 573 ":media_features", |
574 ":shared_memory_support", | 574 ":shared_memory_support", |
575 "//media/audio", | 575 "//media/audio", |
576 "//media/base", | 576 "//media/base", |
577 "//third_party/opus", | 577 "//third_party/opus", |
578 ] | 578 ] |
579 | 579 |
| 580 # TODO(mcasas) Remove this after http://crbug.com/584797 |
| 581 if (is_android) { |
| 582 public_deps += [ "//media/capture/video/android" ] |
| 583 } |
| 584 |
580 deps += [ | 585 deps += [ |
581 "//base", | 586 "//base", |
582 "//base:i18n", | 587 "//base:i18n", |
583 "//base/third_party/dynamic_annotations", | 588 "//base/third_party/dynamic_annotations", |
584 "//crypto", | 589 "//crypto", |
585 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings | 590 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings |
586 "//gpu/command_buffer/common", | 591 "//gpu/command_buffer/common", |
587 "//skia", | 592 "//skia", |
588 "//third_party/libwebm", | 593 "//third_party/libwebm", |
589 "//third_party/libyuv", | 594 "//third_party/libyuv", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 | 719 |
715 if (is_android) { | 720 if (is_android) { |
716 isolate_file = "media_unittests.isolate" | 721 isolate_file = "media_unittests.isolate" |
717 sources -= [ | 722 sources -= [ |
718 "filters/decrypting_audio_decoder_unittest.cc", | 723 "filters/decrypting_audio_decoder_unittest.cc", |
719 "filters/decrypting_video_decoder_unittest.cc", | 724 "filters/decrypting_video_decoder_unittest.cc", |
720 ] | 725 ] |
721 deps += [ | 726 deps += [ |
722 "//media/base/android:media_java", | 727 "//media/base/android:media_java", |
723 "//media/base/android:unittests", | 728 "//media/base/android:unittests", |
| 729 "//media/capture/video/android:capture_java", |
724 "//ui/android:ui_java", | 730 "//ui/android:ui_java", |
725 ] | 731 ] |
726 } | 732 } |
727 | 733 |
728 # If ExternalClearKey is built, we can test CdmAdapter. | 734 # If ExternalClearKey is built, we can test CdmAdapter. |
729 if (enable_pepper_cdms) { | 735 if (enable_pepper_cdms) { |
730 sources += [ "cdm/cdm_adapter_unittest.cc" ] | 736 sources += [ "cdm/cdm_adapter_unittest.cc" ] |
731 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] | 737 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] |
732 } | 738 } |
733 | 739 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 if (proprietary_codecs) { | 940 if (proprietary_codecs) { |
935 fuzzer_test("media_cenc_utils_fuzzer") { | 941 fuzzer_test("media_cenc_utils_fuzzer") { |
936 sources = [ | 942 sources = [ |
937 "cdm/cenc_utils_fuzzertest.cc", | 943 "cdm/cenc_utils_fuzzertest.cc", |
938 ] | 944 ] |
939 deps = [ | 945 deps = [ |
940 ":media", | 946 ":media", |
941 ] | 947 ] |
942 } | 948 } |
943 } | 949 } |
OLD | NEW |