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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 ] | 330 ] |
331 sources -= [ | 331 sources -= [ |
332 "filters/decrypting_audio_decoder.cc", | 332 "filters/decrypting_audio_decoder.cc", |
333 "filters/decrypting_audio_decoder.h", | 333 "filters/decrypting_audio_decoder.h", |
334 "filters/decrypting_video_decoder.cc", | 334 "filters/decrypting_video_decoder.cc", |
335 "filters/decrypting_video_decoder.h", | 335 "filters/decrypting_video_decoder.h", |
336 ] | 336 ] |
337 deps += [ | 337 deps += [ |
338 "//media/base/android", | 338 "//media/base/android", |
339 "//media/base/android:media_jni_headers", | 339 "//media/base/android:media_jni_headers", |
| 340 "//media/capture/video/android:capture_java", |
| 341 "//media/capture/video/android:capture_jni_headers", |
340 ] | 342 ] |
341 | 343 |
342 # Only 64 bit builds are using android-21 NDK library, check common.gypi | 344 # Only 64 bit builds are using android-21 NDK library, check common.gypi |
343 if (current_cpu == "arm64" || current_cpu == "x64" || | 345 if (current_cpu == "arm64" || current_cpu == "x64" || |
344 current_cpu == "mips64el") { | 346 current_cpu == "mips64el") { |
345 sources += [ | 347 sources += [ |
346 "base/android/ndk_media_codec_bridge.cc", | 348 "base/android/ndk_media_codec_bridge.cc", |
347 "base/android/ndk_media_codec_bridge.h", | 349 "base/android/ndk_media_codec_bridge.h", |
348 "base/android/ndk_media_codec_wrapper.cc", | 350 "base/android/ndk_media_codec_wrapper.cc", |
349 ] | 351 ] |
350 } | 352 } |
351 allow_circular_includes_from = [ "//media/base/android" ] | 353 allow_circular_includes_from = [ "//media/base/android" ] |
352 } | 354 } |
353 | 355 |
354 if (current_cpu != "arm" && is_chromeos) { | 356 if (current_cpu != "arm" && is_chromeos) { |
355 sources += [ | 357 sources += [ |
356 "filters/h264_bitstream_buffer.cc", | 358 "filters/h264_bitstream_buffer.cc", |
357 "filters/h264_bitstream_buffer.h", | 359 "filters/h264_bitstream_buffer.h", |
358 ] | 360 ] |
359 } | 361 } |
360 | 362 |
361 if (is_mac) { | 363 if (is_mac) { |
362 public_deps += [ "//media/base/mac" ] | 364 public_deps += [ "//media/base/mac" ] |
363 libs += [ | |
364 "CoreFoundation.framework", | |
365 "CoreGraphics.framework", | |
366 "Foundation.framework", | |
367 ] | |
368 } | 365 } |
369 | 366 |
370 if (is_ios) { | 367 if (is_ios) { |
371 deps += [ "//media/base/mac" ] | 368 deps += [ "//media/base/mac" ] |
372 } | 369 } |
373 | 370 |
374 if (is_win) { | 371 if (is_win) { |
375 deps += [ "//media/base/win" ] | 372 deps += [ "//media/base/win" ] |
| 373 libs += [ |
| 374 "mf.lib", |
| 375 "mfplat.lib", |
| 376 "mfreadwrite.lib", |
| 377 "mfuuid.lib", |
| 378 ] |
376 } | 379 } |
377 | 380 |
378 if (proprietary_codecs) { | 381 if (proprietary_codecs) { |
379 sources += [ | 382 sources += [ |
380 "cdm/cenc_utils.cc", | 383 "cdm/cenc_utils.cc", |
381 "cdm/cenc_utils.h", | 384 "cdm/cenc_utils.h", |
382 "filters/h264_to_annex_b_bitstream_converter.cc", | 385 "filters/h264_to_annex_b_bitstream_converter.cc", |
383 "filters/h264_to_annex_b_bitstream_converter.h", | 386 "filters/h264_to_annex_b_bitstream_converter.h", |
384 "formats/mp4/aac.cc", | 387 "formats/mp4/aac.cc", |
385 "formats/mp4/aac.h", | 388 "formats/mp4/aac.h", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 "filters/source_buffer_platform.cc", | 455 "filters/source_buffer_platform.cc", |
453 "filters/source_buffer_platform.h", | 456 "filters/source_buffer_platform.h", |
454 ] | 457 ] |
455 } | 458 } |
456 | 459 |
457 public_deps += [ | 460 public_deps += [ |
458 ":media_features", | 461 ":media_features", |
459 ":shared_memory_support", | 462 ":shared_memory_support", |
460 "//media/audio", | 463 "//media/audio", |
461 "//media/base", | 464 "//media/base", |
| 465 "//media/capture", |
462 "//third_party/opus", | 466 "//third_party/opus", |
463 ] | 467 ] |
464 | 468 |
465 deps += [ | 469 deps += [ |
466 "//base", | 470 "//base", |
467 "//base:i18n", | 471 "//base:i18n", |
468 "//base/third_party/dynamic_annotations", | 472 "//base/third_party/dynamic_annotations", |
469 "//crypto", | 473 "//crypto", |
470 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings | 474 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings |
471 "//gpu/command_buffer/client:gles2_interface", | 475 "//gpu/command_buffer/client:gles2_interface", |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 ":cdm_paths", | 590 ":cdm_paths", |
587 ":media", | 591 ":media", |
588 ":test_support", | 592 ":test_support", |
589 "//base/test:test_support", | 593 "//base/test:test_support", |
590 "//gpu:test_support", | 594 "//gpu:test_support", |
591 "//gpu/command_buffer/common", | 595 "//gpu/command_buffer/common", |
592 "//media/audio:test_support", | 596 "//media/audio:test_support", |
593 "//media/audio:unittests", | 597 "//media/audio:unittests", |
594 "//media/base:test_support", | 598 "//media/base:test_support", |
595 "//media/base:unittests", | 599 "//media/base:unittests", |
596 | |
597 # TODO(mcasas): Remove the capture sources after https://crbug.com/618718. | |
598 "//media/capture:unittests", | 600 "//media/capture:unittests", |
599 "//media/test:pipeline_integration_tests", | 601 "//media/test:pipeline_integration_tests", |
600 "//skia", # Direct dependency required to inherit config. | 602 "//skia", # Direct dependency required to inherit config. |
601 "//testing/gmock", | 603 "//testing/gmock", |
602 "//testing/gtest", | 604 "//testing/gtest", |
603 "//third_party/libwebm", | 605 "//third_party/libwebm", |
604 "//third_party/libyuv", | 606 "//third_party/libyuv", |
605 "//third_party/widevine/cdm:version_h", | 607 "//third_party/widevine/cdm:version_h", |
606 "//ui/gfx:test_support", | 608 "//ui/gfx:test_support", |
607 "//url", | 609 "//url", |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 sources = [ | 882 sources = [ |
881 "filters/vpx_video_decoder_fuzzertest.cc", | 883 "filters/vpx_video_decoder_fuzzertest.cc", |
882 ] | 884 ] |
883 deps = [ | 885 deps = [ |
884 ":media", | 886 ":media", |
885 "//base", | 887 "//base", |
886 ] | 888 ] |
887 libfuzzer_options = [ "max_len = 400000" ] | 889 libfuzzer_options = [ "max_len = 400000" ] |
888 seed_corpus = "//media/test/data" | 890 seed_corpus = "//media/test/data" |
889 } | 891 } |
OLD | NEW |