Add a --use-angle flag for selecting the ANGLE renderer.
[chromium-blink-merge.git] / components / history.gypi
blob9ecec9fbe73657e684268e59056d445bea150065
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         '../skia/skia.gyp:skia',
160         '../sql/sql.gyp:sql',
161         '../sql/sql.gyp:test_support_sql',
162         '../sync/sync.gyp:sync',
163         '../testing/gtest.gyp:gtest',
164         '../ui/gfx/gfx.gyp:gfx',
165         '../url/url.gyp:url_lib',
166         'history_core_browser',
167       ],
168       'sources': [
169         # Note: sources list duplicated in GN build.
170         'history/core/test/database_test_utils.cc',
171         'history/core/test/database_test_utils.h',
172         'history/core/test/history_backend_db_base_test.cc',
173         'history/core/test/history_backend_db_base_test.h',
174         'history/core/test/history_client_fake_bookmarks.cc',
175         'history/core/test/history_client_fake_bookmarks.h',
176         'history/core/test/history_unittest_base.cc',
177         'history/core/test/history_unittest_base.h',
178         'history/core/test/test_history_database.cc',
179         'history/core/test/test_history_database.h',
180         'history/core/test/thumbnail-inl.h',
181         'history/core/test/thumbnail.cc',
182         'history/core/test/thumbnail.h',
183         'history/core/test/thumbnail_ios.mm',
184         'history/core/test/wait_top_sites_loaded_observer.cc',
185         'history/core/test/wait_top_sites_loaded_observer.h',
186       ],
187       'conditions': [
188         ['OS=="ios"', {
189           'sources!': [
190             'history/core/test/thumbnail.cc',
191           ],
192         }],
193       ],
194     },
195   ],
196   'conditions': [
197     ['OS!="ios"', {
198       'targets': [
199         {
200           # GN version: //components/history/content/browser
201           'target_name': 'history_content_browser',
202           'type': 'static_library',
203           'include_dirs': [
204             '..',
205           ],
206           'dependencies': [
207             '../base/base.gyp:base',
208             '../content/content.gyp:content_browser',
209             '../url/url.gyp:url_lib',
210             'history_core_browser',
211             'visitedlink_browser',
212           ],
213           'sources': [
214             'history/content/browser/content_visit_delegate.cc',
215             'history/content/browser/content_visit_delegate.h',
216             'history/content/browser/download_constants_utils.cc',
217             'history/content/browser/download_constants_utils.h',
218             'history/content/browser/history_context_helper.cc',
219             'history/content/browser/history_context_helper.h',
220             'history/content/browser/history_database_helper.cc',
221             'history/content/browser/history_database_helper.h',
222             'history/content/browser/web_contents_top_sites_observer.cc',
223             'history/content/browser/web_contents_top_sites_observer.h',
224           ],
225         }
226       ],
227     }],
228     ['OS=="ios"', {
229       'targets': [
230         {
231           'target_name': 'history_ios_browser',
232           'type': 'static_library',
233           'include_dirs': [
234             '..',
235           ],
236           'dependencies': [
237             '../base/base.gyp:base',
238             '../ios/web/ios_web.gyp:ios_web',
239             '../url/url.gyp:url_lib',
240             'history_core_browser',
241           ],
242           'sources': [
243             'history/ios/browser/history_database_helper.cc',
244             'history/ios/browser/history_database_helper.h',
245             'history/ios/browser/web_state_top_sites_observer.cc',
246             'history/ios/browser/web_state_top_sites_observer.h',
247           ],
248         },
249       ],
250     }],
251   ],