OLD | NEW |
---|---|
(Empty) | |
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 | |
5 import("//third_party/protobuf/proto_library.gni") | |
6 | |
7 precache_config_settings_url = "http://www.gstatic.com/chrome/wifiprefetch/preca che_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.
| |
8 precache_manifest_url_prefix = "http://www.gstatic.com/chrome/wifiprefetch/preca che_manifest_" | |
9 | |
10 config("precache_config") { | |
11 defines = [ | |
12 "PRECACHE_CONFIG_SETTINGS_URL=\"$precache_config_settings_url\"", | |
13 "PRECACHE_MANIFEST_URL_PREFIX=\"$precache_manifest_url_prefix\"", | |
14 ] | |
15 } | |
16 | |
17 static_library("core") { | |
18 sources = [ | |
19 "precache_database.cc", | |
20 "precache_database.h", | |
21 "precache_fetcher.cc", | |
22 "precache_fetcher.h", | |
23 "precache_switches.cc", | |
24 "precache_switches.h", | |
25 "precache_url_table.cc", | |
26 "precache_url_table.h", | |
27 "url_list_provider.h", | |
28 ] | |
29 | |
30 # Note the GYP build sets this as direct dependent settings, but this is | |
31 # only used to share the settings with the unit tests. Instead, we just | |
32 # set this config for the necessary targets manually. | |
33 configs += [ ":precache_config" ] | |
34 | |
35 deps = [ | |
36 ":proto", | |
37 "//base", | |
38 "//url", | |
39 ] | |
40 } | |
41 | |
42 proto_library("proto") { | |
43 sources = [ "proto/precache.proto" ] | |
44 } | |
OLD | NEW |