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

Unified Diff: ui/resources/BUILD.gn

Issue 1120203003: Add the enable_polymer_v08 flag for gn. Equivalent gyp change was (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Verified everything works - needed an import Created 5 years, 8 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 | « build/config/features.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/resources/BUILD.gn
diff --git a/ui/resources/BUILD.gn b/ui/resources/BUILD.gn
index b73e0db9c4a97c60d44f005305a693bd7d931841..ebe6c9c00671ae0c12a437da6e7446a33c1961f2 100644
--- a/ui/resources/BUILD.gn
+++ b/ui/resources/BUILD.gn
@@ -4,6 +4,7 @@
import("//tools/grit/grit_rule.gni")
import("//tools/grit/repack.gni")
+import("//build/config/features.gni")
# GYP version: ui/resources/ui_resources.gyp:ui_resources
group("resources") {
@@ -35,6 +36,11 @@ grit("ui_unscaled_resources_grd") {
]
}
+webui_grit_defines = []
+if (enable_polymer_v08) {
brettw 2015/05/04 17:06:32 Are we expecting this flag to be used all over the
mark a. foltz 2015/05/04 17:55:19 Maybe it could go into grit_rule.gni, and the defi
+ webui_grit_defines += [ "enable_polymer_v08" ]
+}
+
grit("webui_resources_grd") {
source = "../webui/resources/webui_resources.grd"
outputs = [
@@ -43,6 +49,7 @@ grit("webui_resources_grd") {
"grit/webui_resources_map.h",
"webui_resources.pak",
]
+ defines = webui_grit_defines
}
if (!is_mac) {
« no previous file with comments | « build/config/features.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698