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