| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 "video/picture.cc", | 247 "video/picture.cc", |
| 248 "video/picture.h", | 248 "video/picture.h", |
| 249 "video/video_decode_accelerator.cc", | 249 "video/video_decode_accelerator.cc", |
| 250 "video/video_decode_accelerator.h", | 250 "video/video_decode_accelerator.h", |
| 251 "video/video_encode_accelerator.cc", | 251 "video/video_encode_accelerator.cc", |
| 252 "video/video_encode_accelerator.h", | 252 "video/video_encode_accelerator.h", |
| 253 ] | 253 ] |
| 254 | 254 |
| 255 configs += [ | 255 configs += [ |
| 256 ":media_config", | 256 ":media_config", |
| 257 |
| 257 # TODO(wolenetz): Fix size_t to int trunctaion in win64. | 258 # TODO(wolenetz): Fix size_t to int trunctaion in win64. |
| 258 # See http://crbug.com/171009 | 259 # See http://crbug.com/171009 |
| 259 "//build/config/compiler:no_size_t_to_int_warning", | 260 "//build/config/compiler:no_size_t_to_int_warning", |
| 260 ] | 261 ] |
| 261 all_dependent_configs = [ ":media_dependent_config" ] | 262 all_dependent_configs = [ ":media_dependent_config" ] |
| 262 | 263 |
| 263 cflags = [] | 264 cflags = [] |
| 264 libs = [] | 265 libs = [] |
| 265 defines = [] | 266 defines = [] |
| 266 deps = [] | 267 deps = [] |
| (...skipping 23 matching lines...) Expand all Loading... |
| 290 if (proprietary_codecs) { | 291 if (proprietary_codecs) { |
| 291 sources += [ | 292 sources += [ |
| 292 "filters/ffmpeg_aac_bitstream_converter.cc", | 293 "filters/ffmpeg_aac_bitstream_converter.cc", |
| 293 "filters/ffmpeg_aac_bitstream_converter.h", | 294 "filters/ffmpeg_aac_bitstream_converter.h", |
| 294 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | 295 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", |
| 295 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", | 296 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", |
| 296 ] | 297 ] |
| 297 } | 298 } |
| 298 } | 299 } |
| 299 | 300 |
| 300 if (cpu_arch == "arm" && arm_use_neon) { | 301 if (current_cpu == "arm" && arm_use_neon) { |
| 301 defines += [ "USE_NEON" ] | 302 defines += [ "USE_NEON" ] |
| 302 } | 303 } |
| 303 | 304 |
| 304 if (media_use_libvpx) { | 305 if (media_use_libvpx) { |
| 305 sources += [ | 306 sources += [ |
| 306 "filters/vpx_video_decoder.cc", | 307 "filters/vpx_video_decoder.cc", |
| 307 "filters/vpx_video_decoder.h", | 308 "filters/vpx_video_decoder.h", |
| 308 ] | 309 ] |
| 309 deps += [ "//third_party/libvpx" ] | 310 deps += [ "//third_party/libvpx" ] |
| 310 } | 311 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 335 deps += [ | 336 deps += [ |
| 336 "//media/base/android", | 337 "//media/base/android", |
| 337 "//media/base/android:media_jni_headers", | 338 "//media/base/android:media_jni_headers", |
| 338 "//media/base/android:video_capture_jni_headers", | 339 "//media/base/android:video_capture_jni_headers", |
| 339 ] | 340 ] |
| 340 if (!is_android_webview_build) { | 341 if (!is_android_webview_build) { |
| 341 deps += [ "//media/base/android:media_java" ] | 342 deps += [ "//media/base/android:media_java" ] |
| 342 } | 343 } |
| 343 } | 344 } |
| 344 | 345 |
| 345 if (cpu_arch != "arm" && is_chromeos) { | 346 if (current_cpu != "arm" && is_chromeos) { |
| 346 sources += [ | 347 sources += [ |
| 347 "filters/h264_bitstream_buffer.cc", | 348 "filters/h264_bitstream_buffer.cc", |
| 348 "filters/h264_bitstream_buffer.h", | 349 "filters/h264_bitstream_buffer.h", |
| 349 ] | 350 ] |
| 350 } | 351 } |
| 351 | 352 |
| 352 if (use_alsa) { | 353 if (use_alsa) { |
| 353 libs += [ "asound" ] | 354 libs += [ "asound" ] |
| 354 defines += [ "USE_ALSA" ] | 355 defines += [ "USE_ALSA" ] |
| 355 sources += [ | 356 sources += [ |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 "filters/audio_decoder_unittest.cc", | 619 "filters/audio_decoder_unittest.cc", |
| 619 "filters/audio_file_reader_unittest.cc", | 620 "filters/audio_file_reader_unittest.cc", |
| 620 "filters/blocking_url_protocol_unittest.cc", | 621 "filters/blocking_url_protocol_unittest.cc", |
| 621 "filters/ffmpeg_demuxer_unittest.cc", | 622 "filters/ffmpeg_demuxer_unittest.cc", |
| 622 "filters/ffmpeg_glue_unittest.cc", | 623 "filters/ffmpeg_glue_unittest.cc", |
| 623 "filters/ffmpeg_video_decoder_unittest.cc", | 624 "filters/ffmpeg_video_decoder_unittest.cc", |
| 624 "filters/in_memory_url_protocol_unittest.cc", | 625 "filters/in_memory_url_protocol_unittest.cc", |
| 625 ] | 626 ] |
| 626 } | 627 } |
| 627 | 628 |
| 628 if (cpu_arch != "arm" && is_chromeos) { | 629 if (current_cpu != "arm" && is_chromeos) { |
| 629 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 630 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 630 } | 631 } |
| 631 | 632 |
| 632 if (proprietary_codecs) { | 633 if (proprietary_codecs) { |
| 633 sources += [ | 634 sources += [ |
| 634 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 635 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
| 635 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 636 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
| 636 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 637 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
| 637 "formats/common/stream_parser_test_base.cc", | 638 "formats/common/stream_parser_test_base.cc", |
| 638 "formats/common/stream_parser_test_base.h", | 639 "formats/common/stream_parser_test_base.h", |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 deps = [ | 793 deps = [ |
| 793 ":media", | 794 ":media", |
| 794 ":shared_memory_support", | 795 ":shared_memory_support", |
| 795 "//base", | 796 "//base", |
| 796 "//ui/gl", | 797 "//ui/gl", |
| 797 "//ui/gfx", | 798 "//ui/gfx", |
| 798 "//ui/gfx/geometry", | 799 "//ui/gfx/geometry", |
| 799 ] | 800 ] |
| 800 } | 801 } |
| 801 } | 802 } |
| OLD | NEW |