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.
4
5{
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        '../ui/base/ui_base.gyp:ui_base',
19        '../ui/gfx/gfx.gyp:gfx',
20        '../url/url.gyp:url_lib',
21        'favicon_base',
22        'keyed_service_core',
23        'query_parser',
24      ],
25      'sources': [
26        # Note: sources list duplicated in GN build.
27        'history/core/browser/history_client.cc',
28        'history/core/browser/history_client.h',
29        'history/core/browser/history_types.cc',
30        'history/core/browser/history_types.h',
31        'history/core/browser/history_match.cc',
32        'history/core/browser/history_match.h',
33        'history/core/browser/in_memory_database.cc',
34        'history/core/browser/in_memory_database.h',
35        'history/core/browser/keyword_id.h',
36        'history/core/browser/keyword_search_term.cc',
37        'history/core/browser/keyword_search_term.h',
38        'history/core/browser/page_usage_data.cc',
39        'history/core/browser/page_usage_data.h',
40        'history/core/browser/top_sites_observer.h',
41        'history/core/browser/url_database.cc',
42        'history/core/browser/url_database.h',
43        'history/core/browser/url_row.cc',
44        'history/core/browser/url_row.h',
45      ],
46    },
47    {
48      # GN version: //components/history/core/common
49      'target_name': 'history_core_common',
50      'type': 'static_library',
51      'include_dirs': [
52        '..',
53      ],
54      'dependencies': [
55        '../base/base.gyp:base',
56      ],
57      'sources': [
58        # Note: sources list duplicated in GN build.
59        'history/core/common/thumbnail_score.cc',
60        'history/core/common/thumbnail_score.h',
61      ],
62    },
63    {
64      # GN version: //components/history/core/test
65      'target_name': 'history_core_test_support',
66      'type': 'static_library',
67      'include_dirs': [
68        '..',
69      ],
70      'dependencies': [
71        'history_core_browser',
72        '../base/base.gyp:base',
73        '../url/url.gyp:url_lib',
74      ],
75      'sources': [
76        # Note: sources list duplicated in GN build.
77        'history/core/test/history_client_fake_bookmarks.cc',
78        'history/core/test/history_client_fake_bookmarks.h',
79      ],
80    },
81  ],
82  'conditions': [
83    ['OS=="android"', {
84      'targets': [
85        {
86          # GN version: //components/history/code/android
87          'target_name': 'history_core_android',
88          'type': 'static_library',
89          'include_dirs': [
90            '..',
91          ],
92          'dependencies': [
93            '../base/base.gyp:base',
94            '../sql/sql.gyp:sql',
95            'history_core_browser',
96          ],
97          'sources': [
98            'history/core/android/android_history_types.cc',
99            'history/core/android/android_history_types.h',
100          ],
101        },
102      ],
103    }],
104  ],
105}
106