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

Unified Diff: build/common.gypi

Issue 1494253003: MD Downloads: add a use_vulcanize option to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review Created 5 years 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 | chrome/browser/browser_resources.grd » ('j') | chrome/browser/browser_resources.grd » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 0974b49752e64eb3aaa4cd9c89bc79f6fbaeb110..9ba4bcc498ca319264969bc0c7287f0176e21f81 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -712,6 +712,10 @@
# Turn on JNI generation optimizations by default.
'optimize_jni_generation%': 1,
+ # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://)
+ # pages. https://github.com/polymer/vulcanize
+ 'use_vulcanize%': 1,
Nico 2015/12/07 21:29:13 1. Do you need to do this in gn too? 2. Have you s
Dan Beam 2015/12/30 05:07:52 Done.
+
'conditions': [
# A flag for POSIX platforms
['OS=="win"', {
@@ -1251,6 +1255,7 @@
'android_app_version_name%': '<(android_app_version_name)',
'android_app_version_code%': '<(android_app_version_code)',
'enable_webvr%': '<(enable_webvr)',
+ 'use_vulcanize%': '<(use_vulcanize)',
# Turns on compiler optimizations in V8 in Debug build.
'v8_optimized_debug%': 1,
@@ -2204,6 +2209,9 @@
'grit_defines': ['-D', 'enable_service_discovery'],
'enable_service_discovery%': 1
}],
+ ['use_vulcanize==1', {
+ 'grit_defines': ['-D', 'use_vulcanize'],
+ }],
['clang_use_chrome_plugins==1', {
'variables': {
'conditions': [
@@ -3059,6 +3067,9 @@
['enable_webvr==1', {
'defines': ['ENABLE_WEBVR'],
}],
+ ['use_vulcanize==1', {
+ 'defines': ['USE_VULCANIZE'],
+ }],
# SAFE_BROWSING_DB_LOCAL - service manages a local database.
# SAFE_BROWSING_DB_REMOTE - service talks via API to a database
« no previous file with comments | « no previous file | chrome/browser/browser_resources.grd » ('j') | chrome/browser/browser_resources.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698