| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("ash_vector_icons") { |
| 8 icon_directory = "." |
| 9 | 9 |
| 10 icons = [ | 10 icons = [ |
| 11 "ime_menu_emoticon.1x.icon", | 11 "ime_menu_emoticon.1x.icon", |
| 12 "ime_menu_emoticon.icon", | 12 "ime_menu_emoticon.icon", |
| 13 "ime_menu_microphone.1x.icon", | 13 "ime_menu_microphone.1x.icon", |
| 14 "ime_menu_microphone.icon", | 14 "ime_menu_microphone.icon", |
| 15 "ime_menu_on_screen_keyboard.1x.icon", | 15 "ime_menu_on_screen_keyboard.1x.icon", |
| 16 "ime_menu_on_screen_keyboard.icon", | 16 "ime_menu_on_screen_keyboard.icon", |
| 17 "ime_menu_write.1x.icon", | 17 "ime_menu_write.1x.icon", |
| 18 "ime_menu_write.icon", | 18 "ime_menu_write.icon", |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 "window_control_left_snapped.icon", | 217 "window_control_left_snapped.icon", |
| 218 "window_control_maximize.1x.icon", | 218 "window_control_maximize.1x.icon", |
| 219 "window_control_maximize.icon", | 219 "window_control_maximize.icon", |
| 220 "window_control_minimize.1x.icon", | 220 "window_control_minimize.1x.icon", |
| 221 "window_control_minimize.icon", | 221 "window_control_minimize.icon", |
| 222 "window_control_restore.1x.icon", | 222 "window_control_restore.1x.icon", |
| 223 "window_control_restore.icon", | 223 "window_control_restore.icon", |
| 224 "window_control_right_snapped.1x.icon", | 224 "window_control_right_snapped.1x.icon", |
| 225 "window_control_right_snapped.icon", | 225 "window_control_right_snapped.icon", |
| 226 ] | 226 ] |
| 227 | |
| 228 output_cc = "$target_gen_dir/vector_icons.cc" | |
| 229 output_h = "$target_gen_dir/vector_icons.h" | |
| 230 | |
| 231 inputs = icons | |
| 232 inputs += [ | |
| 233 "vector_icons.cc.template", | |
| 234 "vector_icons.h.template", | |
| 235 ] | |
| 236 outputs = [ | |
| 237 output_cc, | |
| 238 output_h, | |
| 239 ] | |
| 240 | |
| 241 response_file_contents = rebase_path(icons, root_build_dir) | |
| 242 | |
| 243 args = [ | |
| 244 "--working_directory=" + rebase_path("./"), | |
| 245 "--file_list={{response_file_name}}", | |
| 246 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
| 247 "--output_h=" + rebase_path(output_h, root_build_dir), | |
| 248 ] | |
| 249 } | 227 } |
| 250 | 228 |
| 251 source_set("vector_icons") { | 229 source_set("vector_icons") { |
| 252 sources = get_target_outputs(":aggregate_vector_icons") | 230 sources = get_target_outputs(":ash_vector_icons") |
| 253 sources += [ "//ui/gfx/vector_icon_types.h" ] | 231 sources += [ "//ui/gfx/vector_icon_types.h" ] |
| 254 | 232 |
| 255 deps = [ | 233 deps = [ |
| 256 ":aggregate_vector_icons", | 234 ":ash_vector_icons", |
| 257 "//base", | 235 "//base", |
| 258 "//skia", | 236 "//skia", |
| 259 ] | 237 ] |
| 260 } | 238 } |
| OLD | NEW |