[email protected] | 72779c9 | 2013-10-18 09:53:02 | [diff] [blame] | 1 | # Copyright 2013 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 | { |
| 6 | 'targets': [ |
| 7 | { |
[email protected] | 628373a | 2013-12-17 07:21:29 | [diff] [blame^] | 8 | 'target_name': 'precache_content', |
| 9 | 'type': 'static_library', |
| 10 | 'dependencies': [ |
| 11 | 'precache_core', |
| 12 | '../base/base.gyp:base', |
| 13 | '../content/content.gyp:content_browser', |
| 14 | '../url/url.gyp:url_lib', |
| 15 | ], |
| 16 | 'include_dirs': [ |
| 17 | '..', |
| 18 | ], |
| 19 | 'sources': [ |
| 20 | 'precache/content/precache_manager.cc', |
| 21 | 'precache/content/precache_manager.h', |
| 22 | 'precache/content/precache_manager_factory.cc', |
| 23 | 'precache/content/precache_manager_factory.h', |
| 24 | ], |
| 25 | }, |
| 26 | { |
[email protected] | 72779c9 | 2013-10-18 09:53:02 | [diff] [blame] | 27 | 'target_name': 'precache_core', |
| 28 | 'type': 'static_library', |
| 29 | 'dependencies': [ |
| 30 | 'precache_core_proto', |
| 31 | '../base/base.gyp:base', |
| 32 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 33 | '../url/url.gyp:url_lib', |
| 34 | ], |
| 35 | 'include_dirs': [ |
| 36 | '..', |
| 37 | ], |
| 38 | 'sources': [ |
[email protected] | 98bf14ea | 2013-12-05 00:12:29 | [diff] [blame] | 39 | 'precache/core/precache_database.cc', |
| 40 | 'precache/core/precache_database.h', |
[email protected] | 72779c9 | 2013-10-18 09:53:02 | [diff] [blame] | 41 | 'precache/core/precache_fetcher.cc', |
| 42 | 'precache/core/precache_fetcher.h', |
| 43 | 'precache/core/precache_switches.cc', |
| 44 | 'precache/core/precache_switches.h', |
[email protected] | 98bf14ea | 2013-12-05 00:12:29 | [diff] [blame] | 45 | 'precache/core/precache_url_table.cc', |
| 46 | 'precache/core/precache_url_table.h', |
[email protected] | 628373a | 2013-12-17 07:21:29 | [diff] [blame^] | 47 | 'precache/core/url_list_provider.h', |
[email protected] | 72779c9 | 2013-10-18 09:53:02 | [diff] [blame] | 48 | ], |
| 49 | 'includes': [ 'precache/precache_defines.gypi', ], |
| 50 | 'direct_dependent_settings': { |
| 51 | # Make direct dependents also include the precache defines. This allows |
| 52 | # the unit tests to use these defines. |
| 53 | 'includes': [ 'precache/precache_defines.gypi', ], |
| 54 | }, |
| 55 | }, |
| 56 | { |
| 57 | 'target_name': 'precache_core_proto', |
| 58 | 'type': 'static_library', |
| 59 | 'sources': [ |
| 60 | 'precache/core/proto/precache.proto', |
| 61 | ], |
| 62 | 'variables': { |
| 63 | 'proto_in_dir': 'precache/core/proto', |
| 64 | 'proto_out_dir': 'components/precache/core/proto', |
| 65 | }, |
| 66 | 'includes': [ '../build/protoc.gypi', ], |
| 67 | }, |
| 68 | ], |
| 69 | } |