Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: components/omnibox/browser/BUILD.gn

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//third_party/protobuf/proto_library.gni") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
11 action("aggregate_vector_icons") {
12 visibility = [ ":*" ]
13
14 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py"
15
16 icons = [
17 "vector_icons/calculator.1x.icon",
18 "vector_icons/calculator.icon",
19 "vector_icons/extension_app.1x.icon",
20 "vector_icons/extension_app.icon",
21 "vector_icons/http.icon",
22 "vector_icons/keyword_search.icon",
23 "vector_icons/search.icon",
24 "vector_icons/star.1x.icon",
25 "vector_icons/star.icon",
26 ]
27
28 output_cc = "$target_gen_dir/vector_icons.cc"
29 output_h = "$target_gen_dir/vector_icons.h"
30
31 inputs = icons
32 inputs += [
33 "vector_icons/vector_icons.cc.template",
34 "vector_icons/vector_icons.h.template",
35 ]
36 outputs = [
37 output_cc,
38 output_h,
39 ]
40
41 response_file_contents = rebase_path(icons, root_build_dir)
42
43 args = [
44 "--working_directory=" + rebase_path("./vector_icons"),
45 "--file_list={{response_file_name}}",
46 "--output_cc=" + rebase_path(output_cc, root_build_dir),
47 "--output_h=" + rebase_path(output_h, root_build_dir),
48 ]
49 }
50
11 static_library("browser") { 51 static_library("browser") {
12 sources = [ 52 sources = [
13 "answers_cache.cc", 53 "answers_cache.cc",
14 "answers_cache.h", 54 "answers_cache.h",
15 "autocomplete_classifier.cc", 55 "autocomplete_classifier.cc",
16 "autocomplete_classifier.h", 56 "autocomplete_classifier.h",
17 "autocomplete_controller.cc", 57 "autocomplete_controller.cc",
18 "autocomplete_controller.h", 58 "autocomplete_controller.h",
19 "autocomplete_controller_delegate.h", 59 "autocomplete_controller_delegate.h",
20 "autocomplete_input.cc", 60 "autocomplete_input.cc",
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 "url_index_private_data.cc", 142 "url_index_private_data.cc",
103 "url_index_private_data.h", 143 "url_index_private_data.h",
104 "url_prefix.cc", 144 "url_prefix.cc",
105 "url_prefix.h", 145 "url_prefix.h",
106 "verbatim_match.cc", 146 "verbatim_match.cc",
107 "verbatim_match.h", 147 "verbatim_match.h",
108 "zero_suggest_provider.cc", 148 "zero_suggest_provider.cc",
109 "zero_suggest_provider.h", 149 "zero_suggest_provider.h",
110 ] 150 ]
111 151
152 defines = [ "OMNIBOX_BROWSER_IMPLEMENTATION" ]
153
112 public_deps = [ 154 public_deps = [
113 "//components/history/core/browser", 155 "//components/history/core/browser",
114 "//components/metrics/proto", 156 "//components/metrics/proto",
115 "//components/omnibox/common", 157 "//components/omnibox/common",
116 ] 158 ]
117 deps = [ 159 deps = [
118 ":in_memory_url_index_cache_proto", 160 ":in_memory_url_index_cache_proto",
119 "//base", 161 "//base",
120 "//base:i18n", 162 "//base:i18n",
121 "//components/bookmarks/browser", 163 "//components/bookmarks/browser",
(...skipping 16 matching lines...) Expand all
138 "//components/variations/net", 180 "//components/variations/net",
139 "//net", 181 "//net",
140 "//skia", 182 "//skia",
141 "//sql", 183 "//sql",
142 "//third_party/protobuf:protobuf_lite", 184 "//third_party/protobuf:protobuf_lite",
143 "//ui/base", 185 "//ui/base",
144 "//ui/gfx", 186 "//ui/gfx",
145 "//url", 187 "//url",
146 ] 188 ]
147 189
190 if (!is_android && !is_ios) {
191 sources += get_target_outputs(":aggregate_vector_icons")
192 deps += [ ":aggregate_vector_icons" ]
193 }
194
148 # TODO(brettw) Fix the include cycle and remove this line. 195 # TODO(brettw) Fix the include cycle and remove this line.
149 allow_circular_includes_from = [ "//components/search_engines" ] 196 allow_circular_includes_from = [ "//components/search_engines" ]
150 } 197 }
151 198
152 if (is_android) { 199 if (is_android) {
153 java_cpp_enum("autocomplete_match_javagen") { 200 java_cpp_enum("autocomplete_match_javagen") {
154 sources = [ 201 sources = [
155 "autocomplete_match.h", 202 "autocomplete_match.h",
156 ] 203 ]
157 } 204 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 "//components/variations", 320 "//components/variations",
274 "//net:test_support", 321 "//net:test_support",
275 "//sql", 322 "//sql",
276 "//sql:test_support", 323 "//sql:test_support",
277 "//testing/gmock", 324 "//testing/gmock",
278 "//testing/gtest", 325 "//testing/gtest",
279 "//ui/base:base", 326 "//ui/base:base",
280 "//url", 327 "//url",
281 ] 328 ]
282 } 329 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/translate/translate_icon_view.cc ('k') | components/omnibox/browser/autocomplete_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698