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

Side by Side Diff: components/toolbar/BUILD.gn

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 action("aggregate_vector_icons") {
8 visibility = [ ":*" ]
9
10 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py"
11
12 icons = [
13 # TODO(estade): this is the same as ui/gfx/vector_icons/business.icon. Use
14 # that one instead once it's been updated from VectorIconId to VectorIcon.
15 "vector_icons/business.icon",
16 "vector_icons/http.1x.icon",
17 "vector_icons/http.icon",
18 "vector_icons/https_invalid.1x.icon",
19 "vector_icons/https_invalid.icon",
20 "vector_icons/https_valid.1x.icon",
21 "vector_icons/https_valid.icon",
22 "vector_icons/https_valid_in_chip.1x.icon",
23 "vector_icons/https_valid_in_chip.icon",
24 "vector_icons/product.1x.icon",
25 "vector_icons/product.icon",
26 "vector_icons/star_active.icon",
27 "vector_icons/star.icon",
28 ]
29
30 output_cc = "$target_gen_dir/vector_icons.cc"
31 output_h = "$target_gen_dir/vector_icons.h"
32
33 inputs = icons
34 inputs += [
35 "vector_icons/vector_icons.cc.template",
36 "vector_icons/vector_icons.h.template",
37 ]
38 outputs = [
39 output_cc,
40 output_h,
41 ]
42
43 response_file_contents = rebase_path(icons, root_build_dir)
44
45 args = [
46 "--working_directory=" + rebase_path("./vector_icons"),
47 "--file_list={{response_file_name}}",
48 "--output_cc=" + rebase_path(output_cc, root_build_dir),
49 "--output_h=" + rebase_path(output_h, root_build_dir),
50 ]
51 }
52
7 static_library("toolbar") { 53 static_library("toolbar") {
8 sources = [ 54 sources = [
9 "toolbar_model.h", 55 "toolbar_model.h",
10 "toolbar_model_delegate.h", 56 "toolbar_model_delegate.h",
11 "toolbar_model_impl.cc", 57 "toolbar_model_impl.cc",
12 "toolbar_model_impl.h", 58 "toolbar_model_impl.h",
13 ] 59 ]
14 60
15 deps = [ 61 deps = [
16 "//base", 62 "//base",
17 "//components/google/core/browser", 63 "//components/google/core/browser",
18 "//components/prefs", 64 "//components/prefs",
19 "//components/resources", 65 "//components/resources",
20 "//components/security_state/core", 66 "//components/security_state/core",
21 "//components/strings", 67 "//components/strings",
22 "//components/url_formatter", 68 "//components/url_formatter",
23 "//net", 69 "//net",
24 "//ui/base", 70 "//ui/base",
25 "//ui/gfx", 71 "//ui/gfx",
26 "//url", 72 "//url",
27 ] 73 ]
74
75 if (!is_android && !is_ios) {
76 sources += get_target_outputs(":aggregate_vector_icons")
77 deps += [ ":aggregate_vector_icons" ]
78 }
28 } 79 }
29 80
30 static_library("test_support") { 81 static_library("test_support") {
31 testonly = true 82 testonly = true
32 83
33 sources = [ 84 sources = [
34 "test_toolbar_model.cc", 85 "test_toolbar_model.cc",
35 "test_toolbar_model.h", 86 "test_toolbar_model.h",
36 ] 87 ]
37 88
38 deps = [ 89 deps = [
39 ":toolbar", 90 ":toolbar",
40 "//base", 91 "//base",
41 "//components/resources", 92 "//components/resources",
42 "//ui/gfx", 93 "//ui/gfx",
43 ] 94 ]
44 95
45 if (toolkit_views) { 96 if (toolkit_views) {
46 # Needed to get the TOOLKIT_VIEWS define. 97 # Needed to get the TOOLKIT_VIEWS define.
47 deps += [ "//ui/views" ] 98 deps += [ "//ui/views" ]
48 } 99 }
49 } 100 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/vector_icons/vector_icons.h.template ('k') | components/toolbar/test_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698