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/BUILD.gn

Issue 2680043003: Update ui/vector_icons/BUILD.gn to use new gn template. (Closed)
Patch Set: owners Created 3 years, 10 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 | « no previous file | ui/vector_icons/OWNERS » ('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 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 }
OLDNEW
« no previous file with comments | « no previous file | ui/vector_icons/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698