OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # There should be only one resource coordinator. It is currently | 5 # There should be only one resource coordinator. It is currently |
6 # in the browser process. So, only //content/browser should link to this target. | 6 # in the browser process. So, only //content/browser should link to this target. |
7 # Others modules should only need the public targets. | 7 # Others modules should only need the public targets. |
8 import("//services/catalog/public/tools/catalog.gni") | 8 import("//services/catalog/public/tools/catalog.gni") |
9 import("//services/service_manager/public/cpp/service.gni") | 9 import("//services/service_manager/public/cpp/service.gni") |
10 import("//services/service_manager/public/service_manifest.gni") | 10 import("//services/service_manager/public/service_manifest.gni") |
11 import("//services/service_manager/public/tools/test/service_test.gni") | 11 import("//services/service_manager/public/tools/test/service_test.gni") |
12 | 12 |
13 source_set("lib") { | 13 source_set("lib") { |
14 sources = [ | 14 sources = [ |
| 15 "coordination_unit/coordination_unit_factory.cc", |
| 16 "coordination_unit/coordination_unit_factory.h", |
15 "coordination_unit/coordination_unit_impl.cc", | 17 "coordination_unit/coordination_unit_impl.cc", |
16 "coordination_unit/coordination_unit_impl.h", | 18 "coordination_unit/coordination_unit_impl.h", |
17 "coordination_unit/coordination_unit_provider_impl.cc", | 19 "coordination_unit/coordination_unit_provider_impl.cc", |
18 "coordination_unit/coordination_unit_provider_impl.h", | 20 "coordination_unit/coordination_unit_provider_impl.h", |
| 21 "coordination_unit/process_coordination_unit_impl.cc", |
| 22 "coordination_unit/process_coordination_unit_impl.h", |
19 "memory_instrumentation/coordinator_impl.cc", | 23 "memory_instrumentation/coordinator_impl.cc", |
20 "memory_instrumentation/coordinator_impl.h", | 24 "memory_instrumentation/coordinator_impl.h", |
21 "memory_instrumentation/process_map.cc", | 25 "memory_instrumentation/process_map.cc", |
22 "memory_instrumentation/process_map.h", | 26 "memory_instrumentation/process_map.h", |
23 "resource_coordinator_service.cc", | 27 "resource_coordinator_service.cc", |
24 "resource_coordinator_service.h", | 28 "resource_coordinator_service.h", |
25 ] | 29 ] |
26 | 30 |
27 public_deps = [ | 31 public_deps = [ |
28 "//base", | 32 "//base", |
29 "//mojo/public/cpp/bindings", | 33 "//mojo/public/cpp/bindings", |
30 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", | 34 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", |
| 35 "//services/service_manager/public/cpp/standalone_service:standalone_service
", |
31 ] | 36 ] |
32 } | 37 } |
33 | 38 |
34 service_manifest("manifest") { | 39 service_manifest("manifest") { |
35 name = "resource_coordinator" | 40 name = "resource_coordinator" |
36 source = "manifest.json" | 41 source = "manifest.json" |
37 } | 42 } |
38 | 43 |
39 service("resource_coordinator") { | 44 service("resource_coordinator") { |
40 sources = [ | 45 sources = [ |
41 "service_main.cc", | 46 "service_main.cc", |
42 ] | 47 ] |
43 | 48 |
44 deps = [ | 49 deps = [ |
45 ":lib", | 50 ":lib", |
46 "//mojo/public/cpp/system", | 51 "//mojo/public/cpp/system", |
47 ] | 52 ] |
48 } | 53 } |
49 | 54 |
50 source_set("tests") { | 55 source_set("tests") { |
51 testonly = true | 56 testonly = true |
52 | 57 |
53 sources = [ | 58 sources = [ |
54 "coordination_unit/coordination_unit_impl_unittest.cc", | 59 "coordination_unit/coordination_unit_impl_unittest.cc", |
| 60 "coordination_unit/coordination_unit_impl_unittest_util.cc", |
| 61 "coordination_unit/coordination_unit_impl_unittest_util.h", |
| 62 "coordination_unit/process_coordination_unit_impl_unittest.cc", |
55 "memory_instrumentation/coordinator_impl_unittest.cc", | 63 "memory_instrumentation/coordinator_impl_unittest.cc", |
56 "memory_instrumentation/process_map_unittest.cc", | 64 "memory_instrumentation/process_map_unittest.cc", |
57 "public/cpp/memory_instrumentation/client_process_impl_unittest.cc", | 65 "public/cpp/memory_instrumentation/client_process_impl_unittest.cc", |
58 "public/cpp/tracing/chrome_trace_event_agent_unittest.cc", | 66 "public/cpp/tracing/chrome_trace_event_agent_unittest.cc", |
59 ] | 67 ] |
60 | 68 |
61 deps = [ | 69 deps = [ |
62 ":lib", | 70 ":lib", |
63 "//base", | 71 "//base", |
64 "//base/test:test_support", | 72 "//base/test:test_support", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 106 |
99 service_manifest("unittest_manifest") { | 107 service_manifest("unittest_manifest") { |
100 name = "resource_coordinator_unittests" | 108 name = "resource_coordinator_unittests" |
101 source = "unittest_manifest.json" | 109 source = "unittest_manifest.json" |
102 } | 110 } |
103 | 111 |
104 catalog("resource_coordinator_unittests_catalog") { | 112 catalog("resource_coordinator_unittests_catalog") { |
105 embedded_services = [ ":unittest_manifest" ] | 113 embedded_services = [ ":unittest_manifest" ] |
106 standalone_services = [ ":manifest" ] | 114 standalone_services = [ ":manifest" ] |
107 } | 115 } |
OLD | NEW |