Fix emulator build error
[platform/framework/web/chromium-efl.git] / services / media_session / BUILD.gn
1 # Copyright 2018 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//testing/test.gni")
6
7 # There should be only one media session service. It is currently in the
8 # browser process. So, only //content/browser should link to this target.
9 # Others modules should only need the public targets.
10 source_set("lib") {
11   sources = [
12     "audio_focus_manager.cc",
13     "audio_focus_manager.h",
14     "audio_focus_request.cc",
15     "audio_focus_request.h",
16     "media_controller.cc",
17     "media_controller.h",
18     "media_session_service_impl.cc",
19     "media_session_service_impl.h",
20   ]
21
22   configs += [ "//build/config/compiler:wexit_time_destructors" ]
23
24   deps = [
25     "//mojo/public/cpp/bindings",
26     "//services/media_session/public/cpp",
27     "//services/media_session/public/mojom",
28     "//skia",
29   ]
30
31   public_deps = [ "//base" ]
32 }
33
34 source_set("tests") {
35   testonly = true
36   sources = [
37     "audio_focus_manager_unittest.cc",
38     "media_controller_unittest.cc",
39     "media_session_service_impl_unittest.cc",
40   ]
41
42   deps = [
43     ":lib",
44     "//base",
45     "//base/test:test_support",
46     "//build:chromeos_buildflags",
47     "//services/media_session/public/cpp",
48     "//services/media_session/public/cpp/test:test_support",
49     "//services/media_session/public/mojom",
50     "//testing/gtest",
51   ]
52 }