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

Unified Diff: chrome/chrome_pgo.gypi

Issue 187813008: Add PGO targets to Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: It almost works ! Created 6 years, 9 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
« build/internal/release_impl_official.gypi ('K') | « chrome/chrome_dll.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome_pgo.gypi
diff --git a/chrome/chrome_pgo.gypi b/chrome/chrome_pgo.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..0291fad096940397f2e13929de644f8f8eb7a803
--- /dev/null
+++ b/chrome/chrome_pgo.gypi
@@ -0,0 +1,50 @@
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'conditions': [
+ ['OS=="win"', {
+ # Instrumentation step.
+ 'variables': {
+ # Corresponds to the /LTCG:PGINSTRUMENT option.
+ 'ltcg_value': '2',
+ 'chrome_dll_target_name': 'chrome_dll_pgi',
+ 'chrome_main_dll_target_name': 'chrome_main_dll_pgi',
+ 'chrome_main_dll_product_name': 'chrome_pgi',
+ 'chrome_child_dll_target_name': 'chrome_child_dll_pgi',
+ 'chrome_child_dll_product_name': 'chrome_child_pgi',
+ },
+ 'includes': [
+ 'chrome_dll.gypi',
+ ],
+ 'targets': [
+ # Profiling step.
+ {
+ 'target_name': 'chrome_pgo_profile',
+ 'type': 'none',
+ # TODO(sebmarchand): Rename the dll produced in the
+ # 'chrome_pgo_instrument' step and profile Chrome.
+ 'dependencies': [
+ 'chrome_main_dll_pgi',
+ 'chrome_child_dll_pgi',
+ ],
+ },
+ ],
+ }],
+ ['chrome_pgo==1', {
+ # Optimization step.
+ 'variables': {
+ # Corresponds to the /LTCG:PGOPTIMIZE option.
+ 'ltcg_value': '3',
+ 'chrome_dll_target_name': 'chrome_dll',
+ 'chrome_main_dll_target_name': 'chrome_main_dll',
+ 'chrome_main_dll_product_name': 'chrome',
+ 'chrome_child_dll_target_name': 'chrome_child_dll',
+ 'chrome_child_dll_product_name': 'chrome_child',
+ },
+ 'includes': [
+ 'chrome_dll.gypi',
+ ],
+ }],
+ ],
+}
« build/internal/release_impl_official.gypi ('K') | « chrome/chrome_dll.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698