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. 4 5import("//third_party/protobuf/proto_library.gni") 6 7precache_config_settings_url = 8 "http://www.gstatic.com/chrome/wifiprefetch/precache_config" 9precache_manifest_url_prefix = 10 "http://www.gstatic.com/chrome/wifiprefetch/precache_manifest_" 11 12config("precache_config") { 13 defines = [ 14 "PRECACHE_CONFIG_SETTINGS_URL=\"$precache_config_settings_url\"", 15 "PRECACHE_MANIFEST_URL_PREFIX=\"$precache_manifest_url_prefix\"", 16 ] 17} 18 19static_library("core") { 20 sources = [ 21 "precache_database.cc", 22 "precache_database.h", 23 "precache_fetcher.cc", 24 "precache_fetcher.h", 25 "precache_switches.cc", 26 "precache_switches.h", 27 "precache_url_table.cc", 28 "precache_url_table.h", 29 "url_list_provider.h", 30 ] 31 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" ] 36 37 deps = [ 38 ":proto", 39 "//base", 40 "//url", 41 ] 42} 43 44proto_library("proto") { 45 sources = [ "proto/precache.proto" ] 46} 47