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