Roll src/third_party/WebKit 6b63e20:35e1984 (svn 201060:201061)
[chromium-blink-merge.git] / components / precache.gypi
blobaabe44548be7e8d358ef0598124f8efc6573a3e9
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.
6   'targets': [
7     {
8       # GN Version: //components/precache/content
9       'target_name': 'precache_content',
10       'type': 'static_library',
11       'dependencies': [
12         'precache_core',
13         '../base/base.gyp:base',
14         '../content/content.gyp:content_browser',
15         '../url/url.gyp:url_lib',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21         # Note: sources list duplicated in GN build.
22         'precache/content/precache_manager.cc',
23         'precache/content/precache_manager.h',
24       ],
25     },
26     {
27       # GN version: //components/precache/core
28       'target_name': 'precache_core',
29       'type': 'static_library',
30       'dependencies': [
31         'precache_core_proto',
32         '../base/base.gyp:base',
33         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
34         '../url/url.gyp:url_lib',
35       ],
36       'include_dirs': [
37         '..',
38       ],
39       'sources': [
40         'precache/core/precache_database.cc',
41         'precache/core/precache_database.h',
42         'precache/core/precache_fetcher.cc',
43         'precache/core/precache_fetcher.h',
44         'precache/core/precache_switches.cc',
45         'precache/core/precache_switches.h',
46         'precache/core/precache_url_table.cc',
47         'precache/core/precache_url_table.h',
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       # GN version: //components/precache/core:proto
58       'target_name': 'precache_core_proto',
59       'type': 'static_library',
60       'sources': [
61         'precache/core/proto/precache.proto',
62       ],
63       'variables': {
64         'proto_in_dir': 'precache/core/proto',
65         'proto_out_dir': 'components/precache/core/proto',
66       },
67       'includes': [ '../build/protoc.gypi', ],
68     },
69   ],
70   'conditions': [
71     ['OS=="android"', {
72       'targets': [{
73         'target_name': 'precache_java',
74         'type': 'none',
75         'dependencies': [
76           '../base/base.gyp:base',
77           '../content/content.gyp:content_java',
78         ],
79         'variables': {
80           'java_in_dir': 'precache/android/java',
81         },
82         'includes': [ '../build/java.gypi' ],
83       }, {
84         'target_name': 'precache_javatests',
85         'type': 'none',
86         'dependencies': [
87           'precache_java',
88           '../base/base.gyp:base_java_test_support',
89         ],
90         'variables': {
91           'java_in_dir': 'precache/android/javatests',
92         },
93         'includes': [ '../build/java.gypi' ],
94       }],
95     }],
96   ],