| 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("ui_vector_icons") { |
| 8 icon_directory = "." |
| 9 | 9 |
| 10 icons = [ | 10 icons = [ |
| 11 "close.1x.icon", | 11 "close.1x.icon", |
| 12 "close.icon", | 12 "close.icon", |
| 13 ] | 13 ] |
| 14 | |
| 15 output_cc = "$target_gen_dir/vector_icons.cc" | |
| 16 output_h = "$target_gen_dir/vector_icons.h" | |
| 17 | |
| 18 inputs = icons | |
| 19 inputs += [ | |
| 20 "vector_icons.cc.template", | |
| 21 "vector_icons.h.template", | |
| 22 ] | |
| 23 outputs = [ | |
| 24 output_cc, | |
| 25 output_h, | |
| 26 ] | |
| 27 | |
| 28 response_file_contents = rebase_path(icons, root_build_dir) | |
| 29 | |
| 30 args = [ | |
| 31 "--working_directory=" + rebase_path("./"), | |
| 32 "--file_list={{response_file_name}}", | |
| 33 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
| 34 "--output_h=" + rebase_path(output_h, root_build_dir), | |
| 35 ] | |
| 36 } | 14 } |
| 37 | 15 |
| 38 static_library("vector_icons") { | 16 static_library("vector_icons") { |
| 39 sources = get_target_outputs(":aggregate_vector_icons") | 17 sources = get_target_outputs(":ui_vector_icons") |
| 40 sources += [ "//ui/gfx/vector_icon_types.h" ] | 18 sources += [ "//ui/gfx/vector_icon_types.h" ] |
| 41 | 19 |
| 42 deps = [ | 20 deps = [ |
| 43 ":aggregate_vector_icons", | 21 ":ui_vector_icons", |
| 44 "//base", | 22 "//base", |
| 45 "//skia", | 23 "//skia", |
| 46 ] | 24 ] |
| 47 } | 25 } |
| OLD | NEW |