summaryrefslogtreecommitdiffstats
path: root/components/history.gypi
blob: 88f1a12a5519e56b617159d4c6568e9405a1c6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      # GN version: //components/history/core/browser
      'target_name': 'history_core_browser',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
        '../base/base.gyp:base_i18n',
        '../google_apis/google_apis.gyp:google_apis',
        '../net/net.gyp:net',
        '../skia/skia.gyp:skia',
        '../sql/sql.gyp:sql',
        '../sync/sync.gyp:sync',
        '../third_party/sqlite/sqlite.gyp:sqlite',
        '../ui/base/ui_base.gyp:ui_base',
        '../ui/gfx/gfx.gyp:gfx',
        '../url/url.gyp:url_lib',
        'favicon_base',
        'history_core_common',
        'keyed_service_core',
        'prefs/prefs.gyp:prefs',
        'query_parser',
        'signin_core_browser',
        'sync_driver',
        'url_formatter/url_formatter.gyp:url_formatter',
      ],
      'export_dependent_settings': [
        '../skia/skia.gyp:skia',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'history/core/browser/delete_directive_handler.cc',
        'history/core/browser/delete_directive_handler.h',
        'history/core/browser/download_constants.h',
        'history/core/browser/download_database.cc',
        'history/core/browser/download_database.h',
        'history/core/browser/download_row.cc',
        'history/core/browser/download_row.h',
        'history/core/browser/download_types.cc',
        'history/core/browser/download_types.h',
        'history/core/browser/expire_history_backend.cc',
        'history/core/browser/expire_history_backend.h',
        'history/core/browser/history_backend.cc',
        'history/core/browser/history_backend.h',
        'history/core/browser/history_backend_client.h',
        'history/core/browser/history_backend_notifier.h',
        'history/core/browser/history_backend_observer.h',
        'history/core/browser/history_client.h',
        'history/core/browser/history_constants.cc',
        'history/core/browser/history_constants.h',
        'history/core/browser/history_context.h',
        'history/core/browser/history_database.cc',
        'history/core/browser/history_database.h',
        'history/core/browser/history_database_params.cc',
        'history/core/browser/history_database_params.h',
        'history/core/browser/history_db_task.h',
        'history/core/browser/history_delete_directives_data_type_controller.cc',
        'history/core/browser/history_delete_directives_data_type_controller.h',
        'history/core/browser/history_match.cc',
        'history/core/browser/history_match.h',
        'history/core/browser/history_model_worker.cc',
        'history/core/browser/history_model_worker.h',
        'history/core/browser/history_service.cc',
        'history/core/browser/history_service.h',
        'history/core/browser/history_service_observer.h',
        'history/core/browser/history_types.cc',
        'history/core/browser/history_types.h',
        'history/core/browser/in_memory_database.cc',
        'history/core/browser/in_memory_database.h',
        'history/core/browser/in_memory_history_backend.cc',
        'history/core/browser/in_memory_history_backend.h',
        'history/core/browser/keyword_id.h',
        'history/core/browser/keyword_search_term.cc',
        'history/core/browser/keyword_search_term.h',
        'history/core/browser/page_usage_data.cc',
        'history/core/browser/page_usage_data.h',
        'history/core/browser/thumbnail_database.cc',
        'history/core/browser/thumbnail_database.h',
        'history/core/browser/top_sites.cc',
        'history/core/browser/top_sites.h',
        'history/core/browser/top_sites_backend.cc',
        'history/core/browser/top_sites_backend.h',
        'history/core/browser/top_sites_cache.cc',
        'history/core/browser/top_sites_cache.h',
        'history/core/browser/top_sites_database.cc',
        'history/core/browser/top_sites_database.h',
        'history/core/browser/top_sites_impl.cc',
        'history/core/browser/top_sites_impl.h',
        'history/core/browser/top_sites_observer.h',
        'history/core/browser/typed_url_data_type_controller.cc',
        'history/core/browser/typed_url_data_type_controller.h',
        'history/core/browser/typed_url_syncable_service.cc',
        'history/core/browser/typed_url_syncable_service.h',
        'history/core/browser/url_database.cc',
        'history/core/browser/url_database.h',
        'history/core/browser/url_row.cc',
        'history/core/browser/url_row.h',
        'history/core/browser/url_utils.cc',
        'history/core/browser/url_utils.h',
        'history/core/browser/visit_database.cc',
        'history/core/browser/visit_database.h',
        'history/core/browser/visit_delegate.cc',
        'history/core/browser/visit_delegate.h',
        'history/core/browser/visit_filter.cc',
        'history/core/browser/visit_filter.h',
        'history/core/browser/visit_tracker.cc',
        'history/core/browser/visit_tracker.h',
        'history/core/browser/visitsegment_database.cc',
        'history/core/browser/visitsegment_database.h',
        'history/core/browser/web_history_service.cc',
        'history/core/browser/web_history_service.h',
      ],
      'conditions': [
        ['OS=="android"', {
          'sources': [
            'history/core/browser/android/android_cache_database.cc',
            'history/core/browser/android/android_cache_database.h',
            'history/core/browser/android/android_history_types.cc',
            'history/core/browser/android/android_history_types.h',
            'history/core/browser/android/android_time.h',
            'history/core/browser/android/android_urls_database.cc',
            'history/core/browser/android/android_urls_database.h',
            'history/core/browser/android/android_urls_sql_handler.cc',
            'history/core/browser/android/android_urls_sql_handler.h',
            'history/core/browser/android/favicon_sql_handler.cc',
            'history/core/browser/android/favicon_sql_handler.h',
            'history/core/browser/android/sql_handler.cc',
            'history/core/browser/android/sql_handler.h',
            'history/core/browser/android/urls_sql_handler.cc',
            'history/core/browser/android/urls_sql_handler.h',
            'history/core/browser/android/visit_sql_handler.cc',
            'history/core/browser/android/visit_sql_handler.h',
          ],
        }],
      ],
    },
    {
      # GN version: //components/history/core/common
      'target_name': 'history_core_common',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'history/core/common/thumbnail_score.cc',
        'history/core/common/thumbnail_score.h',
      ],
    },
    {
      # GN version: //components/history/core/test
      'target_name': 'history_core_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
        '../net/net.gyp:net',
        '../skia/skia.gyp:skia',
        '../sql/sql.gyp:sql',
        '../sql/sql.gyp:test_support_sql',
        '../sync/sync.gyp:sync',
        '../testing/gtest.gyp:gtest',
        '../ui/gfx/gfx.gyp:gfx',
        '../url/url.gyp:url_lib',
        'history_core_browser',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'history/core/test/database_test_utils.cc',
        'history/core/test/database_test_utils.h',
        'history/core/test/fake_web_history_service.cc',
        'history/core/test/fake_web_history_service.h',
        'history/core/test/history_backend_db_base_test.cc',
        'history/core/test/history_backend_db_base_test.h',
        'history/core/test/history_client_fake_bookmarks.cc',
        'history/core/test/history_client_fake_bookmarks.h',
        'history/core/test/history_unittest_base.cc',
        'history/core/test/history_service_test_util.cc',
        'history/core/test/history_service_test_util.h',
        'history/core/test/history_unittest_base.h',
        'history/core/test/test_history_database.cc',
        'history/core/test/test_history_database.h',
        'history/core/test/thumbnail-inl.h',
        'history/core/test/thumbnail.cc',
        'history/core/test/thumbnail.h',
        'history/core/test/thumbnail_ios.mm',
        'history/core/test/wait_top_sites_loaded_observer.cc',
        'history/core/test/wait_top_sites_loaded_observer.h',
      ],
      'conditions': [
        ['OS=="ios"', {
          'sources!': [
            'history/core/test/thumbnail.cc',
          ],
        }],
      ],
    },
  ],
  'conditions': [
    ['OS!="ios"', {
      'targets': [
        {
          # GN version: //components/history/content/browser
          'target_name': 'history_content_browser',
          'type': 'static_library',
          'include_dirs': [
            '..',
          ],
          'dependencies': [
            '../base/base.gyp:base',
            '../content/content.gyp:content_browser',
            '../url/url.gyp:url_lib',
            'history_core_browser',
            'visitedlink_browser',
          ],
          'sources': [
            'history/content/browser/content_visit_delegate.cc',
            'history/content/browser/content_visit_delegate.h',
            'history/content/browser/download_constants_utils.cc',
            'history/content/browser/download_constants_utils.h',
            'history/content/browser/history_context_helper.cc',
            'history/content/browser/history_context_helper.h',
            'history/content/browser/history_database_helper.cc',
            'history/content/browser/history_database_helper.h',
            'history/content/browser/web_contents_top_sites_observer.cc',
            'history/content/browser/web_contents_top_sites_observer.h',
          ],
        }
      ],
    }],
    ['OS=="ios"', {
      'targets': [
        {
          # GN version: //components/history/ios/browser
          'target_name': 'history_ios_browser',
          'type': 'static_library',
          'include_dirs': [
            '..',
          ],
          'dependencies': [
            '../base/base.gyp:base',
            '../ios/web/ios_web.gyp:ios_web',
            '../url/url.gyp:url_lib',
            'history_core_browser',
          ],
          'sources': [
            'history/ios/browser/history_database_helper.cc',
            'history/ios/browser/history_database_helper.h',
            'history/ios/browser/web_state_top_sites_observer.cc',
            'history/ios/browser/web_state_top_sites_observer.h',
          ],
        },
      ],
    }],
  ],
}