BUILD.gn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 2016 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//media/media_options.gni")
  5. assert(media_use_ffmpeg)
  6. source_set("ffmpeg") {
  7. # Do not expand the visibility here without double-checking with OWNERS, this
  8. # is a roll-up target which is part of the //media component. Most other DEPs
  9. # should be using //media and not directly DEP this roll-up target.
  10. visibility = [
  11. "//media",
  12. "//media/filters",
  13. ]
  14. configs += [ "//media:subcomponent_config" ]
  15. sources = [
  16. "ffmpeg_common.cc",
  17. "ffmpeg_common.h",
  18. "ffmpeg_decoding_loop.cc",
  19. "ffmpeg_decoding_loop.h",
  20. "ffmpeg_deleters.h",
  21. "scoped_av_packet.cc",
  22. "scoped_av_packet.h",
  23. ]
  24. deps = [
  25. "//base",
  26. "//media/base",
  27. "//media/formats",
  28. "//third_party/ffmpeg",
  29. "//third_party/ffmpeg:ffmpeg_features",
  30. ]
  31. }
  32. source_set("unit_tests") {
  33. testonly = true
  34. sources = [
  35. "ffmpeg_common_unittest.cc",
  36. "scoped_av_packet_unittest.cc",
  37. ]
  38. configs += [ "//media:media_config" ]
  39. deps = [
  40. "//base",
  41. "//media:test_support",
  42. "//testing/gtest",
  43. "//third_party/ffmpeg",
  44. ]
  45. }
  46. source_set("ffmpeg_regression_tests") {
  47. testonly = true
  48. sources = [ "ffmpeg_regression_tests.cc" ]
  49. deps = [
  50. "//base",
  51. "//media",
  52. "//media/test:pipeline_integration_test_base",
  53. "//testing/gmock",
  54. "//third_party/ffmpeg",
  55. ]
  56. }