OLD | NEW |
| (Empty) |
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. | |
4 | |
5 import("//build/config/chrome_build.gni") | |
6 | |
7 # NB: This is a deprecated vector icon target that should be removed. Add vector | |
8 # icons to a more specific target, or ui/vector_icons if ui/ is the right place | |
9 # for them. TODO(estade): remove this target. | |
10 action("aggregate_vector_icons") { | |
11 visibility = [ ":*" ] | |
12 | |
13 script = "aggregate_vector_icons.py" | |
14 | |
15 icons = [ | |
16 "business.icon", | |
17 "check_circle.1x.icon", | |
18 "check_circle.icon", | |
19 "default_favicon.icon", | |
20 "eol.icon", | |
21 "fullscreen.icon", | |
22 "help_outline.icon", | |
23 "info_outline.icon", | |
24 "notifications.icon", | |
25 "notifications_off.icon", | |
26 | |
27 # TODO(estade): this is the same as the one in components/omnibox, but it's | |
28 # referenced from Ash. De-dupe this soon. | |
29 "omnibox_search.icon", | |
30 "pdf.1x.icon", | |
31 "pdf.icon", | |
32 "warning.icon", | |
33 "web.icon", | |
34 ] | |
35 | |
36 if (is_mac) { | |
37 icons += [ "google_search_mac_touchbar.icon" ] | |
38 } | |
39 | |
40 output_cc = "$target_gen_dir/vector_icons.cc" | |
41 output_h = "$target_gen_dir/vector_icons.h" | |
42 | |
43 inputs = icons | |
44 inputs += [ | |
45 "vector_icons.cc.template", | |
46 "vector_icons.h.template", | |
47 ] | |
48 outputs = [ | |
49 output_cc, | |
50 output_h, | |
51 ] | |
52 | |
53 response_file_contents = rebase_path(icons, root_build_dir) | |
54 | |
55 args = [ | |
56 "--working_directory=" + rebase_path("./"), | |
57 "--file_list={{response_file_name}}", | |
58 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
59 "--output_h=" + rebase_path(output_h, root_build_dir), | |
60 "--use_legacy_template", | |
61 ] | |
62 } | |
63 | |
64 source_set("vector_icons") { | |
65 sources = get_target_outputs(":aggregate_vector_icons") | |
66 sources += [ | |
67 "../vector_icon_types.h", | |
68 "../vector_icons_public.h", | |
69 ] | |
70 | |
71 deps = [ | |
72 ":aggregate_vector_icons", | |
73 "//base", | |
74 "//skia", | |
75 ] | |
76 } | |
OLD | NEW |