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

Side by Side Diff: ui/vector_icons/BUILD.gn

Issue 2667753006: Make new target for vector icon structs to replace ui/gfx/vector_icons/ (Closed)
Patch Set: git add again 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
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
sky 2017/02/03 16:20:06 2017
Evan Stade 2017/02/03 18:35:01 Done.
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 = [
sky 2017/02/03 16:20:06 Beyond the icons, is there anything different betw
Evan Stade 2017/02/03 18:35:01 Yes, this stanza is a bit repetitive, but more oft
Nico 2017/02/03 18:40:16 It's possible to use a template for this, if that'
11 "close.1x.icon",
12 "close.icon",
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 }
37
38 static_library("vector_icons") {
39 sources = get_target_outputs(":aggregate_vector_icons")
40 sources += [ "//ui/gfx/vector_icon_types.h" ]
41
42 deps = [
43 ":aggregate_vector_icons",
44 "//base",
45 "//skia",
46 ]
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698