summaryrefslogtreecommitdiffstats
path: root/components/keyed_service
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 22:45:27 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 22:45:27 +0000
commit7c1ded12476d6e0c1c56fed0df47adaff2844d7a (patch)
tree6ff459f31286451735531b63e2cb1f6b6a1544bc /components/keyed_service
parentaf71d5f7f8089e1e3a83112460840a633db2fb22 (diff)
downloadchromium_src-7c1ded12476d6e0c1c56fed0df47adaff2844d7a.zip
chromium_src-7c1ded12476d6e0c1c56fed0df47adaff2844d7a.tar.gz
chromium_src-7c1ded12476d6e0c1c56fed0df47adaff2844d7a.tar.bz2
Add components/keyed_service to GN build.
BUG= R=blundell@chromium.org Review URL: https://codereview.chromium.org/336443004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/keyed_service')
-rw-r--r--components/keyed_service/content/BUILD.gn34
-rw-r--r--components/keyed_service/core/BUILD.gn25
2 files changed, 59 insertions, 0 deletions
diff --git a/components/keyed_service/content/BUILD.gn b/components/keyed_service/content/BUILD.gn
new file mode 100644
index 0000000..91caa34
--- /dev/null
+++ b/components/keyed_service/content/BUILD.gn
@@ -0,0 +1,34 @@
+# Copyright 2014 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.
+
+assert(!is_ios)
+
+component("content") {
+ output_name = "keyed_service_content"
+ sources = [
+ "browser_context_dependency_manager.cc",
+ "browser_context_dependency_manager.h",
+ "browser_context_keyed_base_factory.h",
+ "browser_context_keyed_base_factory.cc",
+ "browser_context_keyed_service_factory.cc",
+ "browser_context_keyed_service_factory.h",
+ "refcounted_browser_context_keyed_service.cc",
+ "refcounted_browser_context_keyed_service.h",
+ "refcounted_browser_context_keyed_service_factory.cc",
+ ]
+
+ defines = [ "KEYED_SERVICE_IMPLEMENTATION" ]
+ if (is_win) {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ cflags = [ "/wd4267" ]
+ }
+
+ deps = [
+ "//base",
+ "//base:prefs",
+ "//base/third_party/dynamic_annotations",
+ "//content/public/common",
+ "//components/user_prefs",
+ ]
+}
diff --git a/components/keyed_service/core/BUILD.gn b/components/keyed_service/core/BUILD.gn
new file mode 100644
index 0000000..10cf1bb
--- /dev/null
+++ b/components/keyed_service/core/BUILD.gn
@@ -0,0 +1,25 @@
+# Copyright 2014 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.
+
+component("keyed_service_core") {
+ output_name = "keyed_service_core"
+ sources = [
+ "dependency_graph.cc",
+ "dependency_graph.h",
+ "dependency_node.h",
+ "keyed_service.cc",
+ "keyed_service.h",
+ "keyed_service_export.h",
+ ]
+
+ defines = [ "KEYED_SERVICE_IMPLEMENTATION" ]
+ if (is_win) {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ cflags = [ "/wd4267" ]
+ }
+
+ deps = [
+ "//base",
+ ]
+}