summaryrefslogtreecommitdiffstats
path: root/components/omnibox.gypi
blob: dcb053618e296a6cc0ff59957668d420963dd760 (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
# 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/omnibox/browser
      'target_name': 'omnibox_browser',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../base/base.gyp:base_i18n',
        '../net/net.gyp:net',
        '../skia/skia.gyp:skia',
        '../sql/sql.gyp:sql',
        '../third_party/protobuf/protobuf.gyp:protobuf_lite',
        '../ui/base/ui_base.gyp:ui_base',
        '../ui/gfx/gfx.gyp:gfx',
        '../ui/gfx/gfx.gyp:gfx_vector_icons',
        '../url/url.gyp:url_lib',
        'bookmarks_browser',
        'crash_core_common',  # TODO(mpearson): remove once 464926 is fixed.
        'metrics',
        'component_metrics_proto',
        'components_resources.gyp:components_resources',
        'components_strings.gyp:components_strings',
        'data_use_measurement_core',
        'history_core_browser',
        'keyed_service_core',
        'omnibox_common',
        'omnibox_in_memory_url_index_cache_proto',
        'open_from_clipboard',
        'pref_registry',
        'query_parser',
        'search',
        'search_engines',
        'toolbar',
        'url_formatter/url_formatter.gyp:url_formatter',
        'variations_net',
      ],
      'export_dependent_settings': [
        'component_metrics_proto',
        'history_core_browser',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'omnibox/browser/answers_cache.cc',
        'omnibox/browser/answers_cache.h',
        'omnibox/browser/autocomplete_classifier.cc',
        'omnibox/browser/autocomplete_classifier.h',
        'omnibox/browser/autocomplete_controller.cc',
        'omnibox/browser/autocomplete_controller.h',
        'omnibox/browser/autocomplete_controller_delegate.h',
        'omnibox/browser/autocomplete_input.cc',
        'omnibox/browser/autocomplete_input.h',
        'omnibox/browser/autocomplete_match.cc',
        'omnibox/browser/autocomplete_match.h',
        'omnibox/browser/autocomplete_match_type.cc',
        'omnibox/browser/autocomplete_match_type.h',
        'omnibox/browser/autocomplete_provider.cc',
        'omnibox/browser/autocomplete_provider.h',
        'omnibox/browser/autocomplete_provider_client.h',
        'omnibox/browser/autocomplete_provider_listener.h',
        'omnibox/browser/autocomplete_result.cc',
        'omnibox/browser/autocomplete_result.h',
        'omnibox/browser/autocomplete_scheme_classifier.h',
        'omnibox/browser/base_search_provider.cc',
        'omnibox/browser/base_search_provider.h',
        'omnibox/browser/bookmark_provider.cc',
        'omnibox/browser/bookmark_provider.h',
        'omnibox/browser/builtin_provider.cc',
        'omnibox/browser/builtin_provider.h',
        'omnibox/browser/clipboard_url_provider.cc',
        'omnibox/browser/clipboard_url_provider.h',
        'omnibox/browser/history_provider.cc',
        'omnibox/browser/history_provider.h',
        'omnibox/browser/history_quick_provider.cc',
        'omnibox/browser/history_quick_provider.h',
        'omnibox/browser/history_url_provider.cc',
        'omnibox/browser/history_url_provider.h',
        'omnibox/browser/in_memory_url_index.cc',
        'omnibox/browser/in_memory_url_index.h',
        'omnibox/browser/in_memory_url_index_types.cc',
        'omnibox/browser/in_memory_url_index_types.h',
        'omnibox/browser/keyword_extensions_delegate.cc',
        'omnibox/browser/keyword_extensions_delegate.h',
        'omnibox/browser/keyword_provider.cc',
        'omnibox/browser/keyword_provider.h',
        'omnibox/browser/omnibox_client.h',
        'omnibox/browser/omnibox_controller.cc',
        'omnibox/browser/omnibox_controller.h',
        'omnibox/browser/omnibox_edit_controller.cc',
        'omnibox/browser/omnibox_edit_controller.h',
        'omnibox/browser/omnibox_edit_model.cc',
        'omnibox/browser/omnibox_edit_model.h',
        'omnibox/browser/omnibox_event_global_tracker.cc',
        'omnibox/browser/omnibox_event_global_tracker.h',
        'omnibox/browser/omnibox_field_trial.cc',
        'omnibox/browser/omnibox_field_trial.h',
        'omnibox/browser/omnibox_log.cc',
        'omnibox/browser/omnibox_log.h',
        'omnibox/browser/omnibox_metrics_provider.cc',
        'omnibox/browser/omnibox_metrics_provider.h',
        'omnibox/browser/omnibox_navigation_observer.h',
        'omnibox/browser/omnibox_popup_model.cc',
        'omnibox/browser/omnibox_popup_model.h',
        'omnibox/browser/omnibox_popup_model_observer.h',
        'omnibox/browser/omnibox_popup_view.h',
        'omnibox/browser/omnibox_pref_names.cc',
        'omnibox/browser/omnibox_pref_names.h',
        'omnibox/browser/omnibox_switches.cc',
        'omnibox/browser/omnibox_switches.h',
        'omnibox/browser/omnibox_view.cc',
        'omnibox/browser/omnibox_view.h',
        'omnibox/browser/scored_history_match.cc',
        'omnibox/browser/scored_history_match.h',
        'omnibox/browser/search_provider.cc',
        'omnibox/browser/search_provider.h',
        'omnibox/browser/search_suggestion_parser.cc',
        'omnibox/browser/search_suggestion_parser.h',
        'omnibox/browser/shortcuts_backend.cc',
        'omnibox/browser/shortcuts_backend.h',
        'omnibox/browser/shortcuts_constants.cc',
        'omnibox/browser/shortcuts_constants.h',
        'omnibox/browser/shortcuts_database.cc',
        'omnibox/browser/shortcuts_database.h',
        'omnibox/browser/shortcuts_provider.cc',
        'omnibox/browser/shortcuts_provider.h',
        'omnibox/browser/suggestion_answer.cc',
        'omnibox/browser/suggestion_answer.h',
        'omnibox/browser/url_index_private_data.cc',
        'omnibox/browser/url_index_private_data.h',
        'omnibox/browser/url_prefix.cc',
        'omnibox/browser/url_prefix.h',
        'omnibox/browser/verbatim_match.cc',
        'omnibox/browser/verbatim_match.h',
        'omnibox/browser/zero_suggest_provider.cc',
        'omnibox/browser/zero_suggest_provider.h',
      ],
    },
    {
      # GN version: //components/omnibox/common
      'target_name': 'omnibox_common',
      'type': 'none',
      'include_dirs': [
        '..',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'omnibox/common/omnibox_focus_state.h',
      ],
    },
    {
      # Protobuf compiler / generator for the InMemoryURLIndex caching
      # protocol buffer.
      # GN version: //components/omnibox:in_memory_url_index_cache_proto
      'target_name': 'omnibox_in_memory_url_index_cache_proto',
      'type': 'static_library',
      'sources': [ 'omnibox/browser/in_memory_url_index_cache.proto', ],
      'variables': {
        'proto_in_dir': 'omnibox/browser',
        'proto_out_dir': 'components/omnibox/browser',
      },
      'includes': [ '../build/protoc.gypi', ],
    },
    {
      # GN version: //components/omnibox:test_support
      'target_name': 'omnibox_test_support',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../testing/gmock.gyp:gmock',
        'omnibox_browser',
        'component_metrics_proto',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'omnibox/browser/mock_autocomplete_provider_client.cc',
        'omnibox/browser/mock_autocomplete_provider_client.h',
        'omnibox/browser/test_scheme_classifier.cc',
        'omnibox/browser/test_scheme_classifier.h',
      ],
    },
  ],
  'conditions': [
    ['OS == "android"', {
      'targets': [
        {
          # GN: //components/omnibox:autocomplete_match_type_javagen
          'target_name': 'autocomplete_match_type_java',
          'type': 'none',
          'variables': {
            'source_file': 'omnibox/browser/autocomplete_match_type.h',
          },
          'includes': [ '../build/android/java_cpp_enum.gypi' ],
        },
      ],
    }],
  ],
}