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") |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 "wall_clock_time_source.cc", | 197 "wall_clock_time_source.cc", |
198 "wall_clock_time_source.h", | 198 "wall_clock_time_source.h", |
199 "yuv_convert.cc", | 199 "yuv_convert.cc", |
200 "yuv_convert.h", | 200 "yuv_convert.h", |
201 ] | 201 ] |
202 | 202 |
203 allow_circular_includes_from = [] | 203 allow_circular_includes_from = [] |
204 defines = [] | 204 defines = [] |
205 public_deps = [] | 205 public_deps = [] |
206 deps = [ | 206 deps = [ |
207 ":media_resources", | |
207 "//ui/events:events_base", | 208 "//ui/events:events_base", |
208 "//skia", | 209 "//skia", |
209 ] | 210 ] |
210 libs = [] | 211 libs = [] |
211 configs += [ | 212 configs += [ |
212 # This target uses the ALLOCATOR_SHIM define. | 213 # This target uses the ALLOCATOR_SHIM define. |
213 "//base/allocator:allocator_shim_define", | 214 "//base/allocator:allocator_shim_define", |
214 "//build/config:precompiled_headers", | 215 "//build/config:precompiled_headers", |
215 "//media:media_config", | 216 "//media:media_config", |
216 "//media:media_implementation", | 217 "//media:media_implementation", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
287 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 288 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
288 | 289 |
289 if (is_linux || is_win) { | 290 if (is_linux || is_win) { |
290 sources += [ | 291 sources += [ |
291 "keyboard_event_counter.cc", | 292 "keyboard_event_counter.cc", |
292 "keyboard_event_counter.h", | 293 "keyboard_event_counter.h", |
293 ] | 294 ] |
294 } | 295 } |
295 } | 296 } |
296 | 297 |
298 # Minimal resources target so chrome/ doesn't need to depend on all of media. | |
299 source_set("media_resources") { | |
Nico
2015/09/24 00:37:16
This seems fiddly to me. That's a source_set, so t
ajm
2015/09/24 00:45:39
Yep. It's pretty tiny, and I don't expect it to ge
| |
300 sources = [ | |
301 "media_resources.cc", | |
302 "media_resources.h", | |
303 ] | |
304 deps = [ | |
305 "//base", | |
306 ] | |
307 } | |
308 | |
297 # Minimal media component for media/cast on iOS. | 309 # Minimal media component for media/cast on iOS. |
298 config("base_for_cast_ios_dependent_config") { | 310 config("base_for_cast_ios_dependent_config") { |
299 defines = [ "MEDIA_FOR_CAST_IOS" ] | 311 defines = [ "MEDIA_FOR_CAST_IOS" ] |
300 } | 312 } |
301 | 313 |
302 if (is_ios) { | 314 if (is_ios) { |
303 source_set("base_for_cast_ios") { | 315 source_set("base_for_cast_ios") { |
304 sources = [ | 316 sources = [ |
305 "simd/convert_rgb_to_yuv.h", | 317 "simd/convert_rgb_to_yuv.h", |
306 "simd/convert_rgb_to_yuv_c.cc", | 318 "simd/convert_rgb_to_yuv_c.cc", |
(...skipping 22 matching lines...) Expand all Loading... | |
329 | 341 |
330 source_set("test_support") { | 342 source_set("test_support") { |
331 testonly = true | 343 testonly = true |
332 sources = [ | 344 sources = [ |
333 "fake_audio_render_callback.cc", | 345 "fake_audio_render_callback.cc", |
334 "fake_audio_render_callback.h", | 346 "fake_audio_render_callback.h", |
335 "fake_audio_renderer_sink.cc", | 347 "fake_audio_renderer_sink.cc", |
336 "fake_audio_renderer_sink.h", | 348 "fake_audio_renderer_sink.h", |
337 "fake_demuxer_stream.cc", | 349 "fake_demuxer_stream.cc", |
338 "fake_demuxer_stream.h", | 350 "fake_demuxer_stream.h", |
351 "fake_media_resources.cc", | |
352 "fake_media_resources.h", | |
339 "fake_output_device.cc", | 353 "fake_output_device.cc", |
340 "fake_output_device.h", | 354 "fake_output_device.h", |
341 "fake_text_track_stream.cc", | 355 "fake_text_track_stream.cc", |
342 "fake_text_track_stream.h", | 356 "fake_text_track_stream.h", |
343 "gmock_callback_support.h", | 357 "gmock_callback_support.h", |
344 "mock_audio_renderer_sink.cc", | 358 "mock_audio_renderer_sink.cc", |
345 "mock_audio_renderer_sink.h", | 359 "mock_audio_renderer_sink.h", |
346 "mock_demuxer_host.cc", | 360 "mock_demuxer_host.cc", |
347 "mock_demuxer_host.h", | 361 "mock_demuxer_host.h", |
348 "mock_filters.cc", | 362 "mock_filters.cc", |
349 "mock_filters.h", | 363 "mock_filters.h", |
350 "mock_media_log.cc", | 364 "mock_media_log.cc", |
351 "mock_media_log.h", | 365 "mock_media_log.h", |
352 "test_data_util.cc", | 366 "test_data_util.cc", |
353 "test_data_util.h", | 367 "test_data_util.h", |
354 "test_helpers.cc", | 368 "test_helpers.cc", |
355 "test_helpers.h", | 369 "test_helpers.h", |
356 ] | 370 ] |
357 configs += [ "//media:media_config" ] | 371 configs += [ "//media:media_config" ] |
358 deps = [ | 372 deps = [ |
373 ":media_resources", | |
359 "//testing/gmock", | 374 "//testing/gmock", |
360 ] | 375 ] |
361 } | 376 } |
362 | 377 |
363 source_set("unittests") { | 378 source_set("unittests") { |
364 testonly = true | 379 testonly = true |
365 sources = [ | 380 sources = [ |
366 "audio_block_fifo_unittest.cc", | 381 "audio_block_fifo_unittest.cc", |
367 "audio_buffer_converter_unittest.cc", | 382 "audio_buffer_converter_unittest.cc", |
368 "audio_buffer_queue_unittest.cc", | 383 "audio_buffer_queue_unittest.cc", |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
527 if (is_posix) { | 542 if (is_posix) { |
528 yasm_flags += [ "-DELF" ] | 543 yasm_flags += [ "-DELF" ] |
529 if (current_cpu == "x64") { | 544 if (current_cpu == "x64") { |
530 # TODO(ajwong): Why isn't this true in mac? | 545 # TODO(ajwong): Why isn't this true in mac? |
531 yasm_flags += [ "-DPIC" ] | 546 yasm_flags += [ "-DPIC" ] |
532 } | 547 } |
533 } | 548 } |
534 } | 549 } |
535 } | 550 } |
536 } | 551 } |
OLD | NEW |