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 # These values are duplicated in the GYP build in:
8 # //components/precache/precache_defines.gypi
9 precache_config_settings_url =
10 "http://www.gstatic.com/chrome/wifiprefetch/precache_config"
11 precache_manifest_url_prefix =
12 "http://www.gstatic.com/chrome/wifiprefetch/hosts/"
14 config("precache_config") {
16 "PRECACHE_CONFIG_SETTINGS_URL=\"$precache_config_settings_url\"",
17 "PRECACHE_MANIFEST_URL_PREFIX=\"$precache_manifest_url_prefix\"",
21 static_library("core") {
23 "precache_database.cc",
24 "precache_database.h",
25 "precache_fetcher.cc",
27 "precache_switches.cc",
28 "precache_switches.h",
29 "precache_url_table.cc",
30 "precache_url_table.h",
33 # Note the GYP build sets this as direct dependent settings, but this is
34 # only used to share the settings with the unit tests. Instead, we just
35 # set this config for the necessary targets manually.
36 configs += [ ":precache_config" ]
45 proto_library("proto") {
47 "proto/precache.proto",