Allow user to manually fetch remote commands
[chromium-blink-merge.git] / components / history.gypi
blobbd7a09f7b1bcf9ac1a3603e220235d67f7d2d832
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         '../base/base.gyp:base_i18n',
17         '../base/base.gyp:base_prefs',
18         '../google_apis/google_apis.gyp:google_apis',
19         '../net/net.gyp:net',
20         '../skia/skia.gyp:skia',
21         '../sql/sql.gyp:sql',
22         '../sync/sync.gyp:sync',
23         '../third_party/sqlite/sqlite.gyp:sqlite',
24         '../ui/base/ui_base.gyp:ui_base',
25         '../ui/gfx/gfx.gyp:gfx',
26         '../url/url.gyp:url_lib',
27         'favicon_base',
28         'history_core_common',
29         'keyed_service_core',
30         'query_parser',
31         'signin_core_browser',
32       ],
33       'sources': [
34         # Note: sources list duplicated in GN build.
35         'history/core/browser/delete_directive_handler.cc',
36         'history/core/browser/delete_directive_handler.h',
37         'history/core/browser/download_constants.h',
38         'history/core/browser/download_database.cc',
39         'history/core/browser/download_database.h',
40         'history/core/browser/download_row.cc',
41         'history/core/browser/download_row.h',
42         'history/core/browser/download_types.cc',
43         'history/core/browser/download_types.h',
44         'history/core/browser/expire_history_backend.cc',
45         'history/core/browser/expire_history_backend.h',
46         'history/core/browser/history_backend.cc',
47         'history/core/browser/history_backend.h',
48         'history/core/browser/history_backend_notifier.h',
49         'history/core/browser/history_backend_observer.h',
50         'history/core/browser/history_client.cc',
51         'history/core/browser/history_client.h',
52         'history/core/browser/history_constants.cc',
53         'history/core/browser/history_constants.h',
54         'history/core/browser/history_context.h',
55         'history/core/browser/history_database.cc',
56         'history/core/browser/history_database.h',
57         'history/core/browser/history_database_params.cc',
58         'history/core/browser/history_database_params.h',
59         'history/core/browser/history_db_task.h',
60         'history/core/browser/history_match.cc',
61         'history/core/browser/history_match.h',
62         'history/core/browser/history_service.cc',
63         'history/core/browser/history_service.h',
64         'history/core/browser/history_service_observer.h',
65         'history/core/browser/history_types.cc',
66         'history/core/browser/history_types.h',
67         'history/core/browser/in_memory_database.cc',
68         'history/core/browser/in_memory_database.h',
69         'history/core/browser/in_memory_history_backend.cc',
70         'history/core/browser/in_memory_history_backend.h',
71         'history/core/browser/keyword_id.h',
72         'history/core/browser/keyword_search_term.cc',
73         'history/core/browser/keyword_search_term.h',
74         'history/core/browser/page_usage_data.cc',
75         'history/core/browser/page_usage_data.h',
76         'history/core/browser/thumbnail_database.cc',
77         'history/core/browser/thumbnail_database.h',
78         'history/core/browser/top_sites.cc',
79         'history/core/browser/top_sites.h',
80         'history/core/browser/top_sites_backend.cc',
81         'history/core/browser/top_sites_backend.h',
82         'history/core/browser/top_sites_cache.cc',
83         'history/core/browser/top_sites_cache.h',
84         'history/core/browser/top_sites_database.cc',
85         'history/core/browser/top_sites_database.h',
86         'history/core/browser/top_sites_impl.cc',
87         'history/core/browser/top_sites_impl.h',
88         'history/core/browser/top_sites_observer.h',
89         'history/core/browser/typed_url_syncable_service.cc',
90         'history/core/browser/typed_url_syncable_service.h',
91         'history/core/browser/url_database.cc',
92         'history/core/browser/url_database.h',
93         'history/core/browser/url_row.cc',
94         'history/core/browser/url_row.h',
95         'history/core/browser/url_utils.cc',
96         'history/core/browser/url_utils.h',
97         'history/core/browser/visit_database.cc',
98         'history/core/browser/visit_database.h',
99         'history/core/browser/visit_delegate.cc',
100         'history/core/browser/visit_delegate.h',
101         'history/core/browser/visit_filter.cc',
102         'history/core/browser/visit_filter.h',
103         'history/core/browser/visit_tracker.cc',
104         'history/core/browser/visit_tracker.h',
105         'history/core/browser/visitsegment_database.cc',
106         'history/core/browser/visitsegment_database.h',
107         'history/core/browser/web_history_service.cc',
108         'history/core/browser/web_history_service.h',
109       ],
110       'conditions': [
111         ['OS=="android"', {
112           'sources': [
113             'history/core/browser/android/android_cache_database.cc',
114             'history/core/browser/android/android_cache_database.h',
115             'history/core/browser/android/android_history_types.cc',
116             'history/core/browser/android/android_history_types.h',
117             'history/core/browser/android/android_time.h',
118             'history/core/browser/android/android_urls_database.cc',
119             'history/core/browser/android/android_urls_database.h',
120             'history/core/browser/android/android_urls_sql_handler.cc',
121             'history/core/browser/android/android_urls_sql_handler.h',
122             'history/core/browser/android/favicon_sql_handler.cc',
123             'history/core/browser/android/favicon_sql_handler.h',
124             'history/core/browser/android/sql_handler.cc',
125             'history/core/browser/android/sql_handler.h',
126             'history/core/browser/android/urls_sql_handler.cc',
127             'history/core/browser/android/urls_sql_handler.h',
128             'history/core/browser/android/visit_sql_handler.cc',
129             'history/core/browser/android/visit_sql_handler.h',
130           ],
131         }],
132       ],
133     },
134     {
135       # GN version: //components/history/core/common
136       'target_name': 'history_core_common',
137       'type': 'static_library',
138       'include_dirs': [
139         '..',
140       ],
141       'dependencies': [
142         '../base/base.gyp:base',
143       ],
144       'sources': [
145         # Note: sources list duplicated in GN build.
146         'history/core/common/thumbnail_score.cc',
147         'history/core/common/thumbnail_score.h',
148       ],
149     },
150     {
151       # GN version: //components/history/core/test
152       'target_name': 'history_core_test_support',
153       'type': 'static_library',
154       'include_dirs': [
155         '..',
156       ],
157       'dependencies': [
158         '../base/base.gyp:base',
159         '../sql/sql.gyp:sql',
160         '../sql/sql.gyp:test_support_sql',
161         '../sync/sync.gyp:sync',
162         '../testing/gtest.gyp:gtest',
163         '../url/url.gyp:url_lib',
164         'history_core_browser',
165       ],
166       'sources': [
167         # Note: sources list duplicated in GN build.
168         'history/core/test/database_test_utils.cc',
169         'history/core/test/database_test_utils.h',
170         'history/core/test/history_backend_base_test.cc',
171         'history/core/test/history_backend_base_test.h',
172         'history/core/test/history_client_fake_bookmarks.cc',
173         'history/core/test/history_client_fake_bookmarks.h',
174         'history/core/test/history_unittest_base.cc',
175         'history/core/test/history_unittest_base.h',
176         'history/core/test/test_history_database.cc',
177         'history/core/test/test_history_database.h',
178       ],
179     },
180   ],
181   'conditions': [
182     ['OS!="ios"', {
183       'targets': [
184         {
185           # GN version: //components/history/content/browser
186           'target_name': 'history_content_browser',
187           'type': 'static_library',
188           'include_dirs': [
189             '..',
190           ],
191           'dependencies': [
192             '../base/base.gyp:base',
193             '../content/content.gyp:content_browser',
194             '../url/url.gyp:url_lib',
195             'history_core_browser',
196             'visitedlink_browser',
197           ],
198           'sources': [
199             'history/content/browser/content_visit_delegate.cc',
200             'history/content/browser/content_visit_delegate.h',
201             'history/content/browser/download_constants_utils.cc',
202             'history/content/browser/download_constants_utils.h',
203             'history/content/browser/history_context_helper.cc',
204             'history/content/browser/history_context_helper.h',
205             'history/content/browser/history_database_helper.cc',
206             'history/content/browser/history_database_helper.h',
207             'history/content/browser/web_contents_top_sites_observer.cc',
208             'history/content/browser/web_contents_top_sites_observer.h',
209           ],
210         }
211       ],
212     }],
213     ['OS=="ios"', {
214       'targets': [
215         {
216           'target_name': 'history_ios_browser',
217           'type': 'static_library',
218           'include_dirs': [
219             '..',
220           ],
221           'dependencies': [
222             '../base/base.gyp:base',
223             '../ios/web/ios_web.gyp:ios_web',
224             '../url/url.gyp:url_lib',
225             'history_core_browser',
226           ],
227           'sources': [
228             'history/ios/browser/history_database_helper.cc',
229             'history/ios/browser/history_database_helper.h',
230             'history/ios/browser/web_state_top_sites_observer.cc',
231             'history/ios/browser/web_state_top_sites_observer.h',
232           ],
233         },
234       ],
235     }],
236   ],