OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 { |
| 5 'conditions': [ |
| 6 ['OS=="win"', { |
| 7 # Instrumentation step. |
| 8 'variables': { |
| 9 # Corresponds to the /LTCG:PGINSTRUMENT option. |
| 10 'ltcg_value': '2', |
| 11 'chrome_dll_target_name': 'chrome_dll_pgi', |
| 12 'chrome_main_dll_target_name': 'chrome_main_dll_pgi', |
| 13 'chrome_main_dll_product_name': 'chrome_pgi', |
| 14 'chrome_child_dll_target_name': 'chrome_child_dll_pgi', |
| 15 'chrome_child_dll_product_name': 'chrome_child_pgi', |
| 16 }, |
| 17 'includes': [ |
| 18 'chrome_dll.gypi', |
| 19 ], |
| 20 'targets': [ |
| 21 # Profiling step. |
| 22 { |
| 23 'target_name': 'chrome_pgo_profile', |
| 24 'type': 'none', |
| 25 # TODO(sebmarchand): Rename the dll produced in the |
| 26 # 'chrome_pgo_instrument' step and profile Chrome. |
| 27 'dependencies': [ |
| 28 'chrome_main_dll_pgi', |
| 29 'chrome_child_dll_pgi', |
| 30 ], |
| 31 }, |
| 32 ], |
| 33 }], |
| 34 ['chrome_pgo==1', { |
| 35 # Optimization step. |
| 36 'variables': { |
| 37 # Corresponds to the /LTCG:PGOPTIMIZE option. |
| 38 'ltcg_value': '3', |
| 39 'chrome_dll_target_name': 'chrome_dll', |
| 40 'chrome_main_dll_target_name': 'chrome_main_dll', |
| 41 'chrome_main_dll_product_name': 'chrome', |
| 42 'chrome_child_dll_target_name': 'chrome_child_dll', |
| 43 'chrome_child_dll_product_name': 'chrome_child', |
| 44 }, |
| 45 'includes': [ |
| 46 'chrome_dll.gypi', |
| 47 ], |
| 48 }], |
| 49 ], |
| 50 } |
OLD | NEW |