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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/vector_icons/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/vector_icons/BUILD.gn
diff --git a/ui/vector_icons/BUILD.gn b/ui/vector_icons/BUILD.gn
index 65c6c155aac8dc63057b4088b5e39b200c4c65e6..c299793bdac314f5bbd52448ed92f067a10106c9 100644
--- a/ui/vector_icons/BUILD.gn
+++ b/ui/vector_icons/BUILD.gn
@@ -2,45 +2,23 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-action("aggregate_vector_icons") {
- visibility = [ ":*" ]
+import("//ui/vector_icons/vector_icons.gni")
- script = "//ui/gfx/vector_icons/aggregate_vector_icons.py"
+aggregate_vector_icons("ui_vector_icons") {
+ icon_directory = "."
icons = [
"close.1x.icon",
"close.icon",
]
-
- output_cc = "$target_gen_dir/vector_icons.cc"
- output_h = "$target_gen_dir/vector_icons.h"
-
- inputs = icons
- inputs += [
- "vector_icons.cc.template",
- "vector_icons.h.template",
- ]
- outputs = [
- output_cc,
- output_h,
- ]
-
- response_file_contents = rebase_path(icons, root_build_dir)
-
- args = [
- "--working_directory=" + rebase_path("./"),
- "--file_list={{response_file_name}}",
- "--output_cc=" + rebase_path(output_cc, root_build_dir),
- "--output_h=" + rebase_path(output_h, root_build_dir),
- ]
}
static_library("vector_icons") {
- sources = get_target_outputs(":aggregate_vector_icons")
+ sources = get_target_outputs(":ui_vector_icons")
sources += [ "//ui/gfx/vector_icon_types.h" ]
deps = [
- ":aggregate_vector_icons",
+ ":ui_vector_icons",
"//base",
"//skia",
]
« 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