OLD | NEW |
| (Empty) |
1 # Copyright 2017 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 action("aggregate_vector_icons") { | |
6 visibility = [ ":*" ] | |
7 | |
8 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py" | |
9 | |
10 icons = [ | |
11 "browser_tools.icon", | |
12 "browser_tools_error.icon", | |
13 "browser_tools_update.icon", | |
14 "navigate_back.1x.icon", | |
15 "navigate_back.icon", | |
16 "navigate_forward.1x.icon", | |
17 "navigate_forward.icon", | |
18 "navigate_home.1x.icon", | |
19 "navigate_home.icon", | |
20 "navigate_reload.1x.icon", | |
21 "navigate_reload.icon", | |
22 "navigate_stop.1x.icon", | |
23 "navigate_stop.icon", | |
24 ] | |
25 | |
26 output_cc = "$target_gen_dir/vector_icons.cc" | |
27 output_h = "$target_gen_dir/vector_icons.h" | |
28 | |
29 inputs = icons | |
30 inputs += [ | |
31 "vector_icons.cc.template", | |
32 "vector_icons.h.template", | |
33 ] | |
34 outputs = [ | |
35 output_cc, | |
36 output_h, | |
37 ] | |
38 | |
39 response_file_contents = rebase_path(icons, root_build_dir) | |
40 | |
41 args = [ | |
42 "--working_directory=" + rebase_path("./"), | |
43 "--file_list={{response_file_name}}", | |
44 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
45 "--output_h=" + rebase_path(output_h, root_build_dir), | |
46 ] | |
47 } | |
48 | |
49 source_set("vector_icons") { | |
50 sources = get_target_outputs(":aggregate_vector_icons") | |
51 sources += [ "//ui/gfx/vector_icon_types.h" ] | |
52 | |
53 deps = [ | |
54 ":aggregate_vector_icons", | |
55 "//base", | |
56 "//skia", | |
57 ] | |
58 } | |
OLD | NEW |