Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / components / history.gypi
blobe1b251647193e8553d04fe6a9ba3b8a3fcaa6c9c
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_database.cc',
44         'history/core/browser/history_database.h',
45         'history/core/browser/history_database_params.cc',
46         'history/core/browser/history_database_params.h',
47         'history/core/browser/history_db_task.h',
48         'history/core/browser/history_match.cc',
49         'history/core/browser/history_match.h',
50         'history/core/browser/history_service_observer.h',
51         'history/core/browser/history_types.cc',
52         'history/core/browser/history_types.h',
53         'history/core/browser/in_memory_database.cc',
54         'history/core/browser/in_memory_database.h',
55         'history/core/browser/in_memory_url_index_types.cc',
56         'history/core/browser/in_memory_url_index_types.h',
57         'history/core/browser/keyword_id.h',
58         'history/core/browser/keyword_search_term.cc',
59         'history/core/browser/keyword_search_term.h',
60         'history/core/browser/page_usage_data.cc',
61         'history/core/browser/page_usage_data.h',
62         'history/core/browser/thumbnail_database.cc',
63         'history/core/browser/thumbnail_database.h',
64         'history/core/browser/top_sites_cache.cc',
65         'history/core/browser/top_sites_cache.h',
66         'history/core/browser/top_sites_observer.h',
67         'history/core/browser/url_database.cc',
68         'history/core/browser/url_database.h',
69         'history/core/browser/url_row.cc',
70         'history/core/browser/url_row.h',
71         'history/core/browser/url_utils.cc',
72         'history/core/browser/url_utils.h',
73         'history/core/browser/visit_database.cc',
74         'history/core/browser/visit_database.h',
75         'history/core/browser/visit_filter.cc',
76         'history/core/browser/visit_filter.h',
77         'history/core/browser/visit_tracker.cc',
78         'history/core/browser/visit_tracker.h',
79         'history/core/browser/visitsegment_database.cc',
80         'history/core/browser/visitsegment_database.h',
81       ],
82       'conditions': [
83         ['OS=="android"', {
84           'sources': [
85             'history/core/browser/android/android_cache_database.cc',
86             'history/core/browser/android/android_cache_database.h',
87             'history/core/browser/android/android_history_types.cc',
88             'history/core/browser/android/android_history_types.h',
89             'history/core/browser/android/android_time.h',
90             'history/core/browser/android/android_urls_database.cc',
91             'history/core/browser/android/android_urls_database.h',
92             'history/core/browser/android/android_urls_sql_handler.cc',
93             'history/core/browser/android/android_urls_sql_handler.h',
94             'history/core/browser/android/favicon_sql_handler.cc',
95             'history/core/browser/android/favicon_sql_handler.h',
96             'history/core/browser/android/sql_handler.cc',
97             'history/core/browser/android/sql_handler.h',
98             'history/core/browser/android/urls_sql_handler.cc',
99             'history/core/browser/android/urls_sql_handler.h',
100             'history/core/browser/android/visit_sql_handler.cc',
101             'history/core/browser/android/visit_sql_handler.h',
102           ],
103         }],
104       ],
105     },
106     {
107       # GN version: //components/history/core/browser:proto
108       # Protobuf compiler / generator for the InMemoryURLIndex caching
109       # protocol buffer.
110       'target_name': 'history_core_browser_proto',
111       'type': 'static_library',
112       'sources': [
113         'history/core/browser/in_memory_url_index_cache.proto',
114       ],
115       'variables': {
116         'proto_in_dir': 'history/core/browser',
117         'proto_out_dir': 'components/history/core/browser',
118       },
119       'includes': [ '../build/protoc.gypi' ]
120     },
121     {
122       # GN version: //components/history/core/common
123       'target_name': 'history_core_common',
124       'type': 'static_library',
125       'include_dirs': [
126         '..',
127       ],
128       'dependencies': [
129         '../base/base.gyp:base',
130       ],
131       'sources': [
132         # Note: sources list duplicated in GN build.
133         'history/core/common/thumbnail_score.cc',
134         'history/core/common/thumbnail_score.h',
135       ],
136     },
137     {
138       # GN version: //components/history/core/test
139       'target_name': 'history_core_test_support',
140       'type': 'static_library',
141       'include_dirs': [
142         '..',
143       ],
144       'dependencies': [
145         '../base/base.gyp:base',
146         '../sql/sql.gyp:sql',
147         '../testing/gtest.gyp:gtest',
148         '../url/url.gyp:url_lib',
149         'history_core_browser',
150       ],
151       'sources': [
152         # Note: sources list duplicated in GN build.
153         'history/core/test/history_client_fake_bookmarks.cc',
154         'history/core/test/history_client_fake_bookmarks.h',
155         'history/core/test/history_unittest_base.cc',
156         'history/core/test/history_unittest_base.h',
157         'history/core/test/test_history_database.cc',
158         'history/core/test/test_history_database.h',
159       ],
160     },
161   ],
162   'conditions': [
163     ['OS!="ios"', {
164       'targets': [
165         {
166           # GN version: //components/history/content/browser
167           'target_name': 'history_content_browser',
168           'type': 'static_library',
169           'include_dirs': [
170             '..',
171           ],
172           'dependencies': [
173             '../base/base.gyp:base',
174             '../content/content.gyp:content_browser',
175             'history_core_browser',
176           ],
177           'sources': [
178             'history/content/browser/download_constants_utils.cc',
179             'history/content/browser/download_constants_utils.h',
180             'history/content/browser/history_context_helper.cc',
181             'history/content/browser/history_context_helper.h',
182             'history/content/browser/history_database_helper.cc',
183             'history/content/browser/history_database_helper.h',
184           ],
185         }
186       ],
187     }],
188   ],