Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: media/BUILD.gn

Issue 1405783002: Support desktop media pipeline on Android for GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified Opus Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 if (!media_use_ffmpeg) { 49 if (!media_use_ffmpeg) {
50 defines += [ "MEDIA_DISABLE_FFMPEG" ] 50 defines += [ "MEDIA_DISABLE_FFMPEG" ]
51 } 51 }
52 if (is_win) { 52 if (is_win) {
53 ldflags = [ 53 ldflags = [
54 "/DELAYLOAD:mf.dll", 54 "/DELAYLOAD:mf.dll",
55 "/DELAYLOAD:mfplat.dll", 55 "/DELAYLOAD:mfplat.dll",
56 "/DELAYLOAD:mfreadwrite.dll", 56 "/DELAYLOAD:mfreadwrite.dll",
57 ] 57 ]
58 } 58 }
59 if (media_use_ffmpeg && is_android) {
60 defines += [
61 "ENABLE_MEDIA_PIPELINE_ON_ANDROID",
62 "DISABLE_FFMPEG_VIDEO_DECODERS",
63 ]
64 }
59 } 65 }
60 66
61 if (use_ozone) { 67 if (use_ozone) {
62 action("generate_ozone_constructor_list") { 68 action("generate_ozone_constructor_list") {
63 # Ozone platform objects are auto-generated using similar 69 # Ozone platform objects are auto-generated using similar
64 # patterns for naming and classes constructors. Here we build the 70 # patterns for naming and classes constructors. Here we build the
65 # object MediaOzonePlatform. 71 # object MediaOzonePlatform.
66 script = "../ui/ozone/generate_constructor_list.py" 72 script = "../ui/ozone/generate_constructor_list.py"
67 73
68 platform_list_txt_file = "$target_gen_dir/../ui/ozone/platform_list.txt" 74 platform_list_txt_file = "$target_gen_dir/../ui/ozone/platform_list.txt"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 363
358 if (media_use_libwebm) { 364 if (media_use_libwebm) {
359 sources += [ 365 sources += [
360 "capture/webm_muxer.cc", 366 "capture/webm_muxer.cc",
361 "capture/webm_muxer.h", 367 "capture/webm_muxer.h",
362 ] 368 ]
363 deps += [ "//third_party/libwebm" ] 369 deps += [ "//third_party/libwebm" ]
364 } 370 }
365 371
366 if (is_android) { 372 if (is_android) {
373 # On Android, FFmpeg is built without video decoders. We only
374 # support hardware video decoding.
375 if (media_use_ffmpeg) {
376 sources -= [
377 "filters/ffmpeg_video_decoder.cc",
378 "filters/ffmpeg_video_decoder.h",
379 ]
380 }
367 sources += [ 381 sources += [
368 "capture/video/android/video_capture_device_android.cc", 382 "capture/video/android/video_capture_device_android.cc",
369 "capture/video/android/video_capture_device_android.h", 383 "capture/video/android/video_capture_device_android.h",
370 "capture/video/android/video_capture_device_factory_android.cc", 384 "capture/video/android/video_capture_device_factory_android.cc",
371 "capture/video/android/video_capture_device_factory_android.h", 385 "capture/video/android/video_capture_device_factory_android.h",
372 ] 386 ]
373 deps += [ 387 deps += [
374 "//media/base/android", 388 "//media/base/android",
375 "//media/base/android:media_jni_headers", 389 "//media/base/android:media_jni_headers",
376 "//media/base/android:video_capture_jni_headers", 390 "//media/base/android:video_capture_jni_headers",
377 ] 391 ]
378 allow_circular_includes_from = [ "//media/base/android" ] 392 allow_circular_includes_from = [ "//media/base/android" ]
379 } else { 393 }
394
395 if (!is_android || media_use_ffmpeg) {
380 sources += [ 396 sources += [
381 "filters/opus_audio_decoder.cc", 397 "filters/opus_audio_decoder.cc",
382 "filters/opus_audio_decoder.h", 398 "filters/opus_audio_decoder.h",
383 ] 399 ]
384 } 400 }
385 401
386 if (current_cpu != "arm" && is_chromeos) { 402 if (current_cpu != "arm" && is_chromeos) {
387 sources += [ 403 sources += [
388 "filters/h264_bitstream_buffer.cc", 404 "filters/h264_bitstream_buffer.cc",
389 "filters/h264_bitstream_buffer.h", 405 "filters/h264_bitstream_buffer.h",
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } else { 527 } else {
512 sources += [ 528 sources += [
513 "filters/source_buffer_platform.cc", 529 "filters/source_buffer_platform.cc",
514 "filters/source_buffer_platform.h", 530 "filters/source_buffer_platform.h",
515 ] 531 ]
516 } 532 }
517 533
518 public_deps = [ 534 public_deps = [
519 "//media/base", 535 "//media/base",
520 "//media/audio", 536 "//media/audio",
537 "//third_party/opus",
521 ] 538 ]
522 539
523 deps += [ 540 deps += [
524 ":shared_memory_support", 541 ":shared_memory_support",
525 "//base", 542 "//base",
526 "//base:i18n", 543 "//base:i18n",
527 "//base/third_party/dynamic_annotations", 544 "//base/third_party/dynamic_annotations",
528 "//crypto", 545 "//crypto",
529 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp via export_dependent_settings 546 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp via export_dependent_settings
530 "//gpu/command_buffer/common", 547 "//gpu/command_buffer/common",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 "//media/base/android", 676 "//media/base/android",
660 # TODO(GYP) 677 # TODO(GYP)
661 #"//testing/android/native_test:native_test_native_code" 678 #"//testing/android/native_test:native_test_native_code"
662 ] 679 ]
663 } 680 }
664 681
665 if (media_use_ffmpeg) { 682 if (media_use_ffmpeg) {
666 sources += [ 683 sources += [
667 "ffmpeg/ffmpeg_common_unittest.cc", 684 "ffmpeg/ffmpeg_common_unittest.cc",
668 "filters/audio_decoder_unittest.cc", 685 "filters/audio_decoder_unittest.cc",
669 "filters/audio_file_reader_unittest.cc",
670 "filters/blocking_url_protocol_unittest.cc",
671 "filters/ffmpeg_demuxer_unittest.cc", 686 "filters/ffmpeg_demuxer_unittest.cc",
672 "filters/ffmpeg_glue_unittest.cc", 687 "filters/ffmpeg_glue_unittest.cc",
673 "filters/ffmpeg_video_decoder_unittest.cc",
674 "filters/in_memory_url_protocol_unittest.cc",
675 ] 688 ]
689
690 # Even if FFmpeg is enabled we do not want these files on Android.
691 # TODO(watk): Refactor tests that could be made to run on Android.
692 if (!is_android) {
693 sources += [
694 "filters/audio_file_reader_unittest.cc",
695 "filters/blocking_url_protocol_unittest.cc",
696 "filters/ffmpeg_video_decoder_unittest.cc",
697 "filters/in_memory_url_protocol_unittest.cc",
698 ]
699 }
676 } 700 }
677 701
678 if (media_use_libwebm) { 702 if (media_use_libwebm) {
679 sources += [ "capture/webm_muxer_unittest.cc" ] 703 sources += [ "capture/webm_muxer_unittest.cc" ]
680 deps += [ "//third_party/libwebm" ] 704 deps += [ "//third_party/libwebm" ]
681 } 705 }
682 706
683 if (current_cpu != "arm" && is_chromeos) { 707 if (current_cpu != "arm" && is_chromeos) {
684 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] 708 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ]
685 } 709 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 "//media/base:test_support", 867 "//media/base:test_support",
844 "//media/test:pipeline_integration_tests", 868 "//media/test:pipeline_integration_tests",
845 "//testing/gmock", 869 "//testing/gmock",
846 "//testing/gtest", 870 "//testing/gtest",
847 "//third_party/ffmpeg", 871 "//third_party/ffmpeg",
848 "//ui/gfx/geometry", 872 "//ui/gfx/geometry",
849 "//ui/gfx:test_support", 873 "//ui/gfx:test_support",
850 ] 874 ]
851 } 875 }
852 } 876 }
OLDNEW
« no previous file with comments | « no previous file | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698