Automated Commit: Committing new LKGM version 6953.0.0 for chromeos.
[chromium-blink-merge.git] / components / search_engines / BUILD.gn
bloba1cb1812aca5714ccca1411f53cf672eb8326c3a
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.
5 import("//build/config/features.gni")
6 import("//tools/json_to_struct/json_to_struct.gni")
8 static_library("search_engines") {
9   sources = [
10     "default_search_manager.cc",
11     "default_search_manager.h",
12     "keyword_table.cc",
13     "keyword_table.h",
14     "keyword_web_data_service.cc",
15     "keyword_web_data_service.h",
16     "search_engine_type.h",
17     "search_engines_pref_names.cc",
18     "search_engines_pref_names.h",
19     "search_engines_switches.cc",
20     "search_engines_switches.h",
21     "search_host_to_urls_map.cc",
22     "search_host_to_urls_map.h",
23     "search_terms_data.cc",
24     "search_terms_data.h",
25     "template_url.cc",
26     "template_url.h",
27     "template_url_data.cc",
28     "template_url_data.h",
29     "template_url_fetcher.cc",
30     "template_url_fetcher.h",
31     "template_url_id.h",
32     "template_url_parser.cc",
33     "template_url_parser.h",
34     "template_url_prepopulate_data.cc",
35     "template_url_prepopulate_data.h",
36     "template_url_service.cc",
37     "template_url_service.h",
38     "template_url_service_client.h",
39     "template_url_service_observer.h",
40     "util.cc",
41     "util.h",
42   ]
44   public_deps = [
45     "//components/metrics/proto",
46   ]
48   deps = [
49     ":prepopulated_engines",
50     "//base",
51     "//components/google/core/browser",
52     "//components/history/core/browser",
53     "//components/keyed_service/core",
54     "//components/metrics/proto",
55     "//components/pref_registry",
56     "//components/rappor",
57     "//components/strings",
58     "//components/url_fixer",
59     "//components/webdata/common",
60     "//google_apis",
61     "//net",
62     "//sql",
63     "//sync",
64     "//third_party/libxml",
65     "//ui/gfx",
66     "//url",
67   ]
69   if (enable_configuration_policy) {
70     sources += [
71       "default_search_policy_handler.cc",
72       "default_search_policy_handler.h",
73     ]
74     deps += [ "//components/policy" ]
75   }
78 source_set("test_support") {
79   testonly = true
80   sources = [
81     "default_search_pref_test_util.cc",
82     "default_search_pref_test_util.h",
83     "testing_search_terms_data.cc",
84     "testing_search_terms_data.h",
85   ]
87   deps = [
88     ":search_engines",
89     "//testing/gtest",
90   ]
93 json_to_struct("prepopulated_engines") {
94   visibility = [ ":*" ]
96   source = "prepopulated_engines.json"
97   schema_file = "prepopulated_engines_schema.json"
98   namespace = "TemplateURLPrepopulateData"