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

Unified Diff: services/blamer/BUILD.gn

Issue 2885363004: [Hacky prototype] Create a shared-memory high-performance reporting service.
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 side-by-side diff with in-line comments
Download patch
Index: services/blamer/BUILD.gn
diff --git a/services/blamer/BUILD.gn b/services/blamer/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a7e49590a203343377acbd03b732376d0d816285
--- /dev/null
+++ b/services/blamer/BUILD.gn
@@ -0,0 +1,100 @@
+# Copyright 2017 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 only be a single "blamer" service. It is currently in the browser
+# process, but should be co-hosted with the resource coordinator at some point.
+import("//services/catalog/public/tools/catalog.gni")
+import("//services/service_manager/public/cpp/service.gni")
+import("//services/service_manager/public/service_manifest.gni")
+import("//services/service_manager/public/tools/test/service_test.gni")
+
+source_set("lib") {
+ sources = [
+ "blamer_service.cc",
+ "blamer_service.h",
+ "heap_object_types.h",
+ "service_main.cc",
+ "shared_memory_heap.cc",
+ "shared_memory_heap.h",
+ "shared_memory_heap_registry.cc",
+ "shared_memory_heap_registry.h",
+ ]
+
+ public_deps = [
+ "//base",
+ "//mojo/public/cpp/bindings",
+ "//services/blamer/public/cpp",
+ "//services/blamer/public/interfaces",
+ ]
+
+ data_deps = [
+ ":manifest",
+ ]
+}
+
+service_manifest("manifest") {
+ name = "blamer"
+ source = "manifest.json"
+}
+
+service("blamer") {
+ sources = [
+ "service_main.cc",
+ ]
+
+ deps = [
+ ":lib",
+ "//mojo/public/cpp/system"
+ ]
+}
+
+source_set("tests") {
+ testonly = true
+
+ sources = [
+ ]
+
+ deps = [
+ ":lib",
+ "//base",
+ "//mojo/public/cpp/bindings",
+ "//services/blamer/public/cpp",
+ "//services/blamer/public/interfaces",
+ "//testing/gtest",
+ ]
+}
+
+service_test("blamer_unittests") {
+ sources = [
+ ]
+
+ catalog = ":blamer_unittests_catalog"
+
+ deps = [
+ "//base",
+ "//mojo/public/cpp/bindings",
+ "//services/blamer/public/cpp",
+ "//services/blamer/public/interfaces",
+ "//services/service_manager/public/cpp",
+ "//services/service_manager/public/cpp:service_test_support",
+ "//services/service_manager/public/interfaces",
+ "//testing/gtest",
+ ]
+
+ data_deps = [
+ ":blamer",
+ "//content/shell:content_shell",
+ "//services/ui/test_wm",
+ ]
+}
+
+service_manifest("unittest_manifest") {
+ name = "blamer_unittests"
+ source = "unittest_manifest.json"
+}
+
+catalog("blamer_unittests_catalog") {
+ embedded_services = [ ":unittest_manifest" ]
+ standalone_services = [ ":manifest" ]
+}

Powered by Google App Engine
This is Rietveld 408576698