| # Copyright 2018 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # There should be only one media session service. It is currently in the |
| # browser process. So, only //content/browser should link to this target. |
| # Others modules should only need the public targets. |
| import("//services/catalog/public/tools/catalog.gni") |
| import("//services/service_manager/public/cpp/service.gni") |
| import("//services/service_manager/public/service_manifest.gni") |
| import("//testing/test.gni") |
| |
| source_set("lib") { |
| sources = [ |
| "audio_focus_manager.cc", |
| "audio_focus_manager.h", |
| "audio_focus_manager_metrics_helper.cc", |
| "audio_focus_manager_metrics_helper.h", |
| "media_controller.cc", |
| "media_controller.h", |
| "media_session_service.cc", |
| "media_session_service.h", |
| ] |
| |
| configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| |
| deps = [ |
| "//mojo/public/cpp/bindings", |
| "//services/media_session/public/cpp", |
| "//services/media_session/public/mojom", |
| ] |
| |
| public_deps = [ |
| "//base", |
| "//services/service_manager/public/cpp", |
| ] |
| } |
| |
| service_manifest("manifest") { |
| name = "media_session" |
| source = "manifest.json" |
| } |
| |
| source_set("tests") { |
| testonly = true |
| sources = [ |
| "audio_focus_manager_unittest.cc", |
| "media_controller_unittest.cc", |
| "media_session_service_unittest.cc", |
| "mock_media_session.cc", |
| "mock_media_session.h", |
| ] |
| |
| deps = [ |
| ":lib", |
| "//base", |
| "//base/test:test_support", |
| "//services/media_session/public/cpp", |
| "//services/media_session/public/cpp/test:test_support", |
| "//services/media_session/public/mojom", |
| "//services/service_manager/public/cpp/test:test_support", |
| "//testing/gtest", |
| ] |
| } |