Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: services/resource_coordinator/BUILD.gn

Issue 2848053002: Revert of Global Resource Coordinator: Basic service internals (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | services/resource_coordinator/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 memory instrumentaiton 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")
9 import("//services/service_manager/public/cpp/service.gni")
10 import("//services/service_manager/public/service_manifest.gni")
11 import("//services/service_manager/public/tools/test/service_test.gni")
12
13 source_set("lib") { 8 source_set("lib") {
14 sources = [ 9 sources = [
15 "coordination_unit/coordination_unit_impl.cc",
16 "coordination_unit/coordination_unit_impl.h",
17 "coordination_unit/coordination_unit_provider_impl.cc",
18 "coordination_unit/coordination_unit_provider_impl.h",
19 "memory/coordinator/coordinator_impl.cc", 10 "memory/coordinator/coordinator_impl.cc",
20 "memory/coordinator/coordinator_impl.h", 11 "memory/coordinator/coordinator_impl.h",
21 "resource_coordinator_service.cc",
22 "resource_coordinator_service.h",
23 ] 12 ]
24 13
25 public_deps = [ 14 public_deps = [
26 "//base", 15 "//base",
27 "//mojo/public/cpp/bindings", 16 "//mojo/public/cpp/bindings",
28 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", 17 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
29 ] 18 ]
30
31 data_deps = [
32 ":manifest",
33 ]
34 }
35
36 service_manifest("manifest") {
37 name = "resource_coordinator"
38 source = "manifest.json"
39 }
40
41 service("resource_coordinator") {
42 sources = [
43 "service_main.cc",
44 ]
45
46 deps = [
47 ":lib",
48 "//mojo/public/cpp/system",
49 ]
50 } 19 }
51 20
52 source_set("tests") { 21 source_set("tests") {
53 testonly = true 22 testonly = true
54 23
55 sources = [ 24 sources = [
56 "coordination_unit/coordination_unit_impl_unittest.cc",
57 "memory/coordinator/coordinator_impl_unittest.cc", 25 "memory/coordinator/coordinator_impl_unittest.cc",
58 "public/cpp/memory/process_local_dump_manager_impl_unittest.cc", 26 "public/cpp/memory/process_local_dump_manager_impl_unittest.cc",
59 ] 27 ]
60 28
61 deps = [ 29 deps = [
62 ":lib", 30 ":lib",
63 "//base", 31 "//base",
64 "//mojo/public/cpp/bindings", 32 "//mojo/public/cpp/bindings",
65 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", 33 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
66 "//testing/gtest", 34 "//testing/gtest",
67 ] 35 ]
68 } 36 }
69
70 service_test("resource_coordinator_unittests") {
71 sources = [
72 "resource_coordinator_service_unittest.cc",
73 ]
74
75 catalog = ":resource_coordinator_unittests_catalog"
76
77 deps = [
78 "//base",
79 "//mojo/public/cpp/bindings",
80 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
81 "//services/service_manager/public/cpp",
82 "//services/service_manager/public/cpp:service_test_support",
83 "//services/service_manager/public/interfaces",
84 "//testing/gtest",
85 ]
86 }
87
88 service_manifest("unittest_manifest") {
89 name = "resource_coordinator_unittests"
90 source = "unittest_manifest.json"
91 }
92
93 catalog("resource_coordinator_unittests_catalog") {
94 embedded_services = [ ":unittest_manifest" ]
95 standalone_services = [ ":manifest" ]
96 }
OLDNEW
« no previous file with comments | « no previous file | services/resource_coordinator/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698