ServiceWorker: Consolidate version manipulation functions in SWProviderContext
[chromium-blink-merge.git] / components / history.gypi
blobcde78051ab035de00520a782b7467296d7f1fa29
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.
6   'targets': [
7     {
8       # GN version: //components/history/core/browser
9       'target_name': 'history_core_browser',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../net/net.gyp:net',
17         '../sql/sql.gyp:sql',
18         '../third_party/sqlite/sqlite.gyp:sqlite',
19         '../ui/base/ui_base.gyp:ui_base',
20         '../ui/gfx/gfx.gyp:gfx',
21         '../url/url.gyp:url_lib',
22         'favicon_base',
23         'history_core_browser_proto',
24         'keyed_service_core',
25         'query_parser',
26       ],
27       'sources': [
28         # Note: sources list duplicated in GN build.
29         'history/core/browser/download_constants.h',
30         'history/core/browser/download_database.cc',
31         'history/core/browser/download_database.h',
32         'history/core/browser/download_row.cc',
33         'history/core/browser/download_row.h',
34         'history/core/browser/download_types.cc',
35         'history/core/browser/download_types.h',
36         'history/core/browser/history_backend_notifier.h',
37         'history/core/browser/history_backend_observer.h',
38         'history/core/browser/history_client.cc',
39         'history/core/browser/history_client.h',
40         'history/core/browser/history_constants.cc',
41         'history/core/browser/history_constants.h',
42         'history/core/browser/history_context.h',
43         'history/core/browser/history_db_task.h',
44         'history/core/browser/history_match.cc',
45         'history/core/browser/history_match.h',
46         'history/core/browser/history_service_observer.h',
47         'history/core/browser/history_types.cc',
48         'history/core/browser/history_types.h',
49         'history/core/browser/in_memory_database.cc',
50         'history/core/browser/in_memory_database.h',
51         'history/core/browser/in_memory_url_index_types.cc',
52         'history/core/browser/in_memory_url_index_types.h',
53         'history/core/browser/keyword_id.h',
54         'history/core/browser/keyword_search_term.cc',
55         'history/core/browser/keyword_search_term.h',
56         'history/core/browser/page_usage_data.cc',
57         'history/core/browser/page_usage_data.h',
58         'history/core/browser/thumbnail_database.cc',
59         'history/core/browser/thumbnail_database.h',
60         'history/core/browser/top_sites_cache.cc',
61         'history/core/browser/top_sites_cache.h',
62         'history/core/browser/top_sites_observer.h',
63         'history/core/browser/url_database.cc',
64         'history/core/browser/url_database.h',
65         'history/core/browser/url_row.cc',
66         'history/core/browser/url_row.h',
67         'history/core/browser/url_utils.cc',
68         'history/core/browser/url_utils.h',
69         'history/core/browser/visit_database.cc',
70         'history/core/browser/visit_database.h',
71         'history/core/browser/visit_filter.cc',
72         'history/core/browser/visit_filter.h',
73         'history/core/browser/visit_tracker.cc',
74         'history/core/browser/visit_tracker.h',
75         'history/core/browser/visitsegment_database.cc',
76         'history/core/browser/visitsegment_database.h',
77       ],
78     },
79     {
80       # GN version: //components/history/core/browser:proto
81       # Protobuf compiler / generator for the InMemoryURLIndex caching
82       # protocol buffer.
83       'target_name': 'history_core_browser_proto',
84       'type': 'static_library',
85       'sources': [
86         'history/core/browser/in_memory_url_index_cache.proto',
87       ],
88       'variables': {
89         'proto_in_dir': 'history/core/browser',
90         'proto_out_dir': 'components/history/core/browser',
91       },
92       'includes': [ '../build/protoc.gypi' ]
93     },
94     {
95       # GN version: //components/history/core/common
96       'target_name': 'history_core_common',
97       'type': 'static_library',
98       'include_dirs': [
99         '..',
100       ],
101       'dependencies': [
102         '../base/base.gyp:base',
103       ],
104       'sources': [
105         # Note: sources list duplicated in GN build.
106         'history/core/common/thumbnail_score.cc',
107         'history/core/common/thumbnail_score.h',
108       ],
109     },
110     {
111       # GN version: //components/history/core/test
112       'target_name': 'history_core_test_support',
113       'type': 'static_library',
114       'include_dirs': [
115         '..',
116       ],
117       'dependencies': [
118         '../base/base.gyp:base',
119         '../sql/sql.gyp:sql',
120         '../testing/gtest.gyp:gtest',
121         '../url/url.gyp:url_lib',
122         'history_core_browser',
123       ],
124       'sources': [
125         # Note: sources list duplicated in GN build.
126         'history/core/test/history_client_fake_bookmarks.cc',
127         'history/core/test/history_client_fake_bookmarks.h',
128         'history/core/test/history_unittest_base.cc',
129         'history/core/test/history_unittest_base.h',
130       ],
131     },
132   ],
133   'conditions': [
134     ['OS!="ios"', {
135       'targets': [
136         {
137           # GN version: //components/history/content/browser
138           'target_name': 'history_content_browser',
139           'type': 'static_library',
140           'include_dirs': [
141             '..',
142           ],
143           'dependencies': [
144             '../base/base.gyp:base',
145             '../content/content.gyp:content_browser',
146             'history_core_browser',
147           ],
148           'sources': [
149             'history/content/browser/download_constants_utils.cc',
150             'history/content/browser/download_constants_utils.h',
151             'history/content/browser/history_context_helper.cc',
152             'history/content/browser/history_context_helper.h',
153           ],
154         }
155       ],
156     }],
157     ['OS=="android"', {
158       'targets': [
159         {
160           # GN version: //components/history/code/android
161           'target_name': 'history_core_android',
162           'type': 'static_library',
163           'include_dirs': [
164             '..',
165           ],
166           'dependencies': [
167             '../base/base.gyp:base',
168             '../sql/sql.gyp:sql',
169             'history_core_browser',
170           ],
171           'sources': [
172             'history/core/android/android_cache_database.cc',
173             'history/core/android/android_cache_database.h',
174             'history/core/android/android_history_types.cc',
175             'history/core/android/android_history_types.h',
176             'history/core/android/android_time.h',
177             'history/core/android/android_urls_database.cc',
178             'history/core/android/android_urls_database.h',
179             'history/core/android/android_urls_sql_handler.cc',
180             'history/core/android/android_urls_sql_handler.h',
181             'history/core/android/favicon_sql_handler.cc',
182             'history/core/android/favicon_sql_handler.h',
183             'history/core/android/sql_handler.cc',
184             'history/core/android/sql_handler.h',
185             'history/core/android/urls_sql_handler.cc',
186             'history/core/android/urls_sql_handler.h',
187             'history/core/android/visit_sql_handler.cc',
188             'history/core/android/visit_sql_handler.h',
189           ],
190         },
191       ],
192     }],
193   ],