BUILD.gn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 2018 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("//testing/test.gni")
  5. # There should be only one media session service. It is currently in the
  6. # browser process. So, only //content/browser should link to this target.
  7. # Others modules should only need the public targets.
  8. source_set("lib") {
  9. sources = [
  10. "audio_focus_manager.cc",
  11. "audio_focus_manager.h",
  12. "audio_focus_request.cc",
  13. "audio_focus_request.h",
  14. "media_controller.cc",
  15. "media_controller.h",
  16. "media_session_service_impl.cc",
  17. "media_session_service_impl.h",
  18. ]
  19. configs += [ "//build/config/compiler:wexit_time_destructors" ]
  20. deps = [
  21. "//mojo/public/cpp/bindings",
  22. "//services/media_session/public/cpp",
  23. "//services/media_session/public/mojom",
  24. "//skia",
  25. ]
  26. public_deps = [ "//base" ]
  27. }
  28. source_set("tests") {
  29. testonly = true
  30. sources = [
  31. "audio_focus_manager_unittest.cc",
  32. "media_controller_unittest.cc",
  33. "media_session_service_impl_unittest.cc",
  34. ]
  35. deps = [
  36. ":lib",
  37. "//base",
  38. "//base/test:test_support",
  39. "//build:chromeos_buildflags",
  40. "//services/media_session/public/cpp",
  41. "//services/media_session/public/cpp/test:test_support",
  42. "//services/media_session/public/mojom",
  43. "//testing/gtest",
  44. ]
  45. }