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

Unified Diff: build/common.gypi

Issue 7706011: Use precompiled headers for most large projects. (Closed) Base URL: ssh://joi@192.168.1.201/home/joi/c/chrome/src@master
Patch Set: Created 9 years, 4 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 | build/precompile.h » ('j') | build/precompile.h » ('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 a79a8a07b908ef73bbeb7b1a0de8e5d3d3e5ac32..203bb6a48fc42024e438f9bb27686c8fc28364b1 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -197,6 +197,9 @@
# Webrtc compilation is enabled by default. Set to 0 to disable.
'enable_webrtc%': 1,
+ # Whether to use precompiled headers on Windows.
+ 'use_precompiled_headers%': 0,
+
'conditions': [
# Use Skia as WebKit renderer on Mac
['OS=="mac"', {
@@ -302,6 +305,7 @@
'use_third_party_translations%': '<(use_third_party_translations)',
'remoting%': '<(remoting)',
'enable_webrtc%': '<(enable_webrtc)',
+ 'use_precompiled_headers%': '<(use_precompiled_headers)',
'p2p_apis%': '<(p2p_apis)',
'configuration_policy%': '<(configuration_policy)',
'safe_browsing%': '<(safe_browsing)',
@@ -817,6 +821,15 @@
}],
], # conditions for fastbuild.
}], # fastbuild!=0
+ ['use_precompiled_headers!=0', {
+ 'conditions': [
+ ['OS=="win"', {
+ 'sources': ['<(DEPTH)/build/precompile.cc'],
+ 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h',
+ 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc',
+ }], # OS=="win"
+ ], # conditions
+ }], # use_precompiled_headers!=0
['selinux==1', {
'defines': ['CHROMIUM_SELINUX=1'],
}],
« no previous file with comments | « no previous file | build/precompile.h » ('j') | build/precompile.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698