| 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") |
| 11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
| 12 | 12 |
| 13 # Common configuration for targets in the media directory. | 13 # Common configuration for targets in the media directory. |
| 14 # NOT for exporting. | 14 # NOT for exporting. |
| 15 config("media_config") { | 15 config("media_config") { |
| 16 defines = [ "MEDIA_IMPLEMENTATION" ] | 16 defines = [ "MEDIA_IMPLEMENTATION" ] |
| 17 if (!media_use_libvpx) { | 17 if (!media_use_libvpx) { |
| 18 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 18 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
| 19 } | 19 } |
| 20 if (!media_use_ffmpeg) { | 20 if (!media_use_ffmpeg) { |
| 21 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 21 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
| 22 } | 22 } |
| 23 if (cpu_arch == "arm" && arm_use_neon) { | 23 if (current_cpu == "arm" && arm_use_neon) { |
| 24 defines += [ "USE_NEON" ] | 24 defines += [ "USE_NEON" ] |
| 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" ] |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 if (proprietary_codecs) { | 299 if (proprietary_codecs) { |
| 300 sources += [ | 300 sources += [ |
| 301 "filters/ffmpeg_aac_bitstream_converter.cc", | 301 "filters/ffmpeg_aac_bitstream_converter.cc", |
| 302 "filters/ffmpeg_aac_bitstream_converter.h", | 302 "filters/ffmpeg_aac_bitstream_converter.h", |
| 303 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | 303 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", |
| 304 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", | 304 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", |
| 305 ] | 305 ] |
| 306 } | 306 } |
| 307 } | 307 } |
| 308 | 308 |
| 309 if (cpu_arch == "arm" && arm_use_neon) { | 309 if (current_cpu == "arm" && arm_use_neon) { |
| 310 defines += [ "USE_NEON" ] | 310 defines += [ "USE_NEON" ] |
| 311 } | 311 } |
| 312 | 312 |
| 313 if (media_use_libvpx) { | 313 if (media_use_libvpx) { |
| 314 sources += [ | 314 sources += [ |
| 315 "filters/vpx_video_decoder.cc", | 315 "filters/vpx_video_decoder.cc", |
| 316 "filters/vpx_video_decoder.h", | 316 "filters/vpx_video_decoder.h", |
| 317 ] | 317 ] |
| 318 deps += [ "//third_party/libvpx" ] | 318 deps += [ "//third_party/libvpx" ] |
| 319 } | 319 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 340 deps += [ | 340 deps += [ |
| 341 "//media/base/android", | 341 "//media/base/android", |
| 342 "//media/base/android:media_jni_headers", | 342 "//media/base/android:media_jni_headers", |
| 343 "//media/base/android:video_capture_jni_headers", | 343 "//media/base/android:video_capture_jni_headers", |
| 344 ] | 344 ] |
| 345 if (!is_android_webview_build) { | 345 if (!is_android_webview_build) { |
| 346 deps += [ "//media/base/android:media_java" ] | 346 deps += [ "//media/base/android:media_java" ] |
| 347 } | 347 } |
| 348 } | 348 } |
| 349 | 349 |
| 350 if (cpu_arch != "arm" && is_chromeos) { | 350 if (current_cpu != "arm" && is_chromeos) { |
| 351 sources += [ | 351 sources += [ |
| 352 "filters/h264_bitstream_buffer.cc", | 352 "filters/h264_bitstream_buffer.cc", |
| 353 "filters/h264_bitstream_buffer.h", | 353 "filters/h264_bitstream_buffer.h", |
| 354 ] | 354 ] |
| 355 } | 355 } |
| 356 | 356 |
| 357 if (use_alsa) { | 357 if (use_alsa) { |
| 358 libs += [ "asound" ] | 358 libs += [ "asound" ] |
| 359 defines += [ "USE_ALSA" ] | 359 defines += [ "USE_ALSA" ] |
| 360 sources += [ | 360 sources += [ |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 "filters/audio_decoder_unittest.cc", | 595 "filters/audio_decoder_unittest.cc", |
| 596 "filters/audio_file_reader_unittest.cc", | 596 "filters/audio_file_reader_unittest.cc", |
| 597 "filters/blocking_url_protocol_unittest.cc", | 597 "filters/blocking_url_protocol_unittest.cc", |
| 598 "filters/ffmpeg_demuxer_unittest.cc", | 598 "filters/ffmpeg_demuxer_unittest.cc", |
| 599 "filters/ffmpeg_glue_unittest.cc", | 599 "filters/ffmpeg_glue_unittest.cc", |
| 600 "filters/ffmpeg_video_decoder_unittest.cc", | 600 "filters/ffmpeg_video_decoder_unittest.cc", |
| 601 "filters/in_memory_url_protocol_unittest.cc", | 601 "filters/in_memory_url_protocol_unittest.cc", |
| 602 ] | 602 ] |
| 603 } | 603 } |
| 604 | 604 |
| 605 if (cpu_arch != "arm" && is_chromeos) { | 605 if (current_cpu != "arm" && is_chromeos) { |
| 606 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 606 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 607 } | 607 } |
| 608 | 608 |
| 609 if (proprietary_codecs) { | 609 if (proprietary_codecs) { |
| 610 sources += [ | 610 sources += [ |
| 611 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 611 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
| 612 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 612 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
| 613 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 613 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
| 614 "formats/common/stream_parser_test_base.cc", | 614 "formats/common/stream_parser_test_base.cc", |
| 615 "formats/common/stream_parser_test_base.h", | 615 "formats/common/stream_parser_test_base.h", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 626 "formats/mp4/box_reader_unittest.cc", | 626 "formats/mp4/box_reader_unittest.cc", |
| 627 "formats/mp4/es_descriptor_unittest.cc", | 627 "formats/mp4/es_descriptor_unittest.cc", |
| 628 "formats/mp4/mp4_stream_parser_unittest.cc", | 628 "formats/mp4/mp4_stream_parser_unittest.cc", |
| 629 "formats/mp4/sample_to_group_iterator_unittest.cc", | 629 "formats/mp4/sample_to_group_iterator_unittest.cc", |
| 630 "formats/mp4/track_run_iterator_unittest.cc", | 630 "formats/mp4/track_run_iterator_unittest.cc", |
| 631 "formats/mpeg/adts_stream_parser_unittest.cc", | 631 "formats/mpeg/adts_stream_parser_unittest.cc", |
| 632 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", | 632 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", |
| 633 ] | 633 ] |
| 634 } | 634 } |
| 635 | 635 |
| 636 if (is_win && cpu_arch == "x64") { | 636 if (is_win && current_cpu == "x64") { |
| 637 cflags += [ "/wd4267" ] # TODO(wolenetz): Fix size_t to int trunctaion in w
in64. See | 637 cflags += [ "/wd4267" ] # TODO(wolenetz): Fix size_t to int trunctaion in w
in64. See |
| 638 # http://crbug.com/171009 | 638 # http://crbug.com/171009 |
| 639 } | 639 } |
| 640 | 640 |
| 641 if (is_mac || is_ios) { | 641 if (is_mac || is_ios) { |
| 642 deps += [ "//media/base/mac" ] | 642 deps += [ "//media/base/mac" ] |
| 643 } | 643 } |
| 644 | 644 |
| 645 if (is_mac) { | 645 if (is_mac) { |
| 646 sources += | 646 sources += |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 deps = [ | 774 deps = [ |
| 775 ":media", | 775 ":media", |
| 776 ":shared_memory_support", | 776 ":shared_memory_support", |
| 777 "//base", | 777 "//base", |
| 778 "//ui/gl", | 778 "//ui/gl", |
| 779 "//ui/gfx", | 779 "//ui/gfx", |
| 780 "//ui/gfx/geometry", | 780 "//ui/gfx/geometry", |
| 781 ] | 781 ] |
| 782 } | 782 } |
| 783 } | 783 } |
| OLD | NEW |