BUILD.gn 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 2019 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("//build/config/features.gni")
  5. import("//build/config/ui.gni")
  6. import("//media/gpu/args.gni")
  7. import("//media/media_options.gni")
  8. import("//ui/gl/features.gni")
  9. assert(is_mac)
  10. import("//build/config/mac/mac_sdk.gni")
  11. source_set("mac") {
  12. defines = [ "MEDIA_GPU_IMPLEMENTATION" ]
  13. visibility = [ "//media/gpu" ]
  14. sources = [
  15. "vp9_super_frame_bitstream_filter.cc",
  16. "vp9_super_frame_bitstream_filter.h",
  17. "vt_config_util.h",
  18. "vt_config_util.mm",
  19. "vt_video_decode_accelerator_mac.cc",
  20. "vt_video_decode_accelerator_mac.h",
  21. "vt_video_encode_accelerator_mac.cc",
  22. "vt_video_encode_accelerator_mac.h",
  23. ]
  24. public_deps = [ "//third_party/webrtc_overrides:webrtc_component" ]
  25. frameworks = [
  26. "CoreFoundation.framework",
  27. "CoreMedia.framework",
  28. "Foundation.framework",
  29. "IOSurface.framework",
  30. "QuartzCore.framework",
  31. "VideoToolbox.framework",
  32. ]
  33. deps = [
  34. "//base",
  35. "//components/crash/core/common:crash_key",
  36. "//gpu/command_buffer/service:gles2",
  37. "//gpu/ipc/service",
  38. "//media",
  39. "//media/gpu:common",
  40. "//ui/gfx/geometry",
  41. "//ui/gl",
  42. ]
  43. }
  44. source_set("unit_tests") {
  45. testonly = true
  46. frameworks = [
  47. "CoreFoundation.framework",
  48. "CoreMedia.framework",
  49. ]
  50. deps = [
  51. "//media:test_support",
  52. "//media/gpu:test_support",
  53. "//testing/gtest",
  54. ]
  55. if (media_use_ffmpeg) {
  56. deps += [ "//third_party/ffmpeg" ]
  57. }
  58. sources = [
  59. "vp9_super_frame_bitstream_filter_unittest.cc",
  60. "vt_config_util_unittest.cc",
  61. ]
  62. }