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

Unified Diff: components/precache/core/BUILD.gn

Issue 393193002: Add search_engines and precache components to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: components/precache/core/BUILD.gn
diff --git a/components/precache/core/BUILD.gn b/components/precache/core/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..bb0f46bb0c878608c70cd0138d249ca58070f893
--- /dev/null
+++ b/components/precache/core/BUILD.gn
@@ -0,0 +1,44 @@
+# 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.
+
+import("//third_party/protobuf/proto_library.gni")
+
+precache_config_settings_url = "http://www.gstatic.com/chrome/wifiprefetch/precache_config"
viettrungluu 2014/07/16 02:53:36 Question: Should we adhere to the 80-column limit
brettw 2014/07/16 16:36:09 Yes, fixed.
+precache_manifest_url_prefix = "http://www.gstatic.com/chrome/wifiprefetch/precache_manifest_"
+
+config("precache_config") {
+ defines = [
+ "PRECACHE_CONFIG_SETTINGS_URL=\"$precache_config_settings_url\"",
+ "PRECACHE_MANIFEST_URL_PREFIX=\"$precache_manifest_url_prefix\"",
+ ]
+}
+
+static_library("core") {
+ sources = [
+ "precache_database.cc",
+ "precache_database.h",
+ "precache_fetcher.cc",
+ "precache_fetcher.h",
+ "precache_switches.cc",
+ "precache_switches.h",
+ "precache_url_table.cc",
+ "precache_url_table.h",
+ "url_list_provider.h",
+ ]
+
+ # Note the GYP build sets this as direct dependent settings, but this is
+ # only used to share the settings with the unit tests. Instead, we just
+ # set this config for the necessary targets manually.
+ configs += [ ":precache_config" ]
+
+ deps = [
+ ":proto",
+ "//base",
+ "//url",
+ ]
+}
+
+proto_library("proto") {
+ sources = [ "proto/precache.proto" ]
+}

Powered by Google App Engine
This is Rietveld 408576698