Roll src/third_party/WebKit cc8fa7d:a2f2e15d (svn 202014:202015)
[chromium-blink-merge.git] / components / precache.gypi
blobfb9c3c288f99e961ce46bf060d057de3716ff907
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         '../components/components.gyp:sync_driver',
15         '../content/content.gyp:content_browser',
16         '../url/url.gyp:url_lib',
17       ],
18       'include_dirs': [
19         '..',
20       ],
21       'sources': [
22         # Note: sources list duplicated in GN build.
23         'precache/content/precache_manager.cc',
24         'precache/content/precache_manager.h',
25       ],
26     },
27     {
28       # GN version: //components/precache/core
29       'target_name': 'precache_core',
30       'type': 'static_library',
31       'dependencies': [
32         'precache_core_proto',
33         '../base/base.gyp:base',
34         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
35         '../url/url.gyp:url_lib',
36       ],
37       'include_dirs': [
38         '..',
39       ],
40       'sources': [
41         'precache/core/precache_database.cc',
42         'precache/core/precache_database.h',
43         'precache/core/precache_fetcher.cc',
44         'precache/core/precache_fetcher.h',
45         'precache/core/precache_switches.cc',
46         'precache/core/precache_switches.h',
47         'precache/core/precache_url_table.cc',
48         'precache/core/precache_url_table.h',
49       ],
50       'includes': [ 'precache/precache_defines.gypi', ],
51       'direct_dependent_settings': {
52         # Make direct dependents also include the precache defines. This allows
53         # the unit tests to use these defines.
54         'includes': [ 'precache/precache_defines.gypi', ],
55       },
56     },
57     {
58       # GN version: //components/precache/core:proto
59       'target_name': 'precache_core_proto',
60       'type': 'static_library',
61       'sources': [
62         'precache/core/proto/precache.proto',
63       ],
64       'variables': {
65         'proto_in_dir': 'precache/core/proto',
66         'proto_out_dir': 'components/precache/core/proto',
67       },
68       'includes': [ '../build/protoc.gypi', ],
69     },
70   ],
71   'conditions': [
72     ['OS=="android"', {
73       'targets': [{
74         'target_name': 'precache_java',
75         'type': 'none',
76         'dependencies': [
77           '../base/base.gyp:base',
78           '../content/content.gyp:content_java',
79         ],
80         'variables': {
81           'java_in_dir': 'precache/android/java',
82         },
83         'includes': [ '../build/java.gypi' ],
84       }, {
85         'target_name': 'precache_javatests',
86         'type': 'none',
87         'dependencies': [
88           'precache_java',
89           '../base/base.gyp:base_java_test_support',
90         ],
91         'variables': {
92           'java_in_dir': 'precache/android/javatests',
93         },
94         'includes': [ '../build/java.gypi' ],
95       }],
96     }],
97   ],