1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//third_party/protobuf/proto_library.gni")
7 precache_config_settings_url =
8 "http://www.gstatic.com/chrome/wifiprefetch/precache_config"
9 precache_manifest_url_prefix =
10 "http://www.gstatic.com/chrome/wifiprefetch/precache_manifest_"
12 config("precache_config") {
14 "PRECACHE_CONFIG_SETTINGS_URL=\"$precache_config_settings_url\"",
15 "PRECACHE_MANIFEST_URL_PREFIX=\"$precache_manifest_url_prefix\"",
19 static_library("core") {
21 "precache_database.cc",
22 "precache_database.h",
23 "precache_fetcher.cc",
25 "precache_switches.cc",
26 "precache_switches.h",
27 "precache_url_table.cc",
28 "precache_url_table.h",
29 "url_list_provider.h",
32 # Note the GYP build sets this as direct dependent settings, but this is
33 # only used to share the settings with the unit tests. Instead, we just
34 # set this config for the necessary targets manually.
35 configs += [ ":precache_config" ]
44 proto_library("proto") {
45 sources = [ "proto/precache.proto" ]