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

Unified Diff: components/toolbar/BUILD.gn

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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
Index: components/toolbar/BUILD.gn
diff --git a/components/toolbar/BUILD.gn b/components/toolbar/BUILD.gn
index 94dc16beb5a7c6d98c5986807097a24d9c8e6d05..ec98fd48a0367ddeb35c80f8e3d55a9a91d01e2d 100644
--- a/components/toolbar/BUILD.gn
+++ b/components/toolbar/BUILD.gn
@@ -4,6 +4,52 @@
import("//build/config/ui.gni")
+action("aggregate_vector_icons") {
+ visibility = [ ":*" ]
+
+ script = "//ui/gfx/vector_icons/aggregate_vector_icons.py"
+
+ icons = [
+ # TODO(estade): this is the same as ui/gfx/vector_icons/business.icon. Use
+ # that one instead once it's been updated from VectorIconId to VectorIcon.
+ "vector_icons/business.icon",
+ "vector_icons/http.1x.icon",
+ "vector_icons/http.icon",
+ "vector_icons/https_invalid.1x.icon",
+ "vector_icons/https_invalid.icon",
+ "vector_icons/https_valid.1x.icon",
+ "vector_icons/https_valid.icon",
+ "vector_icons/https_valid_in_chip.1x.icon",
+ "vector_icons/https_valid_in_chip.icon",
+ "vector_icons/product.1x.icon",
+ "vector_icons/product.icon",
+ "vector_icons/star_active.icon",
+ "vector_icons/star.icon",
+ ]
+
+ output_cc = "$target_gen_dir/vector_icons.cc"
+ output_h = "$target_gen_dir/vector_icons.h"
+
+ inputs = icons
+ inputs += [
+ "vector_icons/vector_icons.cc.template",
+ "vector_icons/vector_icons.h.template",
+ ]
+ outputs = [
+ output_cc,
+ output_h,
+ ]
+
+ response_file_contents = rebase_path(icons, root_build_dir)
+
+ args = [
+ "--working_directory=" + rebase_path("./vector_icons"),
+ "--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("toolbar") {
sources = [
"toolbar_model.h",
@@ -25,6 +71,11 @@ static_library("toolbar") {
"//ui/gfx",
"//url",
]
+
+ if (!is_android && !is_ios) {
+ sources += get_target_outputs(":aggregate_vector_icons")
+ deps += [ ":aggregate_vector_icons" ]
+ }
}
static_library("test_support") {
« no previous file with comments | « components/omnibox/browser/vector_icons/vector_icons.h.template ('k') | components/toolbar/test_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698