| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 action("aggregate_vector_icons") { | 5 import("//ui/vector_icons/vector_icons.gni") |
| 6 visibility = [ ":*" ] | |
| 7 | 6 |
| 8 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py" | 7 aggregate_vector_icons("chrome_vector_icons") { |
| 8 icon_directory = "." |
| 9 | 9 |
| 10 icons = [ | 10 icons = [ |
| 11 "autologin.icon", | 11 "autologin.icon", |
| 12 "bluetooth_connected.icon", | 12 "bluetooth_connected.icon", |
| 13 "browser_tools.icon", | 13 "browser_tools.icon", |
| 14 "browser_tools_error.icon", | 14 "browser_tools_error.icon", |
| 15 "browser_tools_update.icon", | 15 "browser_tools_update.icon", |
| 16 "caret_down.1x.icon", | 16 "caret_down.1x.icon", |
| 17 "caret_down.icon", | 17 "caret_down.icon", |
| 18 "caret_up.1x.icon", | 18 "caret_up.1x.icon", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 "tab_close_normal.icon", | 54 "tab_close_normal.icon", |
| 55 "tab_media_capturing.icon", | 55 "tab_media_capturing.icon", |
| 56 "tab_media_recording.icon", | 56 "tab_media_recording.icon", |
| 57 "tab_usb_connected.1x.icon", | 57 "tab_usb_connected.1x.icon", |
| 58 "tab_usb_connected.icon", | 58 "tab_usb_connected.icon", |
| 59 "tablet.icon", | 59 "tablet.icon", |
| 60 "translate.icon", | 60 "translate.icon", |
| 61 "zoom_minus.icon", | 61 "zoom_minus.icon", |
| 62 "zoom_plus.icon", | 62 "zoom_plus.icon", |
| 63 ] | 63 ] |
| 64 | |
| 65 output_cc = "$target_gen_dir/vector_icons.cc" | |
| 66 output_h = "$target_gen_dir/vector_icons.h" | |
| 67 | |
| 68 inputs = icons | |
| 69 inputs += [ | |
| 70 "vector_icons.cc.template", | |
| 71 "vector_icons.h.template", | |
| 72 ] | |
| 73 outputs = [ | |
| 74 output_cc, | |
| 75 output_h, | |
| 76 ] | |
| 77 | |
| 78 response_file_contents = rebase_path(icons, root_build_dir) | |
| 79 | |
| 80 args = [ | |
| 81 "--working_directory=" + rebase_path("./"), | |
| 82 "--file_list={{response_file_name}}", | |
| 83 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
| 84 "--output_h=" + rebase_path(output_h, root_build_dir), | |
| 85 ] | |
| 86 } | 64 } |
| 87 | 65 |
| 88 source_set("vector_icons") { | 66 source_set("vector_icons") { |
| 89 sources = get_target_outputs(":aggregate_vector_icons") | 67 sources = get_target_outputs(":chrome_vector_icons") |
| 90 sources += [ "//ui/gfx/vector_icon_types.h" ] | 68 sources += [ "//ui/gfx/vector_icon_types.h" ] |
| 91 | 69 |
| 92 deps = [ | 70 deps = [ |
| 93 ":aggregate_vector_icons", | 71 ":chrome_vector_icons", |
| 94 "//base", | 72 "//base", |
| 95 "//skia", | 73 "//skia", |
| 96 ] | 74 ] |
| 97 } | 75 } |
| OLD | NEW |