| 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 "checkbox_active.icon", |
| 12 "checkbox_normal.icon", |
| 13 "menu_check.1x.icon", |
| 14 "menu_check.icon", |
| 15 "menu_radio_empty.icon", |
| 16 "menu_radio_selected.icon", |
| 17 "radio_button_active.icon", |
| 18 "radio_button_normal.icon", |
| 19 "submenu_arrow.1x.icon", |
| 20 "submenu_arrow.icon", |
| 21 ] |
| 22 |
| 23 if (is_mac) { |
| 24 icons += [ |
| 25 "combobox_arrow_mac_enabled.icon", |
| 26 "combobox_arrow_mac_disabled.icon", |
| 27 ] |
| 28 } |
| 29 |
| 30 output_cc = "$target_gen_dir/vector_icons.cc" |
| 31 output_h = "$target_gen_dir/vector_icons.h" |
| 32 |
| 33 inputs = icons |
| 34 inputs += [ |
| 35 "vector_icons.cc.template", |
| 36 "vector_icons.h.template", |
| 37 ] |
| 38 outputs = [ |
| 39 output_cc, |
| 40 output_h, |
| 41 ] |
| 42 |
| 43 response_file_contents = rebase_path(icons, root_build_dir) |
| 44 |
| 45 args = [ |
| 46 "--working_directory=" + rebase_path("./"), |
| 47 "--file_list={{response_file_name}}", |
| 48 "--output_cc=" + rebase_path(output_cc, root_build_dir), |
| 49 "--output_h=" + rebase_path(output_h, root_build_dir), |
| 50 ] |
| 51 } |
| 52 |
| 53 source_set("vector_icons") { |
| 54 sources = get_target_outputs(":aggregate_vector_icons") |
| 55 sources += [ "//ui/gfx/vector_icon_types.h" ] |
| 56 |
| 57 defines = [ "VIEWS_IMPLEMENTATION" ] |
| 58 |
| 59 deps = [ |
| 60 ":aggregate_vector_icons", |
| 61 "//base", |
| 62 "//skia", |
| 63 ] |
| 64 } |
| OLD | NEW |