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/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 "video_renderer.h", | 167 "video_renderer.h", |
168 "video_rotation.h", | 168 "video_rotation.h", |
169 "video_util.cc", | 169 "video_util.cc", |
170 "video_util.h", | 170 "video_util.h", |
171 "wall_clock_time_source.cc", | 171 "wall_clock_time_source.cc", |
172 "wall_clock_time_source.h", | 172 "wall_clock_time_source.h", |
173 "yuv_convert.cc", | 173 "yuv_convert.cc", |
174 "yuv_convert.h", | 174 "yuv_convert.h", |
175 ] | 175 ] |
176 defines = [] | 176 defines = [] |
177 deps = [ "//skia" ] | 177 deps = [ |
| 178 "//skia", |
| 179 ] |
178 libs = [] | 180 libs = [] |
179 configs += [ "//media:media_config" ] | 181 configs += [ "//media:media_config" ] |
180 | 182 |
181 if (media_use_ffmpeg) { | 183 if (media_use_ffmpeg) { |
182 sources += [ | 184 sources += [ |
183 "audio_video_metadata_extractor.cc", | 185 "audio_video_metadata_extractor.cc", |
184 "audio_video_metadata_extractor.h", | 186 "audio_video_metadata_extractor.h", |
185 "container_names.cc", | 187 "container_names.cc", |
186 "container_names.h", | 188 "container_names.h", |
187 "media_file_checker.cc", | 189 "media_file_checker.cc", |
(...skipping 15 matching lines...) Expand all Loading... |
203 } else if (is_win) { | 205 } else if (is_win) { |
204 sources += [ "media_win.cc" ] | 206 sources += [ "media_win.cc" ] |
205 } else if (is_posix) { | 207 } else if (is_posix) { |
206 sources += [ "media_posix.cc" ] | 208 sources += [ "media_posix.cc" ] |
207 } | 209 } |
208 | 210 |
209 if (is_linux && use_x11) { | 211 if (is_linux && use_x11) { |
210 configs += [ | 212 configs += [ |
211 "//build/config/linux:x11", | 213 "//build/config/linux:x11", |
212 "//build/config/linux:xext", | 214 "//build/config/linux:xext", |
213 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux:BUI
LD.gn | 215 |
214 # "//build/config/linux:xdamage", | 216 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux
:BUILD.gn |
215 # "//build/config/linux:xfixes", | 217 # "//build/config/linux:xdamage", |
216 # "//build/config/linux:xtst", | 218 # "//build/config/linux:xfixes", |
| 219 # "//build/config/linux:xtst", |
217 ] | 220 ] |
218 sources += [ "user_input_monitor_linux.cc" ] | 221 sources += [ "user_input_monitor_linux.cc" ] |
219 deps += [ | 222 deps += [ |
220 "//ui/events:events_base", | 223 "//ui/events:events_base", |
221 "//ui/gfx/x", | 224 "//ui/gfx/x", |
222 ] | 225 ] |
223 } else if (is_mac) { | 226 } else if (is_mac) { |
224 sources += [ "user_input_monitor_mac.cc" ] | 227 sources += [ "user_input_monitor_mac.cc" ] |
225 } else if (is_win) { | 228 } else if (is_win) { |
226 sources += [ "user_input_monitor_win.cc" ] | 229 sources += [ "user_input_monitor_win.cc" ] |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 "mock_demuxer_host.cc", | 276 "mock_demuxer_host.cc", |
274 "mock_demuxer_host.h", | 277 "mock_demuxer_host.h", |
275 "mock_filters.cc", | 278 "mock_filters.cc", |
276 "mock_filters.h", | 279 "mock_filters.h", |
277 "test_data_util.cc", | 280 "test_data_util.cc", |
278 "test_data_util.h", | 281 "test_data_util.h", |
279 "test_helpers.cc", | 282 "test_helpers.cc", |
280 "test_helpers.h", | 283 "test_helpers.h", |
281 ] | 284 ] |
282 configs += [ "//media:media_config" ] | 285 configs += [ "//media:media_config" ] |
283 deps = [ "//testing/gmock" ] | 286 deps = [ |
| 287 "//testing/gmock", |
| 288 ] |
284 } | 289 } |
285 | 290 |
286 source_set("unittests") { | 291 source_set("unittests") { |
287 testonly = true | 292 testonly = true |
288 sources = [ | 293 sources = [ |
289 "audio_block_fifo_unittest.cc", | 294 "audio_block_fifo_unittest.cc", |
290 "audio_buffer_converter_unittest.cc", | 295 "audio_buffer_converter_unittest.cc", |
291 "audio_buffer_unittest.cc", | 296 "audio_buffer_unittest.cc", |
292 "audio_buffer_queue_unittest.cc", | 297 "audio_buffer_queue_unittest.cc", |
293 "audio_bus_unittest.cc", | 298 "audio_bus_unittest.cc", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 ] | 348 ] |
344 | 349 |
345 if (media_use_ffmpeg) { | 350 if (media_use_ffmpeg) { |
346 sources += [ | 351 sources += [ |
347 "audio_video_metadata_extractor_unittest.cc", | 352 "audio_video_metadata_extractor_unittest.cc", |
348 "media_file_checker_unittest.cc", | 353 "media_file_checker_unittest.cc", |
349 ] | 354 ] |
350 } | 355 } |
351 | 356 |
352 if (!is_android) { | 357 if (!is_android) { |
353 sources += [ | 358 sources += [ "container_names_unittest.cc" ] |
354 "container_names_unittest.cc", | |
355 ] | |
356 } else { | 359 } else { |
357 deps += [ "//ui/gl" ] | 360 deps += [ "//ui/gl" ] |
358 } | 361 } |
359 | 362 |
360 if (cpu_arch == "x86" || cpu_arch == "x64") { | 363 if (cpu_arch == "x86" || cpu_arch == "x64") { |
361 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] | 364 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] |
362 } | 365 } |
363 } | 366 } |
364 | 367 |
365 source_set("perftests") { | 368 source_set("perftests") { |
366 testonly = true | 369 testonly = true |
367 sources = [ | 370 sources = [ |
368 "audio_bus_perftest.cc", | 371 "audio_bus_perftest.cc", |
369 "audio_converter_perftest.cc", | 372 "audio_converter_perftest.cc", |
370 "run_all_perftests.cc", | 373 "run_all_perftests.cc", |
371 "sinc_resampler_perftest.cc", | 374 "sinc_resampler_perftest.cc", |
372 "vector_math_perftest.cc", | 375 "vector_math_perftest.cc", |
373 "yuv_convert_perftest.cc", | 376 "yuv_convert_perftest.cc", |
374 ] | 377 ] |
375 configs += [ "//media:media_config" ] | 378 configs += [ "//media:media_config" ] |
376 deps = [ | 379 deps = [ |
377 ":base", | 380 ":base", |
378 ":test_support", | 381 ":test_support", |
379 "//testing/gmock", | 382 "//testing/gmock", |
380 "//testing/gtest", | 383 "//testing/gtest", |
381 ] | 384 ] |
382 | 385 |
383 if (media_use_ffmpeg) { | 386 if (media_use_ffmpeg) { |
384 sources += [ | 387 sources += [ "demuxer_perftest.cc" ] |
385 "demuxer_perftest.cc", | |
386 ] | |
387 } | 388 } |
388 | 389 |
389 if (is_android) { | 390 if (is_android) { |
390 deps += [ "//ui/gl"] | 391 deps += [ "//ui/gl" ] |
391 } | 392 } |
392 } | 393 } |
393 | 394 |
394 if (cpu_arch == "x86" || cpu_arch == "x64") { | 395 if (cpu_arch == "x86" || cpu_arch == "x64") { |
395 source_set("media_sse2") { | 396 source_set("media_sse2") { |
396 sources = [ | 397 sources = [ |
397 "simd/convert_rgb_to_yuv_sse2.cc", | 398 "simd/convert_rgb_to_yuv_sse2.cc", |
398 "simd/convert_rgb_to_yuv_ssse3.cc", | 399 "simd/convert_rgb_to_yuv_ssse3.cc", |
399 "simd/filter_yuv_sse2.cc", | 400 "simd/filter_yuv_sse2.cc", |
400 ] | 401 ] |
(...skipping 13 matching lines...) Expand all Loading... |
414 "simd/linear_scale_yuv_to_rgb_mmx.asm", | 415 "simd/linear_scale_yuv_to_rgb_mmx.asm", |
415 "simd/linear_scale_yuv_to_rgb_sse.asm", | 416 "simd/linear_scale_yuv_to_rgb_sse.asm", |
416 "simd/scale_yuv_to_rgb_mmx.asm", | 417 "simd/scale_yuv_to_rgb_mmx.asm", |
417 "simd/scale_yuv_to_rgb_sse.asm", | 418 "simd/scale_yuv_to_rgb_sse.asm", |
418 ] | 419 ] |
419 | 420 |
420 # TODO(ajwong): Only export if shared_library build... | 421 # TODO(ajwong): Only export if shared_library build... |
421 yasm_flags = [ | 422 yasm_flags = [ |
422 "-DCHROMIUM", | 423 "-DCHROMIUM", |
423 "-DEXPORT_SYMBOLS", | 424 "-DEXPORT_SYMBOLS", |
| 425 |
424 # In addition to the same path as source asm, let yasm %include | 426 # In addition to the same path as source asm, let yasm %include |
425 # search path be relative to src/ per Chromium policy. | 427 # search path be relative to src/ per Chromium policy. |
426 "-I", rebase_path("..", root_build_dir), | 428 "-I", |
| 429 rebase_path("..", root_build_dir), |
427 ] | 430 ] |
428 | 431 |
429 inputs = [ | 432 inputs = [ |
430 "//third_party/x86inc/x86inc.asm", | 433 "//third_party/x86inc/x86inc.asm", |
431 "simd/convert_rgb_to_yuv_ssse3.inc", | 434 "simd/convert_rgb_to_yuv_ssse3.inc", |
432 "simd/convert_yuv_to_rgb_mmx.inc", | 435 "simd/convert_yuv_to_rgb_mmx.inc", |
433 "simd/convert_yuva_to_argb_mmx.inc", | 436 "simd/convert_yuva_to_argb_mmx.inc", |
434 "simd/linear_scale_yuv_to_rgb_mmx.inc", | 437 "simd/linear_scale_yuv_to_rgb_mmx.inc", |
435 "simd/media_export.asm", | 438 "simd/media_export.asm", |
436 "simd/scale_yuv_to_rgb_mmx.inc", | 439 "simd/scale_yuv_to_rgb_mmx.inc", |
(...skipping 11 matching lines...) Expand all Loading... |
448 | 451 |
449 if (is_mac || is_ios) { | 452 if (is_mac || is_ios) { |
450 yasm_flags += [ | 453 yasm_flags += [ |
451 "-DPREFIX", | 454 "-DPREFIX", |
452 "-DMACHO", | 455 "-DMACHO", |
453 ] | 456 ] |
454 } else { | 457 } else { |
455 if (is_posix) { | 458 if (is_posix) { |
456 yasm_flags += [ "-DELF" ] | 459 yasm_flags += [ "-DELF" ] |
457 if (cpu_arch == "x64") { | 460 if (cpu_arch == "x64") { |
458 # TODO(ajwong): Why isn't this true in mac? | 461 # TODO(ajwong): Why isn't this true in mac? |
459 yasm_flags += [ "-DPIC" ] | 462 yasm_flags += [ "-DPIC" ] |
460 } | 463 } |
461 } | 464 } |
462 } | 465 } |
463 } | 466 } |
464 } | 467 } |
OLD | NEW |