Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: ui/vector_icons/vector_icons.gni

Issue 2733823003: Move final vector icons out of ui/gfx/vector_icons/ and remove the (Closed)
Patch Set: fix deps Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/vector_icons/search.icon ('k') | ui/views/bubble/tooltip_icon.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Creates an action that aggregates vector icon files (.icon) into a C++ file. 5 # Creates an action that aggregates vector icon files (.icon) into a C++ file.
6 # In addition to running the action, the outputs should be added to another 6 # In addition to running the action, the outputs should be added to another
7 # target's sources for compilation. 7 # target's sources for compilation.
8 # 8 #
9 # Parameters 9 # Parameters
10 # 10 #
(...skipping 13 matching lines...) Expand all
24 template("aggregate_vector_icons") { 24 template("aggregate_vector_icons") {
25 assert(defined(invoker.icons), 25 assert(defined(invoker.icons),
26 "Need icons in $target_name listing the icon files.") 26 "Need icons in $target_name listing the icon files.")
27 assert( 27 assert(
28 defined(invoker.icon_directory), 28 defined(invoker.icon_directory),
29 "Need icon_directory in $target_name where the icons and templates live.") 29 "Need icon_directory in $target_name where the icons and templates live.")
30 30
31 action(target_name) { 31 action(target_name) {
32 visibility = [ ":*" ] 32 visibility = [ ":*" ]
33 33
34 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py" 34 script = "//ui/vector_icons/aggregate_vector_icons.py"
35 35
36 output_cc = "$target_gen_dir/vector_icons.cc" 36 output_cc = "$target_gen_dir/vector_icons.cc"
37 output_h = "$target_gen_dir/vector_icons.h" 37 output_h = "$target_gen_dir/vector_icons.h"
38 38
39 templates = [ 39 templates = [
40 "vector_icons.cc.template", 40 "vector_icons.cc.template",
41 "vector_icons.h.template", 41 "vector_icons.h.template",
42 ] 42 ]
43 inputs = rebase_path(templates + invoker.icons, ".", invoker.icon_directory) 43 inputs = rebase_path(templates + invoker.icons, ".", invoker.icon_directory)
44 44
45 outputs = [ 45 outputs = [
46 output_cc, 46 output_cc,
47 output_h, 47 output_h,
48 ] 48 ]
49 49
50 response_file_contents = 50 response_file_contents =
51 rebase_path(invoker.icons, root_build_dir, invoker.icon_directory) 51 rebase_path(invoker.icons, root_build_dir, invoker.icon_directory)
52 52
53 args = [ 53 args = [
54 "--working_directory=" + rebase_path(invoker.icon_directory), 54 "--working_directory=" + rebase_path(invoker.icon_directory),
55 "--file_list={{response_file_name}}", 55 "--file_list={{response_file_name}}",
56 "--output_cc=" + rebase_path(output_cc, root_build_dir), 56 "--output_cc=" + rebase_path(output_cc, root_build_dir),
57 "--output_h=" + rebase_path(output_h, root_build_dir), 57 "--output_h=" + rebase_path(output_h, root_build_dir),
58 ] 58 ]
59 } 59 }
60 } 60 }
OLDNEW
« no previous file with comments | « ui/vector_icons/search.icon ('k') | ui/views/bubble/tooltip_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698