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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 configs += [ | 213 configs += [ |
214 # This target uses the ALLOCATOR_SHIM define. | 214 # This target uses the ALLOCATOR_SHIM define. |
215 "//base/allocator:allocator_shim_define", | 215 "//base/allocator:allocator_shim_define", |
216 "//build/config:precompiled_headers", | 216 "//build/config:precompiled_headers", |
217 "//media:media_config", | 217 "//media:media_config", |
218 "//media:media_implementation", | 218 "//media:media_implementation", |
219 ] | 219 ] |
220 | 220 |
221 if (media_use_ffmpeg) { | 221 if (media_use_ffmpeg) { |
222 sources += [ | 222 sources += [ |
223 "audio_video_metadata_extractor.cc", | |
224 "audio_video_metadata_extractor.h", | |
225 "container_names.cc", | 223 "container_names.cc", |
226 "container_names.h", | 224 "container_names.h", |
227 "media_file_checker.cc", | |
228 "media_file_checker.h", | |
229 ] | 225 ] |
| 226 if (!is_android) { |
| 227 sources += [ |
| 228 "audio_video_metadata_extractor.cc", |
| 229 "audio_video_metadata_extractor.h", |
| 230 "media_file_checker.cc", |
| 231 "media_file_checker.h", |
| 232 ] |
| 233 } |
230 | 234 |
231 deps += [ "//third_party/ffmpeg" ] | 235 deps += [ "//third_party/ffmpeg" ] |
232 } | 236 } |
233 | 237 |
234 if (enable_browser_cdms) { | 238 if (enable_browser_cdms) { |
235 sources += [ | 239 sources += [ |
236 "browser_cdm.cc", | 240 "browser_cdm.cc", |
237 "browser_cdm.h", | 241 "browser_cdm.h", |
238 "browser_cdm_factory.cc", | 242 "browser_cdm_factory.cc", |
239 "browser_cdm_factory.h", | 243 "browser_cdm_factory.h", |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 ] | 429 ] |
426 deps = [ | 430 deps = [ |
427 ":test_support", | 431 ":test_support", |
428 "//gpu/command_buffer/common", | 432 "//gpu/command_buffer/common", |
429 "//media", | 433 "//media", |
430 "//skia", | 434 "//skia", |
431 "//testing/gmock", | 435 "//testing/gmock", |
432 "//testing/gtest", | 436 "//testing/gtest", |
433 ] | 437 ] |
434 | 438 |
435 if (media_use_ffmpeg) { | 439 # Even if FFmpeg is enabled on Android we don't want these. |
| 440 # TODO(watk): Refactor tests that could be made to run on Android. |
| 441 if (media_use_ffmpeg && !is_android) { |
436 sources += [ | 442 sources += [ |
437 "audio_video_metadata_extractor_unittest.cc", | 443 "audio_video_metadata_extractor_unittest.cc", |
438 "media_file_checker_unittest.cc", | 444 "media_file_checker_unittest.cc", |
439 ] | 445 ] |
440 } | 446 } |
441 | 447 |
442 if (!is_android) { | 448 if (!is_android) { |
443 sources += [ "container_names_unittest.cc" ] | 449 sources += [ "container_names_unittest.cc" ] |
444 } else { | 450 } else { |
445 deps += [ "//ui/gl" ] | 451 deps += [ "//ui/gl" ] |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 if (is_posix) { | 537 if (is_posix) { |
532 yasm_flags += [ "-DELF" ] | 538 yasm_flags += [ "-DELF" ] |
533 if (current_cpu == "x64") { | 539 if (current_cpu == "x64") { |
534 # TODO(ajwong): Why isn't this true in mac? | 540 # TODO(ajwong): Why isn't this true in mac? |
535 yasm_flags += [ "-DPIC" ] | 541 yasm_flags += [ "-DPIC" ] |
536 } | 542 } |
537 } | 543 } |
538 } | 544 } |
539 } | 545 } |
540 } | 546 } |
OLD | NEW |