Add GN targets for codesighs and telemetry.
[chromium-blink-merge.git] / components / history.gypi
blob384fc9ca9fda9cdc2fffad068b712905b4c5646c
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         '../third_party/sqlite/sqlite.gyp:sqlite',
21         '../ui/base/ui_base.gyp:ui_base',
22         '../ui/gfx/gfx.gyp:gfx',
23         '../url/url.gyp:url_lib',
24         'favicon_base',
25         'history_core_browser_proto',
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/download_constants.h',
33         'history/core/browser/download_database.cc',
34         'history/core/browser/download_database.h',
35         'history/core/browser/download_row.cc',
36         'history/core/browser/download_row.h',
37         'history/core/browser/download_types.cc',
38         'history/core/browser/download_types.h',
39         'history/core/browser/expire_history_backend.cc',
40         'history/core/browser/expire_history_backend.h',
41         'history/core/browser/history_backend_notifier.h',
42         'history/core/browser/history_backend_observer.h',
43         'history/core/browser/history_client.cc',
44         'history/core/browser/history_client.h',
45         'history/core/browser/history_constants.cc',
46         'history/core/browser/history_constants.h',
47         'history/core/browser/history_context.h',
48         'history/core/browser/history_database.cc',
49         'history/core/browser/history_database.h',
50         'history/core/browser/history_database_params.cc',
51         'history/core/browser/history_database_params.h',
52         'history/core/browser/history_db_task.h',
53         'history/core/browser/history_match.cc',
54         'history/core/browser/history_match.h',
55         'history/core/browser/history_service_observer.h',
56         'history/core/browser/history_types.cc',
57         'history/core/browser/history_types.h',
58         'history/core/browser/in_memory_database.cc',
59         'history/core/browser/in_memory_database.h',
60         'history/core/browser/in_memory_url_index_types.cc',
61         'history/core/browser/in_memory_url_index_types.h',
62         'history/core/browser/keyword_id.h',
63         'history/core/browser/keyword_search_term.cc',
64         'history/core/browser/keyword_search_term.h',
65         'history/core/browser/page_usage_data.cc',
66         'history/core/browser/page_usage_data.h',
67         'history/core/browser/scored_history_match.cc',
68         'history/core/browser/scored_history_match.h',
69         'history/core/browser/thumbnail_database.cc',
70         'history/core/browser/thumbnail_database.h',
71         'history/core/browser/top_sites.cc',
72         'history/core/browser/top_sites.h',
73         'history/core/browser/top_sites_backend.cc',
74         'history/core/browser/top_sites_backend.h',
75         'history/core/browser/top_sites_cache.cc',
76         'history/core/browser/top_sites_cache.h',
77         'history/core/browser/top_sites_database.cc',
78         'history/core/browser/top_sites_database.h',
79         'history/core/browser/top_sites_observer.h',
80         'history/core/browser/url_database.cc',
81         'history/core/browser/url_database.h',
82         'history/core/browser/url_row.cc',
83         'history/core/browser/url_row.h',
84         'history/core/browser/url_utils.cc',
85         'history/core/browser/url_utils.h',
86         'history/core/browser/visit_database.cc',
87         'history/core/browser/visit_database.h',
88         'history/core/browser/visit_delegate.cc',
89         'history/core/browser/visit_delegate.h',
90         'history/core/browser/visit_filter.cc',
91         'history/core/browser/visit_filter.h',
92         'history/core/browser/visit_tracker.cc',
93         'history/core/browser/visit_tracker.h',
94         'history/core/browser/visitsegment_database.cc',
95         'history/core/browser/visitsegment_database.h',
96         'history/core/browser/web_history_service.cc',
97         'history/core/browser/web_history_service.h',
98       ],
99       'conditions': [
100         ['OS=="android"', {
101           'sources': [
102             'history/core/browser/android/android_cache_database.cc',
103             'history/core/browser/android/android_cache_database.h',
104             'history/core/browser/android/android_history_types.cc',
105             'history/core/browser/android/android_history_types.h',
106             'history/core/browser/android/android_time.h',
107             'history/core/browser/android/android_urls_database.cc',
108             'history/core/browser/android/android_urls_database.h',
109             'history/core/browser/android/android_urls_sql_handler.cc',
110             'history/core/browser/android/android_urls_sql_handler.h',
111             'history/core/browser/android/favicon_sql_handler.cc',
112             'history/core/browser/android/favicon_sql_handler.h',
113             'history/core/browser/android/sql_handler.cc',
114             'history/core/browser/android/sql_handler.h',
115             'history/core/browser/android/urls_sql_handler.cc',
116             'history/core/browser/android/urls_sql_handler.h',
117             'history/core/browser/android/visit_sql_handler.cc',
118             'history/core/browser/android/visit_sql_handler.h',
119           ],
120         }],
121       ],
122     },
123     {
124       # GN version: //components/history/core/browser:proto
125       # Protobuf compiler / generator for the InMemoryURLIndex caching
126       # protocol buffer.
127       'target_name': 'history_core_browser_proto',
128       'type': 'static_library',
129       'sources': [
130         'history/core/browser/in_memory_url_index_cache.proto',
131       ],
132       'variables': {
133         'proto_in_dir': 'history/core/browser',
134         'proto_out_dir': 'components/history/core/browser',
135       },
136       'includes': [ '../build/protoc.gypi' ]
137     },
138     {
139       # GN version: //components/history/core/common
140       'target_name': 'history_core_common',
141       'type': 'static_library',
142       'include_dirs': [
143         '..',
144       ],
145       'dependencies': [
146         '../base/base.gyp:base',
147       ],
148       'sources': [
149         # Note: sources list duplicated in GN build.
150         'history/core/common/thumbnail_score.cc',
151         'history/core/common/thumbnail_score.h',
152       ],
153     },
154     {
155       # GN version: //components/history/core/test
156       'target_name': 'history_core_test_support',
157       'type': 'static_library',
158       'include_dirs': [
159         '..',
160       ],
161       'dependencies': [
162         '../base/base.gyp:base',
163         '../sql/sql.gyp:sql',
164         '../testing/gtest.gyp:gtest',
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_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             'history_core_browser',
195           ],
196           'sources': [
197             'history/content/browser/download_constants_utils.cc',
198             'history/content/browser/download_constants_utils.h',
199             'history/content/browser/history_context_helper.cc',
200             'history/content/browser/history_context_helper.h',
201             'history/content/browser/history_database_helper.cc',
202             'history/content/browser/history_database_helper.h',
203           ],
204         }
205       ],
206     }],
207   ],