| 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/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| 11 import("//testing/libfuzzer/fuzzer_test.gni") | 11 import("//testing/libfuzzer/fuzzer_test.gni") |
| 12 | 12 |
| 13 config("base_config") { |
| 14 configs = [ |
| 15 # This target uses the ALLOCATOR_SHIM define. |
| 16 "//base/allocator:allocator_shim_define", |
| 17 "//build/config:precompiled_headers", |
| 18 "//build/config/compiler:no_size_t_to_int_warning", |
| 19 "//media:media_config", |
| 20 "//media:media_dependent_config", |
| 21 "//media:media_implementation", |
| 22 ] |
| 23 } |
| 24 |
| 13 source_set("base") { | 25 source_set("base") { |
| 14 # This is part of the media component. | 26 # This is part of the media component. |
| 15 visibility = [ | 27 visibility = [ "//media/*" ] |
| 16 ":*", | |
| 17 "//media", | |
| 18 "//media/capture", | |
| 19 ] | |
| 20 sources = [ | 28 sources = [ |
| 21 "audio_block_fifo.cc", | 29 "audio_block_fifo.cc", |
| 22 "audio_block_fifo.h", | 30 "audio_block_fifo.h", |
| 23 "audio_buffer.cc", | 31 "audio_buffer.cc", |
| 24 "audio_buffer.h", | 32 "audio_buffer.h", |
| 25 "audio_buffer_converter.cc", | 33 "audio_buffer_converter.cc", |
| 26 "audio_buffer_converter.h", | 34 "audio_buffer_converter.h", |
| 27 "audio_buffer_queue.cc", | 35 "audio_buffer_queue.cc", |
| 28 "audio_buffer_queue.h", | 36 "audio_buffer_queue.h", |
| 29 "audio_capturer_source.h", | 37 "audio_capturer_source.h", |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 deps = [ | 249 deps = [ |
| 242 "//base/third_party/dynamic_annotations:dynamic_annotations", | 250 "//base/third_party/dynamic_annotations:dynamic_annotations", |
| 243 "//gpu", | 251 "//gpu", |
| 244 "//media:media_features", | 252 "//media:media_features", |
| 245 "//media:shared_memory_support", | 253 "//media:shared_memory_support", |
| 246 "//skia", | 254 "//skia", |
| 247 "//ui/events:events_base", | 255 "//ui/events:events_base", |
| 248 "//url:url", | 256 "//url:url", |
| 249 ] | 257 ] |
| 250 libs = [] | 258 libs = [] |
| 251 configs += [ | 259 configs += [ ":base_config" ] |
| 252 # This target uses the ALLOCATOR_SHIM define. | |
| 253 "//base/allocator:allocator_shim_define", | |
| 254 "//build/config:precompiled_headers", | |
| 255 "//media:media_config", | |
| 256 "//media:media_implementation", | |
| 257 ] | |
| 258 | 260 |
| 259 if (media_use_ffmpeg) { | 261 if (media_use_ffmpeg) { |
| 260 if (!is_android) { | 262 if (!is_android) { |
| 261 sources += [ | 263 sources += [ |
| 262 "audio_video_metadata_extractor.cc", | 264 "audio_video_metadata_extractor.cc", |
| 263 "audio_video_metadata_extractor.h", | 265 "audio_video_metadata_extractor.h", |
| 264 "media_file_checker.cc", | 266 "media_file_checker.cc", |
| 265 "media_file_checker.h", | 267 "media_file_checker.h", |
| 266 ] | 268 ] |
| 267 } | 269 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 if (current_cpu == "x86" || current_cpu == "x64") { | 308 if (current_cpu == "x86" || current_cpu == "x64") { |
| 307 sources += [ | 309 sources += [ |
| 308 "simd/convert_rgb_to_yuv_sse2.cc", | 310 "simd/convert_rgb_to_yuv_sse2.cc", |
| 309 "simd/convert_rgb_to_yuv_ssse3.cc", | 311 "simd/convert_rgb_to_yuv_ssse3.cc", |
| 310 "simd/convert_yuv_to_rgb_x86.cc", | 312 "simd/convert_yuv_to_rgb_x86.cc", |
| 311 "simd/filter_yuv_sse2.cc", | 313 "simd/filter_yuv_sse2.cc", |
| 312 ] | 314 ] |
| 313 deps += [ ":media_yasm" ] | 315 deps += [ ":media_yasm" ] |
| 314 } | 316 } |
| 315 | 317 |
| 316 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 317 | |
| 318 if (is_linux || is_win) { | 318 if (is_linux || is_win) { |
| 319 sources += [ | 319 sources += [ |
| 320 "keyboard_event_counter.cc", | 320 "keyboard_event_counter.cc", |
| 321 "keyboard_event_counter.h", | 321 "keyboard_event_counter.h", |
| 322 ] | 322 ] |
| 323 } | 323 } |
| 324 } | 324 } |
| 325 | 325 |
| 326 # Minimal media component for media/cast on iOS. | 326 # Minimal media component for media/cast on iOS. |
| 327 config("base_for_cast_ios_dependent_config") { | 327 config("base_for_cast_ios_dependent_config") { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 fuzzer_test("media_container_names_fuzzer") { | 597 fuzzer_test("media_container_names_fuzzer") { |
| 598 sources = [ | 598 sources = [ |
| 599 "container_names_fuzzertest.cc", | 599 "container_names_fuzzertest.cc", |
| 600 ] | 600 ] |
| 601 deps = [ | 601 deps = [ |
| 602 "//base", | 602 "//base", |
| 603 "//media", | 603 "//media", |
| 604 ] | 604 ] |
| 605 } | 605 } |
| OLD | NEW |