Automated Commit: Committing new LKGM version 6667.0.0 for chromeos.
[chromium-blink-merge.git] / components / history.gypi
blob434771afaae7f41fbcd88bd7173277f44c830f0c
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/history_backend_notifier.h',
30         'history/core/browser/history_backend_observer.h',
31         'history/core/browser/history_client.cc',
32         'history/core/browser/history_client.h',
33         'history/core/browser/history_constants.cc',
34         'history/core/browser/history_constants.h',
35         'history/core/browser/history_db_task.h',
36         'history/core/browser/history_match.cc',
37         'history/core/browser/history_match.h',
38         'history/core/browser/history_service_observer.h',
39         'history/core/browser/history_types.cc',
40         'history/core/browser/history_types.h',
41         'history/core/browser/in_memory_database.cc',
42         'history/core/browser/in_memory_database.h',
43         'history/core/browser/in_memory_url_index_types.cc',
44         'history/core/browser/in_memory_url_index_types.h',
45         'history/core/browser/keyword_id.h',
46         'history/core/browser/keyword_search_term.cc',
47         'history/core/browser/keyword_search_term.h',
48         'history/core/browser/page_usage_data.cc',
49         'history/core/browser/page_usage_data.h',
50         'history/core/browser/thumbnail_database.cc',
51         'history/core/browser/thumbnail_database.h',
52         'history/core/browser/top_sites_cache.cc',
53         'history/core/browser/top_sites_cache.h',
54         'history/core/browser/top_sites_observer.h',
55         'history/core/browser/url_database.cc',
56         'history/core/browser/url_database.h',
57         'history/core/browser/url_row.cc',
58         'history/core/browser/url_row.h',
59         'history/core/browser/url_utils.cc',
60         'history/core/browser/url_utils.h',
61         'history/core/browser/visit_database.cc',
62         'history/core/browser/visit_database.h',
63         'history/core/browser/visit_filter.cc',
64         'history/core/browser/visit_filter.h',
65         'history/core/browser/visit_tracker.cc',
66         'history/core/browser/visit_tracker.h',
67         'history/core/browser/visitsegment_database.cc',
68         'history/core/browser/visitsegment_database.h',
69       ],
70     },
71     {
72       # GN version: //components/history/core/browser:proto
73       # Protobuf compiler / generator for the InMemoryURLIndex caching
74       # protocol buffer.
75       'target_name': 'history_core_browser_proto',
76       'type': 'static_library',
77       'sources': [
78         'history/core/browser/in_memory_url_index_cache.proto',
79       ],
80       'variables': {
81         'proto_in_dir': 'history/core/browser',
82         'proto_out_dir': 'components/history/core/browser',
83       },
84       'includes': [ '../build/protoc.gypi' ]
85     },
86     {
87       # GN version: //components/history/core/common
88       'target_name': 'history_core_common',
89       'type': 'static_library',
90       'include_dirs': [
91         '..',
92       ],
93       'dependencies': [
94         '../base/base.gyp:base',
95       ],
96       'sources': [
97         # Note: sources list duplicated in GN build.
98         'history/core/common/thumbnail_score.cc',
99         'history/core/common/thumbnail_score.h',
100       ],
101     },
102     {
103       # GN version: //components/history/core/test
104       'target_name': 'history_core_test_support',
105       'type': 'static_library',
106       'include_dirs': [
107         '..',
108       ],
109       'dependencies': [
110         'history_core_browser',
111         '../base/base.gyp:base',
112         '../url/url.gyp:url_lib',
113       ],
114       'sources': [
115         # Note: sources list duplicated in GN build.
116         'history/core/test/history_client_fake_bookmarks.cc',
117         'history/core/test/history_client_fake_bookmarks.h',
118       ],
119     },
120   ],
121   'conditions': [
122     ['OS=="android"', {
123       'targets': [
124         {
125           # GN version: //components/history/code/android
126           'target_name': 'history_core_android',
127           'type': 'static_library',
128           'include_dirs': [
129             '..',
130           ],
131           'dependencies': [
132             '../base/base.gyp:base',
133             '../sql/sql.gyp:sql',
134             'history_core_browser',
135           ],
136           'sources': [
137             'history/core/android/android_cache_database.cc',
138             'history/core/android/android_cache_database.h',
139             'history/core/android/android_history_types.cc',
140             'history/core/android/android_history_types.h',
141             'history/core/android/android_time.h',
142             'history/core/android/android_urls_database.cc',
143             'history/core/android/android_urls_database.h',
144             'history/core/android/favicon_sql_handler.cc',
145             'history/core/android/favicon_sql_handler.h',
146             'history/core/android/sql_handler.cc',
147             'history/core/android/sql_handler.h',
148           ],
149         },
150       ],
151     }],
152   ],