| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") |
| 5 import("//tools/json_to_struct/json_to_struct.gni") | 6 import("//tools/json_to_struct/json_to_struct.gni") |
| 6 | 7 |
| 7 static_library("search_engines") { | 8 static_library("search_engines") { |
| 8 sources = [ | 9 sources = [ |
| 9 "default_search_manager.cc", | 10 "default_search_manager.cc", |
| 10 "default_search_manager.h", | 11 "default_search_manager.h", |
| 11 "default_search_policy_handler.cc", | |
| 12 "default_search_policy_handler.h", | |
| 13 "keyword_table.cc", | 12 "keyword_table.cc", |
| 14 "keyword_table.h", | 13 "keyword_table.h", |
| 15 "keyword_web_data_service.cc", | 14 "keyword_web_data_service.cc", |
| 16 "keyword_web_data_service.h", | 15 "keyword_web_data_service.h", |
| 17 "search_engine_type.h", | 16 "search_engine_type.h", |
| 18 "search_engines_pref_names.cc", | 17 "search_engines_pref_names.cc", |
| 19 "search_engines_pref_names.h", | 18 "search_engines_pref_names.h", |
| 20 "search_engines_switches.cc", | 19 "search_engines_switches.cc", |
| 21 "search_engines_switches.h", | 20 "search_engines_switches.h", |
| 22 "search_host_to_urls_map.cc", | 21 "search_host_to_urls_map.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 "template_url_service_observer.h", | 39 "template_url_service_observer.h", |
| 41 "util.cc", | 40 "util.cc", |
| 42 "util.h", | 41 "util.h", |
| 43 ] | 42 ] |
| 44 | 43 |
| 45 deps = [ | 44 deps = [ |
| 46 ":prepopulated_engines", | 45 ":prepopulated_engines", |
| 47 "//base", | 46 "//base", |
| 48 "//components/keyed_service/core", | 47 "//components/keyed_service/core", |
| 49 "//components/metrics/proto", | 48 "//components/metrics/proto", |
| 50 "//components/policy", | |
| 51 "//components/pref_registry", | 49 "//components/pref_registry", |
| 52 "//components/rappor", | 50 "//components/rappor", |
| 53 "//components/strings", | 51 "//components/strings", |
| 54 "//components/url_fixer", | 52 "//components/url_fixer", |
| 55 "//components/webdata/common", | 53 "//components/webdata/common", |
| 56 "//google_apis", | 54 "//google_apis", |
| 57 "//net", | 55 "//net", |
| 58 "//sql", | 56 "//sql", |
| 59 "//sync", | 57 "//sync", |
| 60 "//third_party/libxml", | 58 "//third_party/libxml", |
| 61 "//ui/gfx", | 59 "//ui/gfx", |
| 62 "//url", | 60 "//url", |
| 63 #'google_core_browser', TODO(GYP) | 61 #'google_core_browser', TODO(GYP) |
| 64 ] | 62 ] |
| 63 |
| 64 if (enable_configuration_policy) { |
| 65 sources += [ |
| 66 "default_search_policy_handler.cc", |
| 67 "default_search_policy_handler.h", |
| 68 ] |
| 69 deps += [ |
| 70 "//components/policy", |
| 71 ] |
| 72 } |
| 65 } | 73 } |
| 66 | 74 |
| 67 json_to_struct("prepopulated_engines") { | 75 json_to_struct("prepopulated_engines") { |
| 68 visibility = ":*" | 76 visibility = ":*" |
| 69 | 77 |
| 70 source = "prepopulated_engines.json" | 78 source = "prepopulated_engines.json" |
| 71 schema_file = "prepopulated_engines_schema.json" | 79 schema_file = "prepopulated_engines_schema.json" |
| 72 namespace = "TemplateURLPrepopulateData" | 80 namespace = "TemplateURLPrepopulateData" |
| 73 } | 81 } |
| OLD | NEW |