Chromium Code Reviews| 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") |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 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" ] |
| 34 } | 34 } |
| 35 if (proprietary_codecs && enable_hevc_demuxing) { | |
|
wolenetz
2015/09/02 20:43:18
ditto my content/...gn question about 'enable_hevc
DaleCurtis
2015/09/02 21:20:41
This file imports the media_options.gni file so it
servolk
2015/09/03 00:17:51
Yes, in this case we are importing enable_hevc_dem
| |
| 36 defines += [ "ENABLE_HEVC_DEMUXING" ] | |
| 37 } | |
| 35 } | 38 } |
| 36 | 39 |
| 37 config("media_implementation") { | 40 config("media_implementation") { |
| 38 defines = [ "MEDIA_IMPLEMENTATION" ] | 41 defines = [ "MEDIA_IMPLEMENTATION" ] |
| 39 } | 42 } |
| 40 | 43 |
| 41 config("media_dependent_config") { | 44 config("media_dependent_config") { |
| 42 defines = [] | 45 defines = [] |
| 43 if (!media_use_libvpx) { | 46 if (!media_use_libvpx) { |
| 44 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 47 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 320 if (proprietary_codecs) { | 323 if (proprietary_codecs) { |
| 321 sources += [ | 324 sources += [ |
| 322 "filters/ffmpeg_aac_bitstream_converter.cc", | 325 "filters/ffmpeg_aac_bitstream_converter.cc", |
| 323 "filters/ffmpeg_aac_bitstream_converter.h", | 326 "filters/ffmpeg_aac_bitstream_converter.h", |
| 324 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | 327 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", |
| 325 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", | 328 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", |
| 326 ] | 329 ] |
| 327 } | 330 } |
| 328 } | 331 } |
| 329 | 332 |
| 333 if (proprietary_codecs && enable_hevc_demuxing) { | |
| 334 sources += [ | |
| 335 "filters/h265_parser.cc", | |
| 336 "filters/h265_parser.h", | |
| 337 "formats/mp4/hevc.cc", | |
| 338 "formats/mp4/hevc.h", | |
| 339 ] | |
| 340 if (media_use_ffmpeg) { | |
| 341 sources += [ | |
| 342 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", | |
| 343 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", | |
| 344 ] | |
| 345 } | |
| 346 } | |
| 347 | |
| 330 if (current_cpu == "arm" && arm_use_neon) { | 348 if (current_cpu == "arm" && arm_use_neon) { |
| 331 defines += [ "USE_NEON" ] | 349 defines += [ "USE_NEON" ] |
| 332 } | 350 } |
| 333 | 351 |
| 334 if (media_use_libvpx) { | 352 if (media_use_libvpx) { |
| 335 sources += [ | 353 sources += [ |
| 336 "filters/vpx_video_decoder.cc", | 354 "filters/vpx_video_decoder.cc", |
| 337 "filters/vpx_video_decoder.h", | 355 "filters/vpx_video_decoder.h", |
| 338 ] | 356 ] |
| 339 deps += [ "//third_party/libvpx" ] | 357 deps += [ "//third_party/libvpx" ] |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 653 } | 671 } |
| 654 | 672 |
| 655 if (current_cpu != "arm" && is_chromeos) { | 673 if (current_cpu != "arm" && is_chromeos) { |
| 656 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 674 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 657 } | 675 } |
| 658 | 676 |
| 659 if (proprietary_codecs) { | 677 if (proprietary_codecs) { |
| 660 sources += [ | 678 sources += [ |
| 661 "cdm/cenc_utils_unittest.cc", | 679 "cdm/cenc_utils_unittest.cc", |
| 662 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 680 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
| 681 "filters/h265_parser_unittest.cc", | |
| 663 "formats/common/stream_parser_test_base.cc", | 682 "formats/common/stream_parser_test_base.cc", |
| 664 "formats/common/stream_parser_test_base.h", | 683 "formats/common/stream_parser_test_base.h", |
| 665 "formats/mp2t/es_adapter_video_unittest.cc", | 684 "formats/mp2t/es_adapter_video_unittest.cc", |
| 666 "formats/mp2t/es_parser_adts_unittest.cc", | 685 "formats/mp2t/es_parser_adts_unittest.cc", |
| 667 "formats/mp2t/es_parser_h264_unittest.cc", | 686 "formats/mp2t/es_parser_h264_unittest.cc", |
| 668 "formats/mp2t/es_parser_mpeg1audio_unittest.cc", | 687 "formats/mp2t/es_parser_mpeg1audio_unittest.cc", |
| 669 "formats/mp2t/es_parser_test_base.cc", | 688 "formats/mp2t/es_parser_test_base.cc", |
| 670 "formats/mp2t/es_parser_test_base.h", | 689 "formats/mp2t/es_parser_test_base.h", |
| 671 "formats/mp2t/mp2t_stream_parser_unittest.cc", | 690 "formats/mp2t/mp2t_stream_parser_unittest.cc", |
| 672 "formats/mp2t/timestamp_unroller_unittest.cc", | 691 "formats/mp2t/timestamp_unroller_unittest.cc", |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 807 "//media/base:test_support", | 826 "//media/base:test_support", |
| 808 "//media/test:pipeline_integration_tests", | 827 "//media/test:pipeline_integration_tests", |
| 809 "//testing/gmock", | 828 "//testing/gmock", |
| 810 "//testing/gtest", | 829 "//testing/gtest", |
| 811 "//third_party/ffmpeg", | 830 "//third_party/ffmpeg", |
| 812 "//ui/gfx/geometry", | 831 "//ui/gfx/geometry", |
| 813 "//ui/gfx:test_support", | 832 "//ui/gfx:test_support", |
| 814 ] | 833 ] |
| 815 } | 834 } |
| 816 } | 835 } |
| OLD | NEW |